I'm using a state node (switch), and expose this to Home Assistant in order to create an identity in HA. This works well. However, whenever I deploy an update in Node red, the entity state is always set to true, regardless of it's previous state. The same behaviour can be seen when restarting the home assistant container.
What should happen?
When deploying a flow or when or restarting HA, the entity state should not be changed, it should remain as it was previously set.
Describe the bug
I'm using a state node (switch), and expose this to Home Assistant in order to create an identity in HA. This works well. However, whenever I deploy an update in Node red, the entity state is always set to true, regardless of it's previous state. The same behaviour can be seen when restarting the home assistant container.
What should happen?
When deploying a flow or when or restarting HA, the entity state should not be changed, it should remain as it was previously set.