Skip to content

Commit

Permalink
fix light with ON_ACTUAL
Browse files Browse the repository at this point in the history
  • Loading branch information
Garfonso committed Jul 27, 2023
1 parent 7ab6b32 commit e5dac6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/converters/light.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e5dac6e

Please sign in to comment.