Automatic light in WC

Moderator: leecollings

Post Reply
technick
Posts: 5
Joined: Wednesday 12 July 2017 3:20
Target OS: Linux
Domoticz version:

Automatic light in WC

Post by technick »

-/-
technick
Posts: 5
Joined: Wednesday 12 July 2017 3:20
Target OS: Linux
Domoticz version:

Re: Automatic light in WC

Post by technick »

-/-
Last edited by technick on Tuesday 23 July 2019 23:04, edited 1 time in total.
User avatar
sincze
Posts: 1300
Joined: Monday 02 June 2014 22:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Netherlands / Breda Area
Contact:

Re: Automatic light in WC

Post by sincze »

technick wrote:-/-
Aha this addition was upvoted in our house instantly. 'Avec douze points'.

Code: Select all

 if ((os.date("%X")>"01:00:00") and (os.date("%X")<"08:30:00")) then
                commandArray['Lumière WC']='Set Level 30'
            else
                commandArray['Lumière WC']='Set Level 40'
            end
To avoid instant waking up when visiting the WC :D

tnx.
Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
technick
Posts: 5
Joined: Wednesday 12 July 2017 3:20
Target OS: Linux
Domoticz version:

Re: Automatic light in WC

Post by technick »

Happy to have made your nigths better ;-)
technick
Posts: 5
Joined: Wednesday 12 July 2017 3:20
Target OS: Linux
Domoticz version:

Re: Automatic light in WC

Post by technick »

-/-
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest