LevelName of Switch Selector retreive from API/JSON URL

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
cobalt78000
Posts: 1
Joined: Friday 03 December 2021 11:58
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021.1
Location: France
Contact:

LevelName of Switch Selector retreive from API/JSON URL

Post by cobalt78000 »

Hi,

I would like to create a script to retreive status using API/JSON URL of Switch Selector but when i read LevelName I have :
VG91dCBhcnLDqnTDqXxUw6lsw6l8VMOpbMOpIGV0IGFtcGxpfEFtcGxp
corresponding at Base64 :
Tout arrêté|Télé|Télé et ampli|Ampli
The real text is :
Tout arrêté|Télé|Télé et ampli|Ampli
Now if i use https://codebeautify.org/base64-encode to encode I have:
VG91dCBhcnLqdOl8VOls6XxU6WzpIGV0IGFtcGxpfEFtcGxp
This is not the same as the one in domoticz ...
VG91dCBhcnLqdOl8VOls6XxU6WzpIGV0IGFtcGxpfEFtcGxp
<>
VG91dCBhcnLDqnTDqXxUw6lsw6l8VMOpbMOpIGV0IGFtcGxpfEFtcGxp
Is the problem in the database or in the base64 script using by domoticz or simply my misunderstanding ?
Domoticz on raspberry since 3 years
44/668 MHz
MySensors
EspEasy
Wifi
zigate
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest