Right now, I have an inject node querying my heater every 1 minute and then a switch node to check if msg.data.attributes.hvac_action = heating
But is there anyway to incorporate the check of msg.data.attributes.hvac_action into an events:state node?
[{"id":"7e3e42cfea83b4b1","type":"tab","label":"Flow 3","disabled":false,"info":"","env":[]},{"id":"22dd37c2be0a4ac1","type":"switch","z":"7e3e42cfea83b4b1","name":"Heater running?","property":"data.attributes.hvac_action","propertyType":"msg","rules":[{"t":"eq","v":"heating","vt":"str"},{"t":"else"}],"checkall":"true","repair":false,"outputs":2,"x":557,"y":261,"wires":[[],[]]},{"id":"3f9134d5c7987963","type":"inject","z":"7e3e42cfea83b4b1","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"60","crontab":"","once":false,"onceDelay":0.1,"topic":"","payloadType":"date","x":142,"y":261,"wires":[["16210c70e22dce06"]]},{"id":"16210c70e22dce06","type":"api-current-state","z":"7e3e42cfea83b4b1","name":"Thermostat status","server":"ab3e2c53.e3491","version":2,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","entity_id":"climate.my_ecobee","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"x":333,"y":261,"wires":[["22dd37c2be0a4ac1"]]},{"id":"ab3e2c53.e3491","type":"server","name":"AvilaSmartHome","version":2,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true,"heartbeat":false,"heartbeatInterval":30}]