Hi I am trying to implement the motion detection from my Hikvision cameras to turn on a led lamp in defined time period when I am around.
I am using home assistant event state and change state palette to open a simple gate but for some reason it doesn’t open when I change the state of the event state.
I attached a inject module and it works perfectly when i send a message.
In debug mode I can see that the messages are exactly the same in both cases.
I am stuck here. Please have a look.
It would helpful if you were to post the export of your flow, so that one can see the configuration behind each node.
Sure here it is. Thanks for replying
[{"id":"3ad3baf7.3a85f6","type":"tab","label":"Flow 3","disabled":false,"info":""},{"id":"1b9cd4b6.16e4bb","type":"server-state-changed","z":"3ad3baf7.3a85f6","name":"At Villa?","server":"6550c169.4f217","entityidfilter":"device_tracker.google_maps_117732613331293269145","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"x":124.5,"y":277,"wires":[["5382f0e6.47991"]]},{"id":"5382f0e6.47991","type":"change","z":"3ad3baf7.3a85f6","name":"Change","rules":[{"t":"change","p":"payload","pt":"msg","from":"Villa","fromt":"str","to":"open","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"home","fromt":"str","to":"close","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":427.5,"y":277,"wires":[["fdddc2e.560464","6e6bc24d.7d183c"]]},{"id":"6e6bc24d.7d183c","type":"gate","z":"3ad3baf7.3a85f6","name":"","controlTopic":"control","defaultState":"closed","openCmd":"open","closeCmd":"close","toggleCmd":"toggle","defaultCmd":"default","persist":true,"x":655.5,"y":287,"wires":[[]]},{"id":"f583c990.e047d8","type":"inject","z":"3ad3baf7.3a85f6","name":"Payload: Villa","topic":"control","payload":"Villa","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":152.5,"y":371,"wires":[["5382f0e6.47991"]]},{"id":"b8a3363.b6ea3c8","type":"inject","z":"3ad3baf7.3a85f6","name":"Payload: home","topic":"control","payload":"home","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":141,"y":429,"wires":[["5382f0e6.47991"]]},{"id":"fdddc2e.560464","type":"debug","z":"3ad3baf7.3a85f6","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":660.5,"y":398,"wires":[]},{"id":"6550c169.4f217","type":"server","z":"","name":"Raspberry Pi Homeassistant","legacy":false,"hassio":false,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true}]
I solved the issue with the help of discourse nodered forum. My control topic was wrong.