2023-1:Diming lights not working in URL

On various Hardware and OS systems: pi / windows / routers / nas, etc

Moderator: leecollings

Post Reply
m3mojo
Posts: 2
Joined: Thursday 22 December 2016 19:20
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

2023-1:Diming lights not working in URL

Post by m3mojo »

Hi!
I just upgraded to 2023-1 and everything works great, but one thing: it seems like the dimming via urls changed:

/json. htm?type=command&param=switchlight&idx=244&switchcmd=Set%20Level&level=20

Leads to

2023-03-28 22:42:31 .507 Status: User: *** (IP: ***) initiated a switch command (244/HAB Lichtgruppe 1/Set Level)
2023-03-28 22:42:31 .515 Status: LUA: Handledevicenumber: 1 - Device based event fired on 'HAB Lichtgruppe 1', value 'On', svalue '31'

It does not matter what number "level" has, it always recognizes "31" as svalue. If I put "&level=0" it switches off, but every other Number >= 1 leads to "31" .

The json answer is always
"{
"status" : "OK",
"title" : "SwitchLight"
}"

Any ideas?
Thank you and keep up the good work!!
User avatar
waltervl
Posts: 5733
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: 2023-1:Diming lights not working in URL

Post by waltervl »

Seems that there is a lua script running that sets the level back to 31
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
thaui
Posts: 59
Joined: Sunday 15 March 2015 19:53
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Location: Hamburg
Contact:

Re: 2023-1:Diming lights not working in URL

Post by thaui »

There must be a mistake. If I use the json command setcolbrightnessvalue the device is going to 100%.

os.execute("curl \"http://127.0.0.1:8080/json.htm?type=com ... hite=false\"")

The json command switchlight is not dimming the device but the percentage is shown in the GUI as reduced
os.execute("curl \"http://127.0.0.1:8080/json.htm?type=com ... tchcmd=Set Level&level=50\"")
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest