2023-1:Diming lights not working in URL
Posted: Tuesday 28 March 2023 22:49
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¶m=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!!
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¶m=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!!