AlexxIT / SonoffLAN

Control Sonoff Devices with eWeLink (original) firmware over LAN and/or Cloud from Home Assistant
https://github.com/AlexxIT/Blog
MIT License
2.75k stars 417 forks source link

Fix broken request to zeroconf/getState #1442

Closed AlexxIT closed 2 months ago

AlexxIT commented 4 months ago
          File "/config/custom_components/sonoff/core/ewelink/__init__.py", line 270, in local_update|    params = self.local.decrypt_msg(msg, device["devicekey"])

This integration works after all devices are reset but then I get the above message as well as the below for all devices:

1001xxxnnn => Local4 | 192.168.68.112:8081 | None !! Can't read JSON 0, message='Attempt to decode JSON with unexpected mimetype: text/html', url=URL('http://192.168.68.112:8081/zeroconf/getState')

Can anyone do anything because this worked flawlessly with previous versions of HA. It stopped working around April when I did an update.

Originally posted by @wrcaston84 in https://github.com/AlexxIT/SonoffLAN/issues/1410#issuecomment-2212436693

Phara0h commented 4 months ago

Same here

AlexxIT commented 2 months ago

https://github.com/AlexxIT/SonoffLAN/releases/tag/v3.8.0