OpenHAB + Auto-off lights after specific time.

OpenHAB BasicUI timer settings
OpenHAB BasicUI timer settings

This is another idea how to configure sort of settings to control our lights. In my apartment all the time someone forgets to turn off lights. As I replaced all wall switches with Sonoff Touch Wall switches I tried to figure out new settings section in OpenHAB GUI to set auto-OFF light after certain time.

First let’s create items:

.items

.sitemap

Setpoint type generates switch with stepping setting. Her every 15 minutes.

.rules

Rules are only for kitchen 2 lights. Once one of the light turn on stopAlarmTimer is starting for the number of minutes taken from Item myTimer_kitchen.state.

final result

Source

https://community.openhab.org/t/turn-light-off-based-on-timer/9558/30

https://community.openhab.org/t/trrying-to-turn-a-device-off-after-a-certain-amount-of-time/36217

Ads

Be the first to comment

Leave a Reply