Climate

Misc automations specifically for climate control (thermostats, heaters, etc).

Heat

Set thermostat to heat at 80° when room is cold.

Heat On
[{"id":"e5346d35.35d1b","type":"api-call-service","z":"baa6c83f.5f0b3","name":"Turn on heat","server":"a77b5e9d.0c69","version":1,"debugenabled":false,"service_domain":"climate","service":"set_hvac_mode","entityId":"climate.living_room_thermostat","data":"{\"hvac_mode\":\"heat\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":250,"y":80,"wires":[["e90bafed.5b697"]]},{"id":"fdc11f4f.6308","type":"server-state-changed","z":"baa6c83f.5f0b3","name":"Cold","server":"a77b5e9d.0c69","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"sensor.living_room_temperature","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"70","halt_if_type":"num","halt_if_compare":"lt","outputs":2,"output_only_on_state_change":true,"x":90,"y":80,"wires":[["e5346d35.35d1b"],[]]},{"id":"e90bafed.5b697","type":"api-call-service","z":"baa6c83f.5f0b3","name":"Set desired temp to 80","server":"a77b5e9d.0c69","version":1,"debugenabled":false,"service_domain":"climate","service":"set_temperature","entityId":"climate.living_room_thermostat","data":"{\"temperature\":\"80\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":470,"y":80,"wires":[[]]},{"id":"a77b5e9d.0c69","type":"server","z":"","name":"Home Assistant","addon":true}]

Temperature Light

Turn on a light and change color based on high (red), medium (green), and low (blue) temperature.

Temperature Light
[{"id":"f5a8aa46.3d043","type":"server-state-changed","z":"baa6c83f.5f0b3","name":"Temperature","server":"a77b5e9d.0c69","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"sensor.living_room_temperature","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"num","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"x":110,"y":280,"wires":[["f9588256.4be048"]]},{"id":"f9588256.4be048","type":"switch","z":"baa6c83f.5f0b3","name":"State","property":"payload","propertyType":"msg","rules":[{"t":"gt","v":"75","vt":"str"},{"t":"gt","v":"70","vt":"str"},{"t":"else"}],"checkall":"true","repair":false,"outputs":3,"x":270,"y":280,"wires":[["c9fe5647.02044"],["10c4c6e8.71bb71"],["7e95ff49.3e5a5"]]},{"id":"c9fe5647.02044","type":"api-call-service","z":"baa6c83f.5f0b3","name":"Turn on light and set color to red","server":"a77b5e9d.0c69","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.living_room_lamp","data":"{\"color_name\":\"red\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":500,"y":220,"wires":[[]]},{"id":"10c4c6e8.71bb71","type":"api-call-service","z":"baa6c83f.5f0b3","name":"Turn on light and set color to green","server":"a77b5e9d.0c69","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.living_room_lamp","data":"{\"color_name\":\"green\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":500,"y":280,"wires":[[]]},{"id":"7e95ff49.3e5a5","type":"api-call-service","z":"baa6c83f.5f0b3","name":"Turn on light and set color to blue","server":"a77b5e9d.0c69","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.living_room_lamp","data":"{\"color_name\":\"blue\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":500,"y":340,"wires":[[]]},{"id":"a77b5e9d.0c69","type":"server","z":"","name":"Home Assistant","addon":true}]

HVAC Light

Turn on a light and change color based on the current HVAC mode: heat (red), cool (blue), and other (white).

HVAC Light
[{"id":"31480e15.69e422","type":"server-state-changed","z":"baa6c83f.5f0b3","name":"Thermostat Change","server":"a77b5e9d.0c69","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"climate.living_room_thermostat","entityidfiltertype":"exact","outputinitially":true,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"x":130,"y":500,"wires":[["176b140e.5b2a24"]]},{"id":"70a1d98a.5f2008","type":"api-call-service","z":"baa6c83f.5f0b3","name":"Turn on light and set color to red","server":"a77b5e9d.0c69","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.living_room_lamp","data":"{\"color_name\":\"red\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":560,"y":460,"wires":[[]]},{"id":"176b140e.5b2a24","type":"switch","z":"baa6c83f.5f0b3","name":"State","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"heat","vt":"str"},{"t":"eq","v":"cool","vt":"str"},{"t":"else"}],"checkall":"true","repair":false,"outputs":3,"x":310,"y":500,"wires":[["70a1d98a.5f2008"],["1bef8366.70147d"],["e67b4e20.79f4d8"]]},{"id":"1bef8366.70147d","type":"api-call-service","z":"baa6c83f.5f0b3","name":"Turn on light and set color to blue","server":"a77b5e9d.0c69","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.living_room_lamp","data":"{\"color_name\":\"blue\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":560,"y":520,"wires":[[]]},{"id":"e67b4e20.79f4d8","type":"api-call-service","z":"baa6c83f.5f0b3","name":"Turn on light and set color to white","server":"a77b5e9d.0c69","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.living_room_lamp","data":"{\"color_name\":\"white\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":560,"y":580,"wires":[[]]},{"id":"a77b5e9d.0c69","type":"server","z":"","name":"Home Assistant","addon":true}]