This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Visualization on Failure
#15
238.600 1 byte DALI diagnostics data type is supported out of the box. In scripts you will get the diagnostics value as a table with 3 fields: address (number), ballasterror (bool) and lamperror (bool)

You can use this solution for CSV export: https://kb.logicmachine.net/scripting/ex...-hour-csv/

Currently grp.decodevalue() does not support 238.600 conversion to a readable string value so an additional conversion function is needed:
Code:
function dalidiagtostring(value)
  local stat

  if value.ballasterror then
    stat = 'ECG error'
  elseif value.lamperror then
    stat = 'Lamp error'
  else
    stat = 'OK'
  end

  return string.format('Address %d %s', value.address, stat)
end
Reply


Messages In This Thread
Visualization on Failure - by Mrinj - 06.12.2017, 07:53
RE: Visualization on Failure - by Mrinj - 06.12.2017, 09:00
RE: Visualization on Failure - by Mrinj - 06.12.2017, 09:44
RE: Visualization on Failure - by Mrinj - 07.12.2017, 07:59
RE: Visualization on Failure - by Mrinj - 09.12.2017, 09:35
RE: Visualization on Failure - by Mrinj - 10.12.2017, 11:29
RE: Visualization on Failure - by FatMax - 22.02.2018, 10:42
RE: Visualization on Failure - by FatMax - 22.02.2018, 14:58
RE: Visualization on Failure - by admin - 05.03.2024, 10:50
RE: Visualization on Failure - by admin - 05.03.2024, 12:50
RE: Visualization on Failure - by admin - 06.03.2024, 11:27

Forum Jump: