set dimmer value at certain time without turning on light

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
jrich523
Posts: 63
Joined: Monday 18 January 2016 21:43
Target OS: Windows
Domoticz version: 3.5196
Location: Seattle, WA
Contact:

set dimmer value at certain time without turning on light

Post by jrich523 »

I'd let to set the lights dim level but not turn the light on.

so for example if its between 11pm and 7am, set the dim lvl to 20% on a group of lights (i dont care if i have to do each individually)

Basically if i turn any on in the middle of the night with the switch, i want to make sure im not blinded.

I guess really i want to set a property of a z-wave device because another neat thing would be to control my GE Switches Night Light mode, which would be neat to switch based on time.

I guess since im starting out i'd like to do this all via blocky, but if i cant im sure i can figure out lua pretty quickly.

thanks
[ Domoticz 3.5196 | Win10 | AeoTec Z-Stick Gen5 ]
User avatar
Egregius
Posts: 2589
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: set dimmer value at certain time without turning on light

Post by Egregius »

Don't think it's possible to set the level without switching.
You could use a script that's set the value to 20% if the value is higher than that during night hours.
Downside of this is that you could never set the lights higher than that.
meel4chris
Posts: 41
Joined: Monday 03 October 2016 15:11
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: NL
Contact:

Re: set dimmer value at certain time without turning on light

Post by meel4chris »

Hi,

this is exactly what I try to achieve as well!
I have been trying several things (using S2 switch on dimmer, etc) but no good solutions so far..
Did you or someone find a solution for this?

regards,
Christian
User avatar
Egregius
Posts: 2589
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: set dimmer value at certain time without turning on light

Post by Egregius »

Using a second switch should be easy to do this.
S1 normal behavior
S2 predefined level
Sounds easy, in pass2php that would be:

Code: Select all

if($status=='On')sl('dimmer',20); 
kllngtme
Posts: 47
Joined: Tuesday 14 June 2016 16:56
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: East Coast, USA
Contact:

Re: set dimmer value at certain time without turning on light

Post by kllngtme »

Anyone have any luck with this? I've been trying to figure this out as well.
elmortero
Posts: 247
Joined: Sunday 29 November 2015 20:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.9639
Location: Spain
Contact:

Re: set dimmer value at certain time without turning on light

Post by elmortero »

I don't think you need a second switch, just use setlevel instead of switch on, with the desired level at that time of day. In your the script that switches on put some if the s that determine the level it should be .
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest