Had the same error.
You should protect the decode operation
payload = bytes.fromhex(data[‘data’]).decode(‘utf-8’)
by
try:
payload = bytes.fromhex(data[‘data’]).decode(‘utf-8’)
except UnicodeDecodeError:
# just take it as it is it can be raw binary data
payload = data[‘data’]
Thank you for the reply, where is the code located that has to be altered?
I assume it is the sensor.py file but cannot find it in the home assitant configurator .
I found the map usr/local/lib/python3.7/site-packages
Unfortunately i can not find a map inthere called components/sigfox/sensor.py, very weird. It has to be somewhere.
I run hassio on Raspberry Pi
I have now made a custom_components folder in my config. Will check tommorow if the edited sigfox file here works.
So i made the custom_components map with the sigfox map and the files from github and edited the sigfox.py file.
This corrupted my hassio, could not connect anymore. Had to log on as root via keyboard and delete the sigfox map in the custom components map. Now back up and running.
If i type in the command to find the sigfox file i get:
“bash: find/: No such file or directory”
I fear something has changed. Yesterday al my running modules stopped in ha. In the sigfox backend i can see that they are sending. The api settings are correct. When i reset hass the modules dissapear. On The sigfox site i see some announcements of changes.
I think the code has to be changed for recieving
hm, it seems another problem.
When i go to https://backend.sigfox.com/api/
And paste my login and password that was generated i get : {“message”:“The requested resource was not found.”}
It seems that the API_URL is no longer correct from yesterday, anyone els having the same problem?
OK, it is indeed the new version that causes the problem, when i use https://api.sigfox.com/v2/devices/
and log in with my credentials i can get the data of my devices, so the custom component does sadly does not work anymore @robmarkcole