mario-peters / ShellyCloudPlugin

Domoticz plugin for controling Shelly devices
MIT License
7 stars 9 forks source link

'onStart' failed 'JSONDecodeError':'Expecting value: line 1 column 1 (char 0)' #21

Open jovo71 opened 2 years ago

jovo71 commented 2 years ago

Hello,

Trying to control a Shelly TRV through Domoticz but I am having some challanges with this shelly cloud plugin.

Have it installed succesfully i think using git clone. when adding the plugin under hardware, i get this error in the log when Domoticz restarts: `2022-10-02 11:56:50.269 Shelly TRV: Worker thread started. 2022-10-02 11:56:50.269 Status: Shelly TRV: Started. 2022-10-02 11:56:50.269 Status: Shelly TRV: Entering work loop. 2022-10-02 11:56:50.471 Status: Shelly TRV: Initialized version 1.0.1, author 'Mario Peters' 2022-10-02 11:56:50.472 Shelly TRV: onStart called 2022-10-02 11:56:50.945 Error: Shelly TRV: 'onStart' failed 'JSONDecodeError':'Expecting value: line 1 column 1 (char 0)'. 2022-10-02 11:56:50.946 Error: Shelly TRV: Exception traceback: 2022-10-02 11:56:50.946 Error: Shelly TRV: ----> Line 336 in '/home/john/domoticz/plugins/ShellyCloudPlugin/plugin.py' 2022-10-02 11:56:50.946 Error: Shelly TRV: ----> Line 134 in '/home/john/domoticz/plugins/ShellyCloudPlugin/plugin.py' 2022-10-02 11:56:50.946 Error: Shelly TRV: ----> Line 357 in '/usr/lib/python3.8/json/init.py' 2022-10-02 11:56:50.946 Error: Shelly TRV: ----> Line 337 in '/usr/lib/python3.8/json/decoder.py' 2022-10-02 11:56:50.946 Error: Shelly TRV: ----> Line 355 in '/usr/lib/python3.8/json/decoder.py''

I am using Version 2022.1 (January 31 2022) of Domoticz on Ubuntu 20.04.5 LTS And pip 22.2.2 from /home/john/.local/lib/python3.8/site-packages/pip (python 3.8)

output from settings: { "device":{"type":"SHTRV-01","mac":"588E81A61671","hostname":"shellytrv-588E81A61671","num_outputs":0},"wifi_ap":{"enabled":false,"ssid":"shellytrv-588E81A61671"},"wifi_sta":{"enabled":true,"ssid":"vuurwerk4U","ipv4_method":"dhcp","ip":null,"gw":null,"mask":null,"dns":null},"mqtt":{"enable":false,"server":"192.168.33.2:1883","user":null,"id":"shellytrv-588E81A61671","clean_session":true,"max_qos":0,"retain":false,"update_period":60},"sntp":{"server":"time.google.com","enabled":true},"login":{"enabled":false,"unprotected":false,"username":"admin","default_username":"admin"},"pin_code":"","name":"TRV","fw":"20220811-152343/v2.1.8@5afc928c","discoverable":false,"build_info":{"build_id":"20220811-152343/v2.1.8@5afc928c","build_timestamp":"2022-08-11T15:23:43Z","build_version":"2022081115"},"cloud":{"enabled":true},"coiot":{"enabled":false,"update_period":3600,"peer":""},"timezone":"Europe/Amsterdam","lat":52.394241,"lng":4.846680,"tzautodetect":true,"tz_utc_offset":7200,"tz_dst":false,"tz_dst_auto":true,"time":"21:18","child_lock":false,"clog_prevention":false,"display":{"brightness":7,"flipped":true},"hwinfo":{"hw_revision":"dev-prototype","batch_id":0},"sleep_mode":{"period":60,"unit":"m"},"thermostats":[{"target_t":{"enabled":true,"value":18.0,"value_op":8.0,"units":"C","accelerated_heating":true},"schedule":true,"schedule_profile":1,"schedule_profile_names":["Badkamer","Livingroom 1","Bedroom","Bedroom 1","Holiday"],"schedule_rules":["0600-0123456-23","0930-0123456-18"],"temperature_offset":0.0,"ext_t":{"enabled":false, "floor_heating": false},"t_auto":{"enabled":true},"boost_minutes":30,"valve_min_percent":0.00,"force_close":false,"calibration_correction":true,"extra_pressure":false,"open_window_report":true}] }

mario-peters commented 1 year ago

Hmm, could you tell me if the TRV-device is in some sort of sleep modus?