05.03.2024, 10:50
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:
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