Hey there,
I had the problem, that the script was not working with Shelly Pro3EM (Firmware 20241011-114455/1.4.4-g6d2a586).
In the logs the following crital error was mentioned:
Traceback (most recent call last):
File "/data/dbus-shelly-3em-smartmeter/dbus-shelly-3em-smartmeter.py", line 273, in main
pvac_output = DbusShelly3emService(
File "/data/dbus-shelly-3em-smartmeter/dbus-shelly-3em-smartmeter.py", line 66, in init
self._dbusservice.add_path('/Serial', self._getShellySerial())
File "/data/dbus-shelly-3em-smartmeter/dbus-shelly-3em-smartmeter.py", line 89, in _getShellySerial
serial = meter_data['mac']
KeyError: 'mac'
I figuered out, that my Shelly (probably because of the newer Firmware) used another json format.
So I adapted the script to handle the new json from "http://<>/rpc/Shelly.GetStatus"
Here are the changes (compared to v0.3), which work for me:
Hey there, I had the problem, that the script was not working with Shelly Pro3EM (Firmware 20241011-114455/1.4.4-g6d2a586). In the logs the following crital error was mentioned:
I figuered out, that my Shelly (probably because of the newer Firmware) used another json format. So I adapted the script to handle the new json from "http://<>/rpc/Shelly.GetStatus"
Here are the changes (compared to v0.3), which work for me:
Maybe it will help one or the other.