Energy Saver
Save money by turning off lights when no longer needed. See motion for motion sensor based examples.
Max Timeout
Turn a light off after it's been left on for 30 minutes.
Usage Ideas
- Turn off attic light if its been on for 4 hours
[{"id":"4f9d9c6f.007a6c","type":"server-state-changed","z":"dde1d524.9cc4d","name":"Light turned on","server":"a77b5e9d.0c69","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"light.living_room_lamp","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"on","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"x":120,"y":1040,"wires":[["3daac1e1.89b416"],[]]},{"id":"2e4e15de.9c4ab2","type":"change","z":"dde1d524.9cc4d","name":"Stop Timer","rules":[{"t":"set","p":"payload","pt":"msg","to":"stop","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":310,"y":1140,"wires":[["3daac1e1.89b416"]]},{"id":"3daac1e1.89b416","type":"stoptimer","z":"dde1d524.9cc4d","duration":"30","units":"Minute","payloadtype":"num","payloadval":"0","name":"","x":520,"y":1040,"wires":[["7a6d006d.18163"],[]]},{"id":"7a6d006d.18163","type":"api-call-service","z":"dde1d524.9cc4d","name":"Turn off light","server":"a77b5e9d.0c69","version":1,"debugenabled":false,"service_domain":"light","service":"turn_off","entityId":"light.living_room_lamp","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":730,"y":1040,"wires":[[]]},{"id":"ddb60e4.f014af","type":"server-state-changed","z":"dde1d524.9cc4d","name":"Light turned off","server":"a77b5e9d.0c69","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"light.living_room_lamp","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":120,"y":1140,"wires":[["2e4e15de.9c4ab2"],[]]},{"id":"a77b5e9d.0c69","type":"server","z":"","name":"Home Assistant","addon":true}]