Just a question

Moderator: leecollings

Post Reply
Dave21w
Posts: 369
Joined: Sunday 29 November 2015 21:55
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: UK
Contact:

Just a question

Post by Dave21w »

I know you can use the toggle command to flip a light on /off on each press of a button however is it possible to toggle it between say 50% brightness and off using blockly.

Thanks
Dave
User avatar
waltervl
Posts: 5397
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Just a question

Post by waltervl »

You can perhaps do that based on dimlevel
If light = on and dimlevel= 50 then light off
If light = off then set dimlevel 50
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Dave21w
Posts: 369
Joined: Sunday 29 November 2015 21:55
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: UK
Contact:

Re: Just a question

Post by Dave21w »

Thanks @waltervl,

I'll give it a try, to be honest I only gave half the info as I'm also controlling the dimmer from somewhere else which is the easy part, if sensor is triggered and time is after x or before y turn on dimmer at 2% for 5 mins but then I also need to be able to turn the lamp on and off with a button at a different brightness level during the day.

Thanks
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests