Simple question. This LED strip must go on with Sunset and go off at 01:00 hours in the night.
I can’t find such as:
and go Off at 01:00
Switch off at specific time
Moderator: leecollings
-
- Posts: 53
- Joined: Thursday 06 March 2014 18:30
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Switch off at specific time
Simple answer:
Create a second script: if led strip is on and time = 01:00 then set led strip= off.
Or am I missing something?
Create a second script: if led strip is on and time = 01:00 then set led strip= off.
Or am I missing something?
-
- Posts: 53
- Joined: Thursday 06 March 2014 18:30
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Switch off at specific time
Thanks.
But I can´t do this in the same script?
But I can´t do this in the same script?
- Egregius
- Posts: 2592
- Joined: Thursday 09 April 2015 12:19
- Target OS: Linux
- Domoticz version: v2024.7
- Location: Beitem, BE
- Contact:
Re: Switch off at specific time
Use timers for such simple things.
-
- Posts: 53
- Joined: Thursday 06 March 2014 18:30
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Switch off at specific time
Nice, but how ?
Re: Switch off at specific time
You can do it in the same script, use the else if functionality, it's in the blockly with the "+" sign.Ritmeester wrote:Thanks.
But I can´t do this in the same script?
Re: Switch off at specific time
As Egregius said, just use switch timers, much easier
-
- Posts: 73
- Joined: Wednesday 16 September 2015 22:10
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Stable
- Location: Paris area, France
- Contact:
Re: Switch off at specific time
Well, in the swich widget, click on "planning", and create two events ...
- One to turn the strip on at sunset
- One to turn it off at 1:00am...
It's that simple.... No need for scripts or Blockry or ....
Or did we all miss something here???
Oliviers
- One to turn the strip on at sunset
- One to turn it off at 1:00am...
It's that simple.... No need for scripts or Blockry or ....
Or did we all miss something here???
Oliviers
Paris area
Raspberry Pi 4 - RFXComm 433 - IrTrans - Zwave
Raspberry Pi 4 - RFXComm 433 - IrTrans - Zwave
- Egregius
- Posts: 2592
- Joined: Thursday 09 April 2015 12:19
- Target OS: Linux
- Domoticz version: v2024.7
- Location: Beitem, BE
- Contact:
Re: Switch off at specific time
Click on the timers button of the switch and add actions as desired.Ritmeester wrote:Nice, but how ?
Who is online
Users browsing this forum: No registered users and 1 guest