Hi There,
I have some troubles to evaluate the output from the ANG gate as described in the manual:
Get following informatio from the debug:
result : msg : Object
object
topic: "result"
payload: "off"
bool: true
_msgid: "e203f5712eddba08"
--> Wanted to evaluate the "bool: true" value, but could not find how it works.
My simple test flow is as following:
[{"id":"4824aac14feb7c65","type":"and-gate","z":"475e1acb7ac09aff","name":"","rules":[{"t":"eq","v":"on","vt":"str","propertyType":"msg","property":"payload","topic":"input_boolean.autolight"},{"t":"eq","v":"off","vt":"str","propertyType":"msg","property":"payload","topic":"input_boolean.autolightstop"}],"outputTopic":"result","gateType":"and","emitOnlyIfTrue":false,"x":503.50001525878906,"y":214.6428680419922,"wires":[["91fb0f67c0db0b0a","0fbf6df5cce40f95"]]},{"id":"91fb0f67c0db0b0a","type":"debug","z":"475e1acb7ac09aff","name":"Out AND","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","targetType":"full","statusVal":"payload","statusType":"auto","x":704.750020980835,"y":213.3928680419922,"wires":[]},{"id":"d468d5aaa9b53f27","type":"trigger-state","z":"475e1acb7ac09aff","name":"","server":"a11aa034.815b8","version":0,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityid":"input_boolean.autolight","entityidfiltertype":"exact","debugenabled":false,"constraints":[{"targetType":"this_entity","targetValue":"","propertyType":"current_state","comparatorType":"is","comparatorValueDatatype":"str","comparatorValue":"on","propertyValue":"new_state.state"}],"outputs":2,"customoutputs":[],"outputinitially":true,"state_type":"str","x":171.5,"y":196.14286708831787,"wires":[["4824aac14feb7c65"],["4824aac14feb7c65"]]},{"id":"0a194e339c3615cd","type":"trigger-state","z":"475e1acb7ac09aff","name":"","server":"a11aa034.815b8","version":0,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityid":"input_boolean.autolightstop","entityidfiltertype":"exact","debugenabled":false,"constraints":[{"targetType":"this_entity","targetValue":"","propertyType":"current_state","comparatorType":"is","comparatorValueDatatype":"str","comparatorValue":"off","propertyValue":"new_state.state"}],"outputs":2,"customoutputs":[],"outputinitially":true,"state_type":"str","x":176.25000762939453,"y":238.39287567138672,"wires":[["4824aac14feb7c65"],["4824aac14feb7c65"]]},{"id":"0fbf6df5cce40f95","type":"switch","z":"475e1acb7ac09aff","name":"","property":"bool","propertyType":"flow","rules":[{"t":"eq","v":"true","vt":"str"},{"t":"else"}],"checkall":"true","repair":false,"outputs":2,"x":641.1785697937012,"y":265.25001430511475,"wires":[["fd9644abed13f92a"],[]]},{"id":"fd9644abed13f92a","type":"debug","z":"475e1acb7ac09aff","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":833.6929473876953,"y":260.3642635345459,"wires":[]},{"id":"a11aa034.815b8","type":"server","name":"Home Assistant","version":1,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]
Any help? Tx - JJ