Here is how I do it with a homekit connected ecobee and the hvac_action attribute.
[{"id":"858850f8.d94488","type":"tab","label":"ECOBEE","disabled":false,"info":""},{"id":"5b5b9e4378990062","type":"group","z":"858850f8.d94488","name":"HVAC - Return Air Booster On/Off","style":{"label":true,"stroke":"#000000","fill":"#e3f3d3","color":"#000000"},"nodes":["6f81d9184d2ba8ea","290a93436704232b","6aa89b12dde1fb54","d96505bee79ed87d","9afa4e5e4c6260b7","de16bbc0282104c6","21cea1d0f4205453","27cc7b22e27e5b4f","08432ba0f098e0d5"],"x":34,"y":39,"w":1052,"h":222},{"id":"6f81d9184d2ba8ea","type":"inject","z":"858850f8.d94488","g":"5b5b9e4378990062","name":"Run Manually","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":150,"y":220,"wires":[["290a93436704232b"]]},{"id":"290a93436704232b","type":"api-current-state","z":"858850f8.d94488","g":"5b5b9e4378990062","name":"Ecobee Thermostat","server":"39dd3b2a.d5a744","version":3,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","entity_id":"climate.thermostat_temp_ecobee_2","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":270,"y":140,"wires":[["9afa4e5e4c6260b7","de16bbc0282104c6"]]},{"id":"6aa89b12dde1fb54","type":"switch","z":"858850f8.d94488","g":"5b5b9e4378990062","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"heating","vt":"str"},{"t":"eq","v":"cooling","vt":"str"},{"t":"eq","v":"idle","vt":"str"}],"checkall":"true","repair":false,"outputs":3,"x":730,"y":140,"wires":[["d96505bee79ed87d","27cc7b22e27e5b4f"],["d96505bee79ed87d","27cc7b22e27e5b4f"],["d96505bee79ed87d","08432ba0f098e0d5"]],"outputLabels":["heating","cooling","idle"]},{"id":"d96505bee79ed87d","type":"debug","z":"858850f8.d94488","g":"5b5b9e4378990062","name":"hvac state?","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":930,"y":80,"wires":[]},{"id":"9afa4e5e4c6260b7","type":"change","z":"858850f8.d94488","g":"5b5b9e4378990062","name":"hvac_action --> payload","rules":[{"t":"move","p":"data.attributes.hvac_action","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":530,"y":140,"wires":[["6aa89b12dde1fb54"]]},{"id":"de16bbc0282104c6","type":"debug","z":"858850f8.d94488","g":"5b5b9e4378990062","name":"ecobee attributes","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"data","targetType":"msg","statusVal":"","statusType":"auto","x":510,"y":80,"wires":[]},{"id":"21cea1d0f4205453","type":"server-state-changed","z":"858850f8.d94488","g":"5b5b9e4378990062","name":"Ecobee Thermostat State","server":"39dd3b2a.d5a744","version":5,"outputs":1,"exposeAsEntityConfig":"","entityId":"climate.thermostat_temp_ecobee_2","entityIdType":"exact","outputInitially":false,"stateType":"str","ifState":"","ifStateType":"str","ifStateOperator":"is","outputOnlyOnStateChange":true,"for":"0","forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"}],"x":170,"y":80,"wires":[["290a93436704232b"]]},{"id":"27cc7b22e27e5b4f","type":"api-call-service","z":"858850f8.d94488","g":"5b5b9e4378990062","name":"ON - Return Booster","server":"39dd3b2a.d5a744","version":5,"debugenabled":false,"domain":"switch","service":"turn_on","areaId":[],"deviceId":["43128e40993b123d0d8546b1302ccc5d"],"entityId":[],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":960,"y":140,"wires":[[]]},{"id":"08432ba0f098e0d5","type":"api-call-service","z":"858850f8.d94488","g":"5b5b9e4378990062","name":"OFF - Return Booster","server":"39dd3b2a.d5a744","version":5,"debugenabled":false,"domain":"switch","service":"turn_off","areaId":[],"deviceId":["43128e40993b123d0d8546b1302ccc5d"],"entityId":[],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":960,"y":200,"wires":[[]]},{"id":"39dd3b2a.d5a744","type":"server","name":"Home Assistant","addon":true}]