Thank your for your answer.
My new setup on the shelly is :
And I restarted home assistant, but no device detected. How could I investigate that ?
Thank your for your answer.
My new setup on the shelly is :
And I restarted home assistant, but no device detected. How could I investigate that ?
The logs :
2023-10-29 13:01:41.926 INFO (MainThread) [homeassistant.components.automation.shellies_announce_gen2] Shellies Announce Gen2: Running automation actions
2023-10-29 13:01:41.927 INFO (MainThread) [homeassistant.components.automation.shellies_announce_gen2] Shellies Announce Gen2: Repeating sequence: Iteration 1 of 1 with item: 'shellypro1-30c6f7813e68'
2023-10-29 13:01:41.927 INFO (MainThread) [homeassistant.components.automation.shellies_announce_gen2] Initialized trigger Shellies Announce Gen2
2023-10-29 13:01:41.927 INFO (MainThread) [homeassistant.components.automation.shellies_discovery_gen2] Initialized trigger Shellies Discovery Gen2
2023-10-29 13:01:41.928 INFO (MainThread) [homeassistant.components.automation.shellies_announce_gen2] Shellies Announce Gen2: Repeat at step 1: Running automation actions
2023-10-29 13:01:41.928 INFO (MainThread) [homeassistant.components.automation.shellies_announce_gen2] Shellies Announce Gen2: Repeat at step 1: Executing step call service
This is not a debug log
Where to access debug log in this case ?
I have added the line about the logger in the configuration.yaml as you asked and restarted HA.
/config/home-assistant.log
I am having the same issues as rungeard with the script and a shelly pro4pm. Canât find the device in the mqtt integration. Log also does not show any debug logs from the script.
Full Log here:
2023-11-29 15:59:44.423 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration rademacher which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-11-29 15:59:44.424 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-11-29 15:59:44.424 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration frigate which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-11-29 15:59:44.424 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration homematicip_local which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-11-29 15:59:48.200 ERROR (MainThread) [homeassistant.components.automation] Automation with alias 'Trockner läuft' failed to setup triggers and has been disabled: Unknown device 'bec35b36baa6655064bb2914c93bc60d'
2023-11-29 15:59:48.551 ERROR (MainThread) [homeassistant.components.automation] Automation with alias 'Ălkeller Kontakt Lampe' failed to setup actions and has been disabled: Unknown device 'ce993c728e2f404f0d7ad00be7c83da2'
2023-11-29 15:59:49.132 ERROR (MainThread) [homeassistant.components.automation] Blueprint 'Controller - Philips 324131092621 Hue Dimmer switch' generated invalid automation with inputs {'controller_entity': 'sensor.hue_switch_buro_action', 'helper_last_controller_event': 'input_text.text_hue_buro', 'action_button_on_short': [{'type': 'turn_on', 'device_id': 'e43b45a98985db7711a20b314382d0f9', 'entity_id': 'switch.osram_plug_buro', 'domain': 'switch'}], 'action_button_off_short': [{'type': 'turn_off', 'device_id': 'e43b45a98985db7711a20b314382d0f9', 'entity_id': 'switch.osram_plug_buro', 'domain': 'switch'}], 'integration': 'Zigbee2MQTT', 'action_button_up_short': [{'type': 'toggle', 'device_id': 'e43b45a98985db7711a20b314382d0f9', 'entity_id': 'switch.osram_plug_buro', 'domain': 'switch'}]}: Unknown device 'e43b45a98985db7711a20b314382d0f9'
2023-11-29 15:59:49.944 ERROR (MainThread) [homeassistant.components.automation] Blueprint 'Controller - IKEA E2001/E2002 STYRBAR Remote control' generated invalid automation with inputs {'integration': 'Zigbee2MQTT', 'controller_entity': 'sensor.ikea_remote_buro_action', 'helper_last_controller_event': 'input_text.text_styrbar', 'action_button_left_short': [], 'action_button_down_short': [{'service': 'scene.turn_on', 'target': {'entity_id': 'scene.gute_nacht'}, 'metadata': {}}], 'action_button_up_short': [{'service': 'scene.turn_on', 'target': {'entity_id': 'scene.kino'}, 'metadata': {}}, {'type': 'turn_on', 'device_id': 'e9459b18ff0d1ee138704f1d976024ca', 'entity_id': 'light.ikea_rgb_ecklampe', 'domain': 'light'}], 'action_button_right_short': [{'type': 'toggle', 'device_id': 'e43b45a98985db7711a20b314382d0f9', 'entity_id': 'switch.osram_plug_buro', 'domain': 'switch'}]}: Unknown device 'e43b45a98985db7711a20b314382d0f9'
2023-11-29 16:00:32.317 ERROR (SyncWorker_9) [pynetgear.router] Netgear ReadTimeout, service 'DeviceConfig:1', method 'CheckNewFirmware', host 192.168.1.2:443 ssl True
2023-11-29 16:00:38.999 INFO (MainThread) [homeassistant.components.automation.tradfri_wireless_5_button_remote_schlafzimmer] Initialized trigger TRĂ
DFRI Remote Schlafzimmer
2023-11-29 16:00:38.999 INFO (MainThread) [homeassistant.components.automation.sensor_motion_kuche] Initialized trigger Sensor Motion - KĂźche
2023-11-29 16:00:38.999 INFO (MainThread) [homeassistant.components.automation.tradfri_on_off_switch_dimmer_kuche] Initialized trigger TRĂ
DFRI Switch KĂźche
2023-11-29 16:00:38.999 INFO (MainThread) [homeassistant.components.automation.remote_wohnzimmer] Initialized trigger Remote Wohnzimmer
2023-11-29 16:00:38.999 INFO (MainThread) [homeassistant.components.automation.waschmaschine_lauft] Initialized trigger Waschmaschine läuft
2023-11-29 16:00:38.999 INFO (MainThread) [homeassistant.components.automation.waschmaschine_benachrichtigung] Initialized trigger Waschmaschine Benachrichtigung
2023-11-29 16:00:38.999 INFO (MainThread) [homeassistant.components.automation.spulmaschine_lauft] Initialized trigger Spßlmaschine läuft
2023-11-29 16:00:38.999 INFO (MainThread) [homeassistant.components.automation.spulmaschine] Initialized trigger SpĂźlmaschine Benachrichtigung
2023-11-29 16:00:38.999 INFO (MainThread) [homeassistant.components.automation.tv_aus] Initialized trigger TV aus
2023-11-29 16:00:38.999 INFO (MainThread) [homeassistant.components.automation.trockner_benachrichtigung] Initialized trigger Trockner Benachrichtigung
2023-11-29 16:00:38.999 INFO (MainThread) [homeassistant.components.automation.tradfri_remote_og] Initialized trigger TRĂ
DFRI Remote OG
2023-11-29 16:00:38.999 INFO (MainThread) [homeassistant.components.automation.bypass_sensor_kuche] Initialized trigger ByPass Sensor KĂźche off
2023-11-29 16:00:38.999 INFO (MainThread) [homeassistant.components.automation.bypass_sensor_kuche_on] Initialized trigger Bypass Sensor KĂźche on
2023-11-29 16:00:39.000 INFO (MainThread) [homeassistant.components.automation.sensor_motion_eingang] Initialized trigger Sensor Motion - Eingang
2023-11-29 16:00:39.000 INFO (MainThread) [homeassistant.components.automation.garten_aktivitat] Initialized trigger Garten Aktivität
2023-11-29 16:00:39.000 INFO (MainThread) [homeassistant.components.automation.garten_kamera_uberwachung_an] Initialized trigger Garten Kamera Ăberwachung an
2023-11-29 16:00:39.000 INFO (MainThread) [homeassistant.components.automation.garten_kamera_uberwachung_aus] Initialized trigger Garten Kamera Ăberwachung aus
2023-11-29 16:00:39.000 INFO (MainThread) [homeassistant.components.automation.gute_nacht_2_30] Initialized trigger Gute Nacht 2:30
2023-11-29 16:00:39.000 INFO (MainThread) [homeassistant.components.automation.patrick_tracker] Initialized trigger Patrick Tracker
2023-11-29 16:00:39.000 INFO (MainThread) [homeassistant.components.automation.kamera_aktivitat_benachrichtigung_garage] Initialized trigger Kamera Aktivität Benachrichtigung Garage
2023-11-29 16:00:39.000 INFO (MainThread) [homeassistant.components.automation.shellies_announce_gen2] Shellies Announce Gen2: Running automation actions
2023-11-29 16:00:39.000 INFO (MainThread) [homeassistant.components.automation.shellies_announce_gen2] Shellies Announce Gen2: Repeating sequence: Iteration 1 of 1 with item: 'shellypro4pm-c8f09e83c8d0'
2023-11-29 16:00:39.000 INFO (MainThread) [homeassistant.components.automation.shellies_announce_gen2] Initialized trigger Shellies Announce Gen2
2023-11-29 16:00:39.000 INFO (MainThread) [homeassistant.components.automation.shellies_discovery_gen2] Initialized trigger Shellies Discovery Gen2
2023-11-29 16:00:39.022 INFO (MainThread) [homeassistant.components.automation.shellies_announce_gen2] Shellies Announce Gen2: Repeat at step 1: Running automation actions
2023-11-29 16:00:39.022 INFO (MainThread) [homeassistant.components.automation.shellies_announce_gen2] Shellies Announce Gen2: Repeat at step 1: Executing step call service
2023-11-29 16:00:39.487 WARNING (Recorder) [homeassistant.components.sensor.recorder] The unit of sensor.einspeisung_netz_in_kwh_taglich (kWh) cannot be converted to the unit of previously compiled statistics (None). Generation of long term statistics will be suppressed unless the unit changes back to None or a compatible unit. Go to https://my.home-assistant.io/redirect/developer_statistics to fix this
2023-11-29 16:00:39.487 WARNING (Recorder) [homeassistant.components.sensor.recorder] The unit of sensor.energie_eigenverbrauch_pv_taglich (kWh) cannot be converted to the unit of previously compiled statistics (None). Generation of long term statistics will be suppressed unless the unit changes back to None or a compatible unit. Go to https://my.home-assistant.io/redirect/developer_statistics to fix this
2023-11-29 16:00:39.488 WARNING (Recorder) [homeassistant.components.sensor.recorder] The unit of sensor.energie_eigenverbrauch_pv_taglich_v2 (kWh) cannot be converted to the unit of previously compiled statistics (None). Generation of long term statistics will be suppressed unless the unit changes back to None or a compatible unit. Go to https://my.home-assistant.io/redirect/developer_statistics to fix this
2023-11-29 16:01:12.768 INFO (MainThread) [homeassistant.components.automation.waschmaschine_lauft] Waschmaschine läuft: Running automation actions
2023-11-29 16:01:12.769 INFO (MainThread) [homeassistant.components.automation.waschmaschine_lauft] Waschmaschine läuft: If at step 2: Running automation actions
2023-11-29 16:01:12.769 INFO (MainThread) [homeassistant.components.automation.waschmaschine_lauft] Waschmaschine läuft: If at step 2: Executing step call service
Hi,
My logs are getting flooded with these lines every 30 secs. The IPâs in these lines are related to my 3 Shelly Gen2 modules.
The Shelly Gen2 firmware are up-to-date until today.
HASS is on latest version as well.
Python script is also latest version.
Did I misconfigure something?
The modules work however and are controllable from HASS.
TYIA!
2023-12-18 22:59:10.454 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'dict object' has no attribute 'result' when rendering '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'
2023-12-18 22:59:10.455 ERROR (MainThread) [homeassistant.helpers.template] Error parsing value: 'dict object' has no attribute 'result' (value: {"ble":{},"cloud":{"connected":false},"eth":{"ip":null},"input:0":{"id":0,"state":null},"input:1":{"id":1,"state":null},"mqtt":{"connected":true},"script:4":{"id":4,"running":false,"mem_free":24192},"script:1":{"id":1,"running":true,"mem_used":1008,"mem_peak":4732,"mem_free":24192},"switch:0":{"id":0,"source":"init","output":true,"temperature":{"tC":18.9,"tF":66.1}},"switch:1":{"id":1,"source":"init","output":false,"temperature":{"tC":13.3,"tF":56}},"sys":{"mac":"30C6F784B9B8","restart_required":false,"time":"22:59","unixtime":1702936751,"uptime":1620,"ram_size":244392,"ram_free":136896,"fs_size":524288,"fs_free":204800,"cfg_rev":45,"kvs_rev":0,"schedule_rev":0,"webhook_rev":0,"available_updates":{},"installed_version":"1.0.8"},"wifi":{"sta_ip":"10.0.20.161","status":"got ip","ssid":"Camapola - IoT","rssi":-59},"ws":{"connected":false}}, template: {%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%})
2023-12-18 22:59:10.455 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'dict object' has no attribute 'result' when rendering '{{value_json.result.sys.available_updates.get("stable",{})|to_json}}'
2023-12-18 22:59:10.455 ERROR (MainThread) [homeassistant.helpers.template] Error parsing value: 'dict object' has no attribute 'result' (value: {"ble":{},"cloud":{"connected":false},"eth":{"ip":null},"input:0":{"id":0,"state":null},"input:1":{"id":1,"state":null},"mqtt":{"connected":true},"script:4":{"id":4,"running":false,"mem_free":24192},"script:1":{"id":1,"running":true,"mem_used":1008,"mem_peak":4732,"mem_free":24192},"switch:0":{"id":0,"source":"init","output":true,"temperature":{"tC":18.9,"tF":66.1}},"switch:1":{"id":1,"source":"init","output":false,"temperature":{"tC":13.3,"tF":56}},"sys":{"mac":"30C6F784B9B8","restart_required":false,"time":"22:59","unixtime":1702936751,"uptime":1620,"ram_size":244392,"ram_free":136896,"fs_size":524288,"fs_free":204800,"cfg_rev":45,"kvs_rev":0,"schedule_rev":0,"webhook_rev":0,"available_updates":{},"installed_version":"1.0.8"},"wifi":{"sta_ip":"10.0.20.161","status":"got ip","ssid":"Camapola - IoT","rssi":-59},"ws":{"connected":false}}, template: {{value_json.result.sys.available_updates.get("stable",{})|to_json}})
2023-12-18 22:59:10.455 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'dict object' has no attribute 'result' when rendering '{%if value_json.result.sys.available_updates.stable is defined%}ON{%else%}OFF{%endif%}'
2023-12-18 22:59:10.456 ERROR (MainThread) [homeassistant.helpers.template] Error parsing value: 'dict object' has no attribute 'result' (value: {"ble":{},"cloud":{"connected":false},"eth":{"ip":null},"input:0":{"id":0,"state":null},"input:1":{"id":1,"state":null},"mqtt":{"connected":true},"script:4":{"id":4,"running":false,"mem_free":24192},"script:1":{"id":1,"running":true,"mem_used":1008,"mem_peak":4732,"mem_free":24192},"switch:0":{"id":0,"source":"init","output":true,"temperature":{"tC":18.9,"tF":66.1}},"switch:1":{"id":1,"source":"init","output":false,"temperature":{"tC":13.3,"tF":56}},"sys":{"mac":"30C6F784B9B8","restart_required":false,"time":"22:59","unixtime":1702936751,"uptime":1620,"ram_size":244392,"ram_free":136896,"fs_size":524288,"fs_free":204800,"cfg_rev":45,"kvs_rev":0,"schedule_rev":0,"webhook_rev":0,"available_updates":{},"installed_version":"1.0.8"},"wifi":{"sta_ip":"10.0.20.161","status":"got ip","ssid":"Camapola - IoT","rssi":-59},"ws":{"connected":false}}, template: {%if value_json.result.sys.available_updates.stable is defined%}ON{%else%}OFF{%endif%})
2023-12-18 22:59:10.456 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'dict object' has no attribute 'result' when rendering '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'
2023-12-18 22:59:10.456 ERROR (MainThread) [homeassistant.helpers.template] Error parsing value: 'dict object' has no attribute 'result' (value: {"ble":{},"cloud":{"connected":false},"eth":{"ip":null},"input:0":{"id":0,"state":null},"input:1":{"id":1,"state":null},"mqtt":{"connected":true},"script:4":{"id":4,"running":false,"mem_free":24192},"script:1":{"id":1,"running":true,"mem_used":1008,"mem_peak":4732,"mem_free":24192},"switch:0":{"id":0,"source":"init","output":true,"temperature":{"tC":18.9,"tF":66.1}},"switch:1":{"id":1,"source":"init","output":false,"temperature":{"tC":13.3,"tF":56}},"sys":{"mac":"30C6F784B9B8","restart_required":false,"time":"22:59","unixtime":1702936751,"uptime":1620,"ram_size":244392,"ram_free":136896,"fs_size":524288,"fs_free":204800,"cfg_rev":45,"kvs_rev":0,"schedule_rev":0,"webhook_rev":0,"available_updates":{},"installed_version":"1.0.8"},"wifi":{"sta_ip":"10.0.20.161","status":"got ip","ssid":"Camapola - IoT","rssi":-59},"ws":{"connected":false}}, template: {%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%})
2023-12-18 22:59:18.330 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'dict object' has no attribute 'result' when rendering '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'
2023-12-18 22:59:18.330 ERROR (MainThread) [homeassistant.helpers.template] Error parsing value: 'dict object' has no attribute 'result' (value: {"ble":{},"cloud":{"connected":false},"cover:0":{"id":0,"source":"init","state":"closed","apower":0,"voltage":230.1,"current":0,"pf":0,"freq":50,"aenergy":{"total":14.809,"by_minute":[0,0,0],"minute_ts":1702936758},"temperature":{"tC":42.3,"tF":108.1},"pos_control":true,"last_direction":"close","current_pos":0},"input:0":{"id":0,"state":null},"input:1":{"id":1,"state":null},"mqtt":{"connected":true},"script:1":{"id":1,"running":true,"mem_used":1064,"mem_peak":4858,"mem_free":24136},"sys":{"mac":"3CE90E3113F8","restart_required":false,"time":"22:59","unixtime":1702936758,"uptime":1645,"ram_size":259584,"ram_free":122128,"fs_size":458752,"fs_free":131072,"cfg_rev":28,"kvs_rev":0,"schedule_rev":0,"webhook_rev":0,"available_updates":{},"installed_version":"1.0.8"},"wifi":{"sta_ip":"10.0.20.180","status":"got ip","ssid":"Camapola - IoT","rssi":-75},"ws":{"connected":false}}, template: {%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%})
2023-12-18 22:59:18.331 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'dict object' has no attribute 'result' when rendering '{{value_json.result.sys.available_updates.get("stable",{})|to_json}}'
2023-12-18 22:59:18.331 ERROR (MainThread) [homeassistant.helpers.template] Error parsing value: 'dict object' has no attribute 'result' (value: {"ble":{},"cloud":{"connected":false},"cover:0":{"id":0,"source":"init","state":"closed","apower":0,"voltage":230.1,"current":0,"pf":0,"freq":50,"aenergy":{"total":14.809,"by_minute":[0,0,0],"minute_ts":1702936758},"temperature":{"tC":42.3,"tF":108.1},"pos_control":true,"last_direction":"close","current_pos":0},"input:0":{"id":0,"state":null},"input:1":{"id":1,"state":null},"mqtt":{"connected":true},"script:1":{"id":1,"running":true,"mem_used":1064,"mem_peak":4858,"mem_free":24136},"sys":{"mac":"3CE90E3113F8","restart_required":false,"time":"22:59","unixtime":1702936758,"uptime":1645,"ram_size":259584,"ram_free":122128,"fs_size":458752,"fs_free":131072,"cfg_rev":28,"kvs_rev":0,"schedule_rev":0,"webhook_rev":0,"available_updates":{},"installed_version":"1.0.8"},"wifi":{"sta_ip":"10.0.20.180","status":"got ip","ssid":"Camapola - IoT","rssi":-75},"ws":{"connected":false}}, template: {{value_json.result.sys.available_updates.get("stable",{})|to_json}})
2023-12-18 22:59:18.331 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'dict object' has no attribute 'result' when rendering '{%if value_json.result.sys.available_updates.stable is defined%}ON{%else%}OFF{%endif%}'
2023-12-18 22:59:18.332 ERROR (MainThread) [homeassistant.helpers.template] Error parsing value: 'dict object' has no attribute 'result' (value: {"ble":{},"cloud":{"connected":false},"cover:0":{"id":0,"source":"init","state":"closed","apower":0,"voltage":230.1,"current":0,"pf":0,"freq":50,"aenergy":{"total":14.809,"by_minute":[0,0,0],"minute_ts":1702936758},"temperature":{"tC":42.3,"tF":108.1},"pos_control":true,"last_direction":"close","current_pos":0},"input:0":{"id":0,"state":null},"input:1":{"id":1,"state":null},"mqtt":{"connected":true},"script:1":{"id":1,"running":true,"mem_used":1064,"mem_peak":4858,"mem_free":24136},"sys":{"mac":"3CE90E3113F8","restart_required":false,"time":"22:59","unixtime":1702936758,"uptime":1645,"ram_size":259584,"ram_free":122128,"fs_size":458752,"fs_free":131072,"cfg_rev":28,"kvs_rev":0,"schedule_rev":0,"webhook_rev":0,"available_updates":{},"installed_version":"1.0.8"},"wifi":{"sta_ip":"10.0.20.180","status":"got ip","ssid":"Camapola - IoT","rssi":-75},"ws":{"connected":false}}, template: {%if value_json.result.sys.available_updates.stable is defined%}ON{%else%}OFF{%endif%})
2023-12-18 22:59:18.332 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'dict object' has no attribute 'result' when rendering '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'
2023-12-18 22:59:18.332 ERROR (MainThread) [homeassistant.helpers.template] Error parsing value: 'dict object' has no attribute 'result' (value: {"ble":{},"cloud":{"connected":false},"cover:0":{"id":0,"source":"init","state":"closed","apower":0,"voltage":230.1,"current":0,"pf":0,"freq":50,"aenergy":{"total":14.809,"by_minute":[0,0,0],"minute_ts":1702936758},"temperature":{"tC":42.3,"tF":108.1},"pos_control":true,"last_direction":"close","current_pos":0},"input:0":{"id":0,"state":null},"input:1":{"id":1,"state":null},"mqtt":{"connected":true},"script:1":{"id":1,"running":true,"mem_used":1064,"mem_peak":4858,"mem_free":24136},"sys":{"mac":"3CE90E3113F8","restart_required":false,"time":"22:59","unixtime":1702936758,"uptime":1645,"ram_size":259584,"ram_free":122128,"fs_size":458752,"fs_free":131072,"cfg_rev":28,"kvs_rev":0,"schedule_rev":0,"webhook_rev":0,"available_updates":{},"installed_version":"1.0.8"},"wifi":{"sta_ip":"10.0.20.180","status":"got ip","ssid":"Camapola - IoT","rssi":-75},"ws":{"connected":false}}, template: {%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%})
2023-12-18 22:59:24.404 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'dict object' has no attribute 'result' when rendering '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'
2023-12-18 22:59:24.405 ERROR (MainThread) [homeassistant.helpers.template] Error parsing value: 'dict object' has no attribute 'result' (value: {"ble":{},"cloud":{"connected":false},"eth":{"ip":"10.0.20.153"},"input:0":{"id":0,"state":false},"input:1":{"id":1,"state":false},"input:2":{"id":2,"state":null},"input:3":{"id":3,"state":null},"mqtt":{"connected":true},"script:2":{"id":2,"running":false,"mem_free":24192},"script:1":{"id":1,"running":true,"mem_used":1008,"mem_peak":8232,"mem_free":24192},"switch:0":{"id":0,"source":"init","output":false,"apower":0,"voltage":229.7,"freq":50,"current":0,"pf":0,"aenergy":{"total":46.633,"by_minute":[0,0,0],"minute_ts":1702936763},"temperature":{"tC":27.9,"tF":82.2}},"switch:1":{"id":1,"source":"init","output":false,"apower":0,"voltage":229.7,"freq":50,"current":0,"pf":0,"aenergy":{"total":287.598,"by_minute":[0,0,0],"minute_ts":1702936763},"temperature":{"tC":27.9,"tF":82.2}},"switch:2":{"id":2,"source":"init","output":false,"apower":0,"voltage":228.8,"freq":50,"current":0,"pf":0,"aenergy":{"total":1426.754,"by_minute":[0,0,0],"minute_ts":1702936763},"temperature":{"tC":27.9,"tF":82.2}},"switch:3":{"id":3,"source":"init","output":true,"apower":0,"voltage":228.8,"freq":50,"current":0.02,"pf":0,"aenergy":{"total":1041.546,"by_minute":[0,0,0],"minute_ts":1702936763},"temperature":{"tC":27.9,"tF":82.2}},"sys":{"mac":"84CCA87E3F84","restart_required":false,"time":"22:59","unixtime":1702936764,"uptime":510,"ram_size":242112,"ram_free":128792,"fs_size":524288,"fs_free":184320,"cfg_rev":3327,"kvs_rev":0,"schedule_rev":3,"webhook_rev":0,"available_updates":{},"installed_version":"1.0.8"},"ui":{},"wifi":{"sta_ip":null,"status":"disconnected","ssid":null,"rssi":0},"ws":{"connected":false}}, template: {%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%})
2023-12-18 22:59:24.405 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'dict object' has no attribute 'result' when rendering '{{value_json.result.sys.available_updates.get("stable",{})|to_json}}'
2023-12-18 22:59:24.405 ERROR (MainThread) [homeassistant.helpers.template] Error parsing value: 'dict object' has no attribute 'result' (value: {"ble":{},"cloud":{"connected":false},"eth":{"ip":"10.0.20.153"},"input:0":{"id":0,"state":false},"input:1":{"id":1,"state":false},"input:2":{"id":2,"state":null},"input:3":{"id":3,"state":null},"mqtt":{"connected":true},"script:2":{"id":2,"running":false,"mem_free":24192},"script:1":{"id":1,"running":true,"mem_used":1008,"mem_peak":8232,"mem_free":24192},"switch:0":{"id":0,"source":"init","output":false,"apower":0,"voltage":229.7,"freq":50,"current":0,"pf":0,"aenergy":{"total":46.633,"by_minute":[0,0,0],"minute_ts":1702936763},"temperature":{"tC":27.9,"tF":82.2}},"switch:1":{"id":1,"source":"init","output":false,"apower":0,"voltage":229.7,"freq":50,"current":0,"pf":0,"aenergy":{"total":287.598,"by_minute":[0,0,0],"minute_ts":1702936763},"temperature":{"tC":27.9,"tF":82.2}},"switch:2":{"id":2,"source":"init","output":false,"apower":0,"voltage":228.8,"freq":50,"current":0,"pf":0,"aenergy":{"total":1426.754,"by_minute":[0,0,0],"minute_ts":1702936763},"temperature":{"tC":27.9,"tF":82.2}},"switch:3":{"id":3,"source":"init","output":true,"apower":0,"voltage":228.8,"freq":50,"current":0.02,"pf":0,"aenergy":{"total":1041.546,"by_minute":[0,0,0],"minute_ts":1702936763},"temperature":{"tC":27.9,"tF":82.2}},"sys":{"mac":"84CCA87E3F84","restart_required":false,"time":"22:59","unixtime":1702936764,"uptime":510,"ram_size":242112,"ram_free":128792,"fs_size":524288,"fs_free":184320,"cfg_rev":3327,"kvs_rev":0,"schedule_rev":3,"webhook_rev":0,"available_updates":{},"installed_version":"1.0.8"},"ui":{},"wifi":{"sta_ip":null,"status":"disconnected","ssid":null,"rssi":0},"ws":{"connected":false}}, template: {{value_json.result.sys.available_updates.get("stable",{})|to_json}})
2023-12-18 22:59:24.405 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'dict object' has no attribute 'result' when rendering '{%if value_json.result.sys.available_updates.stable is defined%}ON{%else%}OFF{%endif%}'
2023-12-18 22:59:24.405 ERROR (MainThread) [homeassistant.helpers.template] Error parsing value: 'dict object' has no attribute 'result' (value: {"ble":{},"cloud":{"connected":false},"eth":{"ip":"10.0.20.153"},"input:0":{"id":0,"state":false},"input:1":{"id":1,"state":false},"input:2":{"id":2,"state":null},"input:3":{"id":3,"state":null},"mqtt":{"connected":true},"script:2":{"id":2,"running":false,"mem_free":24192},"script:1":{"id":1,"running":true,"mem_used":1008,"mem_peak":8232,"mem_free":24192},"switch:0":{"id":0,"source":"init","output":false,"apower":0,"voltage":229.7,"freq":50,"current":0,"pf":0,"aenergy":{"total":46.633,"by_minute":[0,0,0],"minute_ts":1702936763},"temperature":{"tC":27.9,"tF":82.2}},"switch:1":{"id":1,"source":"init","output":false,"apower":0,"voltage":229.7,"freq":50,"current":0,"pf":0,"aenergy":{"total":287.598,"by_minute":[0,0,0],"minute_ts":1702936763},"temperature":{"tC":27.9,"tF":82.2}},"switch:2":{"id":2,"source":"init","output":false,"apower":0,"voltage":228.8,"freq":50,"current":0,"pf":0,"aenergy":{"total":1426.754,"by_minute":[0,0,0],"minute_ts":1702936763},"temperature":{"tC":27.9,"tF":82.2}},"switch:3":{"id":3,"source":"init","output":true,"apower":0,"voltage":228.8,"freq":50,"current":0.02,"pf":0,"aenergy":{"total":1041.546,"by_minute":[0,0,0],"minute_ts":1702936763},"temperature":{"tC":27.9,"tF":82.2}},"sys":{"mac":"84CCA87E3F84","restart_required":false,"time":"22:59","unixtime":1702936764,"uptime":510,"ram_size":242112,"ram_free":128792,"fs_size":524288,"fs_free":184320,"cfg_rev":3327,"kvs_rev":0,"schedule_rev":3,"webhook_rev":0,"available_updates":{},"installed_version":"1.0.8"},"ui":{},"wifi":{"sta_ip":null,"status":"disconnected","ssid":null,"rssi":0},"ws":{"connected":false}}, template: {%if value_json.result.sys.available_updates.stable is defined%}ON{%else%}OFF{%endif%})
2023-12-18 22:59:24.406 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'dict object' has no attribute 'result' when rendering '{%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%}'
2023-12-18 22:59:24.406 ERROR (MainThread) [homeassistant.helpers.template] Error parsing value: 'dict object' has no attribute 'result' (value: {"ble":{},"cloud":{"connected":false},"eth":{"ip":"10.0.20.153"},"input:0":{"id":0,"state":false},"input:1":{"id":1,"state":false},"input:2":{"id":2,"state":null},"input:3":{"id":3,"state":null},"mqtt":{"connected":true},"script:2":{"id":2,"running":false,"mem_free":24192},"script:1":{"id":1,"running":true,"mem_used":1008,"mem_peak":8232,"mem_free":24192},"switch:0":{"id":0,"source":"init","output":false,"apower":0,"voltage":229.7,"freq":50,"current":0,"pf":0,"aenergy":{"total":46.633,"by_minute":[0,0,0],"minute_ts":1702936763},"temperature":{"tC":27.9,"tF":82.2}},"switch:1":{"id":1,"source":"init","output":false,"apower":0,"voltage":229.7,"freq":50,"current":0,"pf":0,"aenergy":{"total":287.598,"by_minute":[0,0,0],"minute_ts":1702936763},"temperature":{"tC":27.9,"tF":82.2}},"switch:2":{"id":2,"source":"init","output":false,"apower":0,"voltage":228.8,"freq":50,"current":0,"pf":0,"aenergy":{"total":1426.754,"by_minute":[0,0,0],"minute_ts":1702936763},"temperature":{"tC":27.9,"tF":82.2}},"switch:3":{"id":3,"source":"init","output":true,"apower":0,"voltage":228.8,"freq":50,"current":0.02,"pf":0,"aenergy":{"total":1041.546,"by_minute":[0,0,0],"minute_ts":1702936763},"temperature":{"tC":27.9,"tF":82.2}},"sys":{"mac":"84CCA87E3F84","restart_required":false,"time":"22:59","unixtime":1702936764,"uptime":510,"ram_size":242112,"ram_free":128792,"fs_size":524288,"fs_free":184320,"cfg_rev":3327,"kvs_rev":0,"schedule_rev":3,"webhook_rev":0,"available_updates":{},"installed_version":"1.0.8"},"ui":{},"wifi":{"sta_ip":null,"status":"disconnected","ssid":null,"rssi":0},"ws":{"connected":false}}, template: {%if value_json.result.mqtt.connected%}online{%else%}offline{%endif%})
I have Shelly Plus H&T (battery powered) sensor and everything with my MQTT broker and HAOS autodiscovery works as it should be but only when subtopic online = true. This can be forced by waking the device from a button.
As soon as the deviceâs online status changes to false, Home Assistant device card reports all values as not available. This appears to be a result of the events/rpc topic receiving a message with the NotifyEvent method, which does not contain the desired temperature information.
Do i have to somehow read only messages with method âNotifyFullStatusâ or what?
Shelly removed sleep.wakeup_period
from the response to Shelly.GetConfig
service in firmware 1.0.0 which broke the entity configuration for all battery powered Gen2 devices. For now, the only way to solve the problem is to downgrade the firmware.
And as this is Gen2 device it isnât officially possible to downgrade firmware? Or do the publish also old firmwares somewhere?
Is the native shelly haos integration now my only option?
I donât know, ask Shelly.
What do you mean?
I have prepared a temporary (I hope it will be temporary) workaround. The new version of the script should be available within a few minutes.
Superb, thanks a lot! Now it works like a charm
By this I meant that if MQTT had not worked, it would been better to start using WS & RPC based integration: Shelly - Home Assistant
But no need for that after your fix, thanks!
Hi all! Iâm new with HA and I could not configure my Shelly plus H&T with this script.
Iâve setting my h&t for connection MQTT with this parameters
Iâve downloaded the python script from HACS
and in my HA Iâve configurated the mosquitto MQTT
In the log of mosquitto I see the connection of the shelly H&T
2024-06-02 12:48:21: New client connected from [internal ip shelly plus h&t]:58302 as shellyplusht-08b61fcb7d54 (p2, c1, k60, u'cavalloMQTT').
2024-06-02 12:48:22: New connection from 172.xxx.xxx.xxx:54644 on port 1883.
2024-06-02 12:48:22: Client <unknown> closed its connection.
2024-06-02 12:48:23: Client shellyplusht-08b61fcb7d54 closed its connection.
2024-06-02 12:49:32: New connection from 172.xxx.xxx.xxx:52427 on port 1883.
2024-06-02 12:49:32: New client connected from 172.xxx.xxx.xxx:52427 as 24AJXrIKTJgh0YdL7V2tYE (p2, c1, k60, u'cavalloMQTT').
2024-06-02 12:49:32: Client 24AJXrIKTJgh0YdL7V2tYE disconnected.
and the log of the home-assistant.log is this
2024-06-02 12:27:29.534 INFO (MainThread) [homeassistant.components.automation.shellies_announce_gen2] Shellies Announce Gen2: Running automation actions
2024-06-02 12:27:29.535 INFO (MainThread) [homeassistant.components.automation.shellies_announce_gen2] Shellies Announce Gen2: Repeating sequence: Iteration 1 of 2 with item: 'shellyplusht-08b61fcb7d54'
2024-06-02 12:27:29.535 INFO (MainThread) [homeassistant.components.automation.shellies_announce_gen2] Shellies Announce Gen2: Repeat at step 1: Running automation actions
2024-06-02 12:27:29.535 INFO (MainThread) [homeassistant.components.automation.shellies_announce_gen2] Shellies Announce Gen2: Repeat at step 1: Executing step call service
2024-06-02 12:27:29.536 INFO (MainThread) [homeassistant.components.automation.shellies_announce_gen2] Shellies Announce Gen2: Repeating sequence: Iteration 2 of 2 with item: 'custom-prefix/shelly-kitchen'
2024-06-02 12:27:29.537 INFO (MainThread) [homeassistant.components.automation.shellies_announce_gen2] Shellies Announce Gen2: Repeat at step 1: Running automation actions
2024-06-02 12:27:29.537 INFO (MainThread) [homeassistant.components.automation.shellies_announce_gen2] Shellies Announce Gen2: Repeat at step 1: Executing step call service
Where am I wrong?
Thanks for the replies
If you have configured the logger according to the documentation, it seems that the device is not responding. Is it woken up when the announce automation starts?
Yes Iâve modified the configuration.yaml and I have configured the logger according to the documentation. How do I check the device woken up when the accounce automation starts? Because in the log file this is the only rows that I see for the announce automation
You need to press the button on the device to wake it up.
Uâre right! The device is not propertly configurated in mqtt, Iâve installed emqx add on and reconfigured the shelly h&t and now the device is showed in the entity. Thank you for the support