Missing a basic installation manual. This is what I did on my debian10 VM running Domoticz 2022.1;
logged in as root on console;
cd /home/Domoticz/plugins
git clone
https://github.com/mario-peters/ShellyCloudPlugin.git ShellyCloudPlugin
cd ShellyCloudPlugin
chmod +x plugin.py
apt-get install python-pip
apt-get install python-requests
apt-get install python3-pip
apt-get install python3-requests
systemctl restart domoticz.service
In Domoticz I added My Shelly 2.5 Roller/Shutter Hardware;
Selected the available "Shelly Cloud Plugin"
Added the Ip address (10.1.1.25), the Username, Password and Type (Shelly 2.5) for my Roller/Shutter (Zonnescherm) device.
I also enabled and set an Username and Password on the Shelly webinterface (because they are mandatory in the plugin)
The shelly is NOT added to my Domoticz Devices. I see following errors;
2022-07-08 22:45:40.284 Error: Zonnescherm: 'onHeartbeat' failed 'KeyError':'1'.
2022-07-08 22:45:40.284 Error: Zonnescherm: Exception traceback:
2022-07-08 22:45:40.284 Error: Zonnescherm: ----> Line 358 in '/home/domoticz/plugins/ShellyCloudPlugin/plugin.py', function onHeartbeat
2022-07-08 22:45:40.284 Error: Zonnescherm: ----> Line 323 in '/home/domoticz/plugins/ShellyCloudPlugin/plugin.py', function onHeartbeat
2022-07-08 22:45:40.284 Error: Zonnescherm: ----> Line 852 in '/home/domoticz/plugins/ShellyCloudPlugin/plugin.py', function updateSHSW25
On
https://10.1.1.25/status The shelly is reporting;
{"wifi_sta":{"connected":true,"ssid":"NoFreeWifi","ip":"10.1.1.25","rssi":-47},"cloud":{"enabled":true,"connected":true},"mqtt":{"connected":false},"time":"22:33","unixtime":1657312398,"serial":9894,"has_update":false,"mac":"E8DB1234ABCD","cfg_changed_cnt":10,"actions_stats":{"skipped":0},"rollers":[{"state":"stop","source":"http","power":0.00,"is_valid":true,"safety_switch":false,"overtemperature":false,"stop_reason":"normal","last_direction":"open","current_pos":101,"calibrating":false,"positioning":true}],"meters":[{"power":0.00,"overpower":0.00,"is_valid":true,"timestamp":1657319598,"counters":[0.000, 0.000, 0.000],"total":5528},{"power":0.00,"overpower":0.00,"is_valid":true,"timestamp":1657319598,"counters":[0.000, 0.000, 0.000],"total":6446}],"inputs":[{"input":0,"event":"","event_cnt":0},{"input":0,"event":"","event_cnt":0}],"temperature":51.42,"overtemperature":false,"tmp":{"tC":51.42,"tF":124.56, "is_valid":true},"temperature_status":"Normal","update":{"status":"idle","has_update":false,"new_version":"20220209-093016/v1.11.8-g8c7bb8d","old_version":"20220209-093016/v1.11.8-g8c7bb8d"},"ram_total":49920,"ram_free":35384,"fs_size":233681,"fs_free":146082,"voltage":234.72,"uptime":2342299}
What's going wrong here?