Garage

Misc automations specifically for the garage.

Driveway Light

Turn the driveway light on when the garage opens and turn it off after 5 minutes (or earlier if the garage door closed).

Driveway Light
[{"id":"d4f11c84.0614e","type":"stoptimer","z":"c78c9cee.c1f1f","duration":"5","units":"Minute","payloadtype":"num","payloadval":"0","name":"","x":520,"y":80,"wires":[["a76ac9c1.78c3e"],[]]},{"id":"b3ab2ffe.d775a","type":"change","z":"c78c9cee.c1f1f","name":"Stop Timer","rules":[{"t":"set","p":"payload","pt":"msg","to":"stop","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":310,"y":140,"wires":[["d4f11c84.0614e"]]},{"id":"76631109.9858d","type":"server-state-changed","z":"c78c9cee.c1f1f","name":"Garage Open","server":"a77b5e9d.0c69","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"cover.garage_door","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"open","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"x":110,"y":80,"wires":[["c01f9fce.c2e57"],[]]},{"id":"bee536cf.7990f8","type":"server-state-changed","z":"c78c9cee.c1f1f","name":"Garage Closed","server":"a77b5e9d.0c69","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"cover.garage_door","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"closed","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"x":120,"y":180,"wires":[["b3ab2ffe.d775a","a76ac9c1.78c3e"],[]]},{"id":"c01f9fce.c2e57","type":"api-call-service","z":"c78c9cee.c1f1f","name":"Turn on light","server":"a77b5e9d.0c69","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.driveway","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":310,"y":80,"wires":[["d4f11c84.0614e"]]},{"id":"a76ac9c1.78c3e","type":"api-call-service","z":"c78c9cee.c1f1f","name":"Turn off light","server":"a77b5e9d.0c69","version":1,"debugenabled":false,"service_domain":"light","service":"turn_off","entityId":"light.driveway","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":690,"y":174,"wires":[[]]},{"id":"a77b5e9d.0c69","type":"server","z":"","name":"Home Assistant","addon":true}]

Speak State

When the garage opens and closes, say "The garage is open" or "The garage is closed" at 80% volume on a specific media player.

Speak State
[{"id":"5c4bee6d.3ed2c","type":"api-call-service","z":"c78c9cee.c1f1f","name":"Set Volume to 80%","server":"a77b5e9d.0c69","version":1,"debugenabled":false,"service_domain":"media_player","service":"volume_set","entityId":"media_player.living_room_mini","data":"{\"volume_level\":\".8\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":410,"y":660,"wires":[["ab7b38aa.5d53b"]]},{"id":"ab7b38aa.5d53b","type":"api-call-service","z":"c78c9cee.c1f1f","name":"Speak Message","server":"a77b5e9d.0c69","version":1,"debugenabled":false,"service_domain":"tts","service":"google_translate_say","entityId":"media_player.living_room_mini","data":"{\"message\":\"The garage is {{{payload}}}\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":620,"y":660,"wires":[[]]},{"id":"28cfd7a7.b198b","type":"server-state-changed","z":"c78c9cee.c1f1f","name":"Garage Open","server":"a77b5e9d.0c69","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"cover.garage_door","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"open","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"x":130,"y":660,"wires":[["5c4bee6d.3ed2c"],[]]},{"id":"bc63645.ea5fc98","type":"server-state-changed","z":"c78c9cee.c1f1f","name":"Garage Closed","server":"a77b5e9d.0c69","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"cover.garage_door","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"closed","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"x":140,"y":720,"wires":[["5c4bee6d.3ed2c"],[]]},{"id":"a77b5e9d.0c69","type":"server","z":"","name":"Home Assistant","addon":true}]