dimto transition time
Moderator: leecollings
- barts2108
- Posts: 25
- Joined: Wednesday 17 June 2020 18:31
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Arnhem
- Contact:
dimto transition time
I recently included Ikea tradfri 30W driver for my working area in the kitchen, together with a matching on/off/dimmer button.
Light and button are paired with my conbee II on a raspberry pi, running beta channel of domoticz.
The driver has configurable option for transition time
0x0010 OnOff Transition Time u16 rw 10
When I change it to 100, and use the tradfri button, the dimming to 100% takes 10 seconds.
When I do a dimTo(100) from the dzVents scripting, the light reaches 100% within 1 second or so.
How can I change the transition time of the dimTo() command ?
Light and button are paired with my conbee II on a raspberry pi, running beta channel of domoticz.
The driver has configurable option for transition time
0x0010 OnOff Transition Time u16 rw 10
When I change it to 100, and use the tradfri button, the dimming to 100% takes 10 seconds.
When I do a dimTo(100) from the dzVents scripting, the light reaches 100% within 1 second or so.
How can I change the transition time of the dimTo() command ?
- waltervl
- Posts: 5149
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: dimto transition time
This looks more a plugin issue then dzVents.
What happens if you set the dimlevel from 0 to 100 from the Domoticz User interface with the device widget?
What happens if you set the dimlevel from 0 to 100 from the Domoticz User interface with the device widget?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
- barts2108
- Posts: 25
- Joined: Wednesday 17 June 2020 18:31
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Arnhem
- Contact:
Re: dimto transition time
If I set the dimlevel from the Domoticz UI it also dims fast (looks like the same speed as the dimTo() )
- waltervl
- Posts: 5149
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: dimto transition time
Ok, than talk to the deconz plugin owner, perhaps he has an idea how to do this as dzVents sends the same command to your light as the UI widget.
https://domoticz.com/forum/viewtopic.php?f=68&t=25631
https://domoticz.com/forum/viewtopic.php?f=68&t=25631
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
- barts2108
- Posts: 25
- Joined: Wednesday 17 June 2020 18:31
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Arnhem
- Contact:
Re: dimto transition time
Ok I will... if I get usefull info will feedback here.
-
- Posts: 742
- Joined: Saturday 30 May 2015 22:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Contact:
Re: dimto transition time
In the zigbee2mqtt panel you can adjust the time to dim from one setpoint to another. Seems to work well
-
- Posts: 58
- Joined: Saturday 27 January 2018 20:59
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Contact:
Re: dimto transition time
You can use the Hue API direct:
Put this script in global_data (use your Key):
Put this script in global_data (use your Key):
Code: Select all
hue_colors_P = function(domoticz,status,bri_out,hue_out,sat_out,device,transition)
domoticz.log('Send switch command ')
local bridge = '192.168.1.161'
local tempUrl = 'http://'..bridge..'/api/xigTvboK2fVo6ld4sYXyp4gUzDLNKIXpUViF/lights/'.. device .. '/state'
local data = {on = status, bri = bri_out, hue = hue_out, sat = sat_out, transitiontime = transition}
domoticz.openURL({
url = tempUrl,
method = 'PUT',
callback = device,
postData = data
})
end,
- barts2108
- Posts: 25
- Joined: Wednesday 17 June 2020 18:31
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Arnhem
- Contact:
Re: dimto transition time
As far as i know i do not have zigbee2mqtt nor a hue bridge.
But i can check if the rest api for the tradfri driver accepts the json
But i can check if the rest api for the tradfri driver accepts the json
- barts2108
- Posts: 25
- Joined: Wednesday 17 June 2020 18:31
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Arnhem
- Contact:
Re: dimto transition time
As expected : Tradfri does not accept any settings for hue bridge.
-
- Posts: 3
- Joined: Thursday 20 January 2022 19:21
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: dimto transition time
Stumbled upon this topic as I needed something similar. Ended up simulating a transition. Not as smooth as it could be as the steps go down 1 percent at a time. Script is attached as I'm getting the following error message when using 'code' tags:
You can’t post image, email or url links that are external to this domain. Please remove os., os., dz., dz., item., item., dz., item., dz., dz., dz., dz., dz. and dz.
- Attachments
-
- dimmerTransition.txt
- (1.3 KiB) Downloaded 77 times
-
- Posts: 3
- Joined: Thursday 20 January 2022 19:21
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: dimto transition time
A better one if subsecond dim steps are not needed.
- Attachments
-
- dimmerTransition.txt
- (1.3 KiB) Downloaded 34 times
- waltervl
- Posts: 5149
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: dimto transition time
To be complete a lot of zigbee platforms like Zigbee2MQTT and zigbee4Domoticz support zigbee settings for transition times for dimlevels and/or color changes. So look into your gateway settings first (not controlled by Domoticz). This solution is also more stable than using Domoticz to steer this.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Who is online
Users browsing this forum: No registered users and 1 guest