This is driving me nuts. In a function, I’m trying to do this:
msg.payload.entity_id = 'camera1';
return msg;
But the entity_id property isn’t added to msg.
I need to set the entity’s ID to that exact property as opposed to msg.payload.DATA.entity_id because from my understanding it’s how the current_state node wants it: