Bedroom

Misc automations specifically for bedrooms.

Getting out of Bed

Automatically turns off the fan when both sides of the bed are empty. This works great with a SleepNumber Home Assistant integration.

Usage Ideas
  • Turn on underbed lighting
  • Turn on bedroom lights
  • Turn off white noise machine
Out of bed
[{"id":"da47ba00.99a578","type":"server-state-changed","z":"bc52725c.233fd","name":"Jerry leaves bed","server":"a77b5e9d.0c69","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"binary_sensor.sleepnumber_jerry_is_in_bed","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"off","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"x":140,"y":160,"wires":[["a38dfea4.76b72"],[]]},{"id":"e03ff418.eb0808","type":"server-state-changed","z":"bc52725c.233fd","name":"Beth leaves bed","server":"a77b5e9d.0c69","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"binary_sensor.sleepnumber_beth_is_in_bed","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"off","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"x":140,"y":220,"wires":[["87bd6051.2d9788"],[]]},{"id":"87bd6051.2d9788","type":"api-current-state","z":"bc52725c.233fd","name":"Jerry also out of bed?","server":"a77b5e9d.0c69","version":1,"outputs":2,"halt_if":"off","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"binary_sensor.sleepnumber_jerry_is_in_bed","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":360,"y":220,"wires":[["1af493bd.ed2df4"],[]]},{"id":"a38dfea4.76b72","type":"api-current-state","z":"bc52725c.233fd","name":"Beth also out of bed?","server":"a77b5e9d.0c69","version":1,"outputs":2,"halt_if":"off","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"binary_sensor.sleepnumber_beth_is_in_bed","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":360,"y":160,"wires":[["1af493bd.ed2df4"],[]]},{"id":"1af493bd.ed2df4","type":"api-call-service","z":"bc52725c.233fd","name":"Turn off fan","server":"a77b5e9d.0c69","version":1,"debugenabled":false,"service_domain":"switch","service":"turn_off","entityId":"switch.bedroom_fan","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":570,"y":180,"wires":[[]]},{"id":"a77b5e9d.0c69","type":"server","z":"","name":"Home Assistant","addon":true}]