Hello
Just to inform that the Data Format of Selector Switch has changed in build build 16046 when executing
http://Domoticz_IP:Domoticz_Port/json.htm?type=command¶m=getdevices&rid=DEVICE_ID
Prior it was "Data" : "Set Level: 10 %" ==> Data = Level
Now it is "Data" : "Alive" ==> Data = Name
BR
Data Format of Selector Switch has changed in build build 16046
Moderators: leecollings, remb0
-
- Posts: 303
- Joined: Saturday 27 February 2016 0:30
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.2
- Contact:
Re: Data Format of Selector Switch has changed in build build 16046
Nice script killer
- waltervl
- Posts: 5148
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: Data Format of Selector Switch has changed in build build 16046
I checked the latest commits but could not find a reason why this would have happened. From what version did you update?
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
-
- Posts: 103
- Joined: Monday 04 March 2019 14:59
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.7
- Location: France
- Contact:
Re: Data Format of Selector Switch has changed in build build 16046
Hello
From the build 16030
BR
From the build 16030
BR
meal
-
- Posts: 103
- Joined: Monday 04 March 2019 14:59
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.7
- Location: France
- Contact:
Re: Data Format of Selector Switch has changed in build build 16046
Hello
The switch has been created with type 244 (switch), subtype 62 (selector switch). switchtype 18 (Selector)
BR
The switch has been created with type 244 (switch), subtype 62 (selector switch). switchtype 18 (Selector)
BR
meal
- waltervl
- Posts: 5148
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: Data Format of Selector Switch has changed in build build 16046
Still dont see it changed. Field Data is some kind of multipurpose field. For getting selector status level from the json I use the Level and Name fields
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
- waltervl
- Posts: 5148
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: Data Format of Selector Switch has changed in build build 16046
Think I found it. It is there to get the level shown in the log...
https://github.com/domoticz/domoticz/pull/6077
https://github.com/domoticz/domoticz/pull/6077
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
-
- Posts: 103
- Joined: Monday 04 March 2019 14:59
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.7
- Location: France
- Contact:
Re: Data Format of Selector Switch has changed in build build 16046
Hello
OK I see.
I will use Level instead of Data info in the JSON response.
BR
OK I see.
I will use Level instead of Data info in the JSON response.
BR
meal
- gizmocuz
- Posts: 2350
- Joined: Thursday 11 July 2013 18:59
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Top of the world
- Contact:
Re: Data Format of Selector Switch has changed in build build 16046
Exactly, you have to use level. And for presentation the Data field.
This was requested via a PR, and I agree it made sense to show the correct data
This was requested via a PR, and I agree it made sense to show the correct data
Quality outlives Quantity!
Who is online
Users browsing this forum: Google [Bot] and 1 guest