Page 1 of 1
dimto transition time
Posted: Saturday 11 December 2021 16:08
by barts2108
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 ?
Re: dimto transition time
Posted: Saturday 11 December 2021 16:15
by waltervl
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?
Re: dimto transition time
Posted: Saturday 11 December 2021 17:20
by barts2108
If I set the dimlevel from the Domoticz UI it also dims fast (looks like the same speed as the dimTo() )
Re: dimto transition time
Posted: Saturday 11 December 2021 19:10
by waltervl
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
Re: dimto transition time
Posted: Sunday 12 December 2021 13:19
by barts2108
Ok I will... if I get usefull info will feedback here.
Re: dimto transition time
Posted: Sunday 12 December 2021 13:56
by jake
In the zigbee2mqtt panel you can adjust the time to dim from one setpoint to another. Seems to work well
Re: dimto transition time
Posted: Sunday 12 December 2021 20:37
by Maxx
You can use the Hue API direct:
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,
Re: dimto transition time
Posted: Sunday 12 December 2021 20:47
by barts2108
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
Re: dimto transition time
Posted: Sunday 19 December 2021 14:12
by barts2108
As expected : Tradfri does not accept any settings for hue bridge.
Re: dimto transition time
Posted: Wednesday 31 January 2024 21:24
by steeringwheel
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.
Re: dimto transition time
Posted: Wednesday 07 February 2024 21:26
by steeringwheel
A better one if subsecond dim steps are not needed.
Re: dimto transition time
Posted: Wednesday 07 February 2024 21:49
by waltervl
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.