diff --git a/lib/converters/light.js b/lib/converters/light.js index 43b35eabf..41826b2b4 100644 --- a/lib/converters/light.js +++ b/lib/converters/light.js @@ -15,7 +15,7 @@ exports.processLight = function (id, control, name, room, func, _obj, objects, f entity.attributes.supported_color_modes = [ONOFF]; } - state = control.states.find(s => s.id && s.name === 'ACTUAL'); + state = control.states.find(s => s.id && (s.name === 'ON_ACTUAL' || s.name === 'ACTUAL')); if (state && state.id) { entity.context.STATE.getId = state.id; utils.addID2entity(state.id, entity);