bieniu / ha-shellies-discovery-gen2

Script that adds MQTT discovery support for Shellies Gen2 devices
Apache License 2.0
106 stars 18 forks source link

Shelly Gen2, Firmware Update not working #331

Closed Spartacus68 closed 10 months ago

Spartacus68 commented 10 months ago

Describe the bug Hi sorry for opening an issue, but I noticed today, that the firmware-Update is not working in HA. I have round about 15 shelly Gen2. If a new FW is available only a few devices are notified in HA. If I try to start the update, nothing happens. I have to update the shelly via web-interface. Is this a known issue or how can I fix this. It is very time consuming to do evry single update via web-interface.

Versions:

alias: Shellies Announce Gen2
description: ""
trigger:
  - platform: homeassistant
    event: start
action:
  - repeat:
      for_each: "{{ device_ids }}"
      sequence:
        - service: mqtt.publish
          data:
            topic: "{{ repeat.item }}/rpc"
            payload: "{{ device_info_payload }}"
variables:
  device_info_payload: >-
    {{ {'id': 1, 'src':'shellies_discovery', 'method':'Shelly.GetConfig'} |
    to_json }}
  device_ids:
    - wc
    - bad
    - fynn
    - wohnen.links
    - wohnen.rechts
    - schlafen
    - buero
    - steckdose.cupra
    - gh.spots.schrank
    - gh.deckenlicht
    - schlafen.charger
bieniu commented 10 months ago

I think you forgot something

image

Spartacus68 commented 10 months ago

Hi,

I´ve added this to configuration.yaml, but there is nothing in the log. Where can I find the logfile on the cli?

....
python_script:
  logger:
    default: error
    logs:
      homeassistant.components.python_script: debug
      homeassistant.components.automation: info
      homeassistant.components.mqtt.discovery: info
bieniu commented 10 months ago

Log file is available in /config folder.

Spartacus68 commented 10 months ago

Hi Maciej, I get a lot of warnings! Do you have a clue what this means?

2023-12-19 21:05:28.178 WARNING (MainThread) [homeassistant.components.mqtt.mixins] MQTT entity name starts with the device name in your config {'name': 'WC Power factor', 'enabled_by_default': False, 'unique_id': 'shellyplus2pm-5443b23ff3ac-cover-0-power_factor', 'qos': 0, 'device': {'connections': [['mac', '54:43:B2:3F:F3:AC']], 'name': 'WC', 'model': 'Shelly Plus 2PM', 'sw_version': '20231219-133951/1.1.0-g34b5d4f', 'hw_version': 'gen2 (SNSW-002P16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus2pm-5443b23ff3ac.local/', 'identifiers': []}, 'origin': {'name': 'Shellies Discovery Gen2', 'sw_version': '2.22.1', 'support_url': 'https://github.com/bieniu/ha-shellies-discovery-gen2'}, 'availability': [{'topic': 'wc/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'wc/status/rpc', 'value_template': Template<template=({%if value_json.mqtt.connected%}online{%else%}offline{%endif%}) renders=0>, 'payload_not_available': 'offline', 'payload_available': 'online'}], 'value_template': Template<template=({{value_json.pf*100}}) renders=0>, 'state_topic': 'wc/status/cover:0', 'unit_of_measurement': '%', 'device_class': <SensorDeviceClass.POWER_FACTOR: 'power_factor'>, 'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>, 'force_update': False, 'availability_mode': 'latest', 'encoding': 'utf-8', 'payload_available': 'online', 'payload_not_available': 'offline'}, this is not expected. Please correct your configuration. The device name prefix will be stripped off the entity name and becomes 'Power factor'
2023-12-19 21:05:28.178 WARNING (MainThread) [homeassistant.components.mqtt.mixins] MQTT entity name starts with the device name in your config {'name': 'WC Temperature', 'enabled_by_default': False, 'unique_id': 'shellyplus2pm-5443b23ff3ac-cover-0-temperature', 'qos': 0, 'device': {'connections': [['mac', '54:43:B2:3F:F3:AC']], 'name': 'WC', 'model': 'Shelly Plus 2PM', 'sw_version': '20231219-133951/1.1.0-g34b5d4f', 'hw_version': 'gen2 (SNSW-002P16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus2pm-5443b23ff3ac.local/', 'identifiers': []}, 'origin': {'name': 'Shellies Discovery Gen2', 'sw_version': '2.22.1', 'support_url': 'https://github.com/bieniu/ha-shellies-discovery-gen2'}, 'availability': [{'topic': 'wc/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'wc/status/rpc', 'value_template': Template<template=({%if value_json.mqtt.connected%}online{%else%}offline{%endif%}) renders=0>, 'payload_not_available': 'offline', 'payload_available': 'online'}], 'value_template': Template<template=({{value_json.temperature.tC}}) renders=0>, 'state_topic': 'wc/status/cover:0', 'unit_of_measurement': '°C', 'device_class': <SensorDeviceClass.TEMPERATURE: 'temperature'>, 'entity_category': <EntityCategory.DIAGNOSTIC: 'diagnostic'>, 'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>, 'suggested_display_precision': 1, 'force_update': False, 'availability_mode': 'latest', 'encoding': 'utf-8', 'payload_available': 'online', 'payload_not_available': 'offline'}, this is not expected. Please correct your configuration. The device name prefix will be stripped off the entity name and becomes 'Temperature'
2023-12-19 21:05:28.179 WARNING (MainThread) [homeassistant.components.mqtt.mixins] MQTT entity name starts with the device name in your config {'name': 'WC Voltage', 'enabled_by_default': False, 'unique_id': 'shellyplus2pm-5443b23ff3ac-cover-0-voltage', 'qos': 0, 'device': {'connections': [['mac', '54:43:B2:3F:F3:AC']], 'name': 'WC', 'model': 'Shelly Plus 2PM', 'sw_version': '20231219-133951/1.1.0-g34b5d4f', 'hw_version': 'gen2 (SNSW-002P16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus2pm-5443b23ff3ac.local/', 'identifiers': []}, 'origin': {'name': 'Shellies Discovery Gen2', 'sw_version': '2.22.1', 'support_url': 'https://github.com/bieniu/ha-shellies-discovery-gen2'}, 'availability': [{'topic': 'wc/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'wc/status/rpc', 'value_template': Template<template=({%if value_json.mqtt.connected%}online{%else%}offline{%endif%}) renders=0>, 'payload_not_available': 'offline', 'payload_available': 'online'}], 'value_template': Template<template=({{value_json.voltage}}) renders=0>, 'state_topic': 'wc/status/cover:0', 'unit_of_measurement': 'V', 'device_class': <SensorDeviceClass.VOLTAGE: 'voltage'>, 'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>, 'suggested_display_precision': 1, 'force_update': False, 'availability_mode': 'latest', 'encoding': 'utf-8', 'payload_available': 'online', 'payload_not_available': 'offline'}, this is not expected. Please correct your configuration. The device name prefix will be stripped off the entity name and becomes 'Voltage'
2023-12-19 21:05:28.180 WARNING (MainThread) [homeassistant.components.mqtt.mixins] MQTT entity name starts with the device name in your config {'name': 'schlafen.charger Current', 'enabled_by_default': False, 'unique_id': 'shellyplus1pm-fcb467ba674c-0-current', 'qos': 0, 'device': {'connections': [['mac', 'FC:B4:67:BA:67:4C']], 'name': 'schlafen.charger', 'model': 'Shelly Plus 1PM', 'sw_version': '20231219-133934/1.1.0-g34b5d4f', 'hw_version': 'gen2 (SNSW-001P16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1pm-fcb467ba674c.local/', 'identifiers': []}, 'origin': {'name': 'Shellies Discovery Gen2', 'sw_version': '2.22.1', 'support_url': 'https://github.com/bieniu/ha-shellies-discovery-gen2'}, 'availability': [{'topic': 'schlafen.charger/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'schlafen.charger/status/rpc', 'value_template': Template<template=({%if value_json.mqtt.connected%}online{%else%}offline{%endif%}) renders=0>, 'payload_not_available': 'offline', 'payload_available': 'online'}], 'value_template': Template<template=({{value_json.current}}) renders=0>, 'state_topic': 'schlafen.charger/status/switch:0', 'unit_of_measurement': 'A', 'device_class': <SensorDeviceClass.CURRENT: 'current'>, 'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>, 'suggested_display_precision': 1, 'force_update': False, 'availability_mode': 'latest', 'encoding': 'utf-8', 'payload_available': 'online', 'payload_not_available': 'offline'}, this is not expected. Please correct your configuration. The device name prefix will be stripped off the entity name and becomes 'Current'
2023-12-19 21:05:28.180 WARNING (MainThread) [homeassistant.components.mqtt.mixins] MQTT entity name starts with the device name in your config {'name': 'schlafen.charger Energy', 'enabled_by_default': True, 'unique_id': 'shellyplus1pm-fcb467ba674c-0-energy', 'qos': 0, 'device': {'connections': [['mac', 'FC:B4:67:BA:67:4C']], 'name': 'schlafen.charger', 'model': 'Shelly Plus 1PM', 'sw_version': '20231219-133934/1.1.0-g34b5d4f', 'hw_version': 'gen2 (SNSW-001P16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1pm-fcb467ba674c.local/', 'identifiers': []}, 'origin': {'name': 'Shellies Discovery Gen2', 'sw_version': '2.22.1', 'support_url': 'https://github.com/bieniu/ha-shellies-discovery-gen2'}, 'availability': [{'topic': 'schlafen.charger/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'schlafen.charger/status/rpc', 'value_template': Template<template=({%if value_json.mqtt.connected%}online{%else%}offline{%endif%}) renders=0>, 'payload_not_available': 'offline', 'payload_available': 'online'}], 'value_template': Template<template=({{value_json.aenergy.total}}) renders=0>, 'state_topic': 'schlafen.charger/status/switch:0', 'unit_of_measurement': 'Wh', 'device_class': <SensorDeviceClass.ENERGY: 'energy'>, 'state_class': <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>, 'suggested_display_precision': 1, 'force_update': False, 'availability_mode': 'latest', 'encoding': 'utf-8', 'payload_available': 'online', 'payload_not_available': 'offline'}, this is not expected. Please correct your configuration. The device name prefix will be stripped off the entity name and becomes 'Energy'
2023-12-19 21:05:28.181 WARNING (MainThread) [homeassistant.components.mqtt.mixins] MQTT entity name starts with the device name in your config {'name': 'schlafen.charger Frequency', 'enabled_by_default': False, 'unique_id': 'shellyplus1pm-fcb467ba674c-0-frequency', 'qos': 0, 'device': {'connections': [['mac', 'FC:B4:67:BA:67:4C']], 'name': 'schlafen.charger', 'model': 'Shelly Plus 1PM', 'sw_version': '20231219-133934/1.1.0-g34b5d4f', 'hw_version': 'gen2 (SNSW-001P16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1pm-fcb467ba674c.local/', 'identifiers': []}, 'origin': {'name': 'Shellies Discovery Gen2', 'sw_version': '2.22.1', 'support_url': 'https://github.com/bieniu/ha-shellies-discovery-gen2'}, 'availability': [{'topic': 'schlafen.charger/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'schlafen.charger/status/rpc', 'value_template': Template<template=({%if value_json.mqtt.connected%}online{%else%}offline{%endif%}) renders=0>, 'payload_not_available': 'offline', 'payload_available': 'online'}], 'value_template': Template<template=({{value_json.freq}}) renders=0>, 'state_topic': 'schlafen.charger/status/switch:0', 'unit_of_measurement': 'Hz', 'device_class': <SensorDeviceClass.FREQUENCY: 'frequency'>, 'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>, 'force_update': False, 'availability_mode': 'latest', 'encoding': 'utf-8', 'payload_available': 'online', 'payload_not_available': 'offline'}, this is not expected. Please correct your configuration. The device name prefix will be stripped off the entity name and becomes 'Frequency'
2023-12-19 21:05:28.182 WARNING (MainThread) [homeassistant.components.mqtt.mixins] MQTT entity name starts with the device name in your config {'name': 'schlafen.charger Power', 'enabled_by_default': True, 'unique_id': 'shellyplus1pm-fcb467ba674c-0-power', 'qos': 0, 'device': {'connections': [['mac', 'FC:B4:67:BA:67:4C']], 'name': 'schlafen.charger', 'model': 'Shelly Plus 1PM', 'sw_version': '20231219-133934/1.1.0-g34b5d4f', 'hw_version': 'gen2 (SNSW-001P16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1pm-fcb467ba674c.local/', 'identifiers': []}, 'origin': {'name': 'Shellies Discovery Gen2', 'sw_version': '2.22.1', 'support_url': 'https://github.com/bieniu/ha-shellies-discovery-gen2'}, 'availability': [{'topic': 'schlafen.charger/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'schlafen.charger/status/rpc', 'value_template': Template<template=({%if value_json.mqtt.connected%}online{%else%}offline{%endif%}) renders=0>, 'payload_not_available': 'offline', 'payload_available': 'online'}], 'value_template': Template<template=({{value_json.apower}}) renders=0>, 'state_topic': 'schlafen.charger/status/switch:0', 'unit_of_measurement': 'W', 'device_class': <SensorDeviceClass.POWER: 'power'>, 'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>, 'suggested_display_precision': 1, 'force_update': False, 'availability_mode': 'latest', 'encoding': 'utf-8', 'payload_available': 'online', 'payload_not_available': 'offline'}, this is not expected. Please correct your configuration. The device name prefix will be stripped off the entity name and becomes 'Power'
2023-12-19 21:05:28.182 WARNING (MainThread) [homeassistant.components.mqtt.mixins] MQTT entity name starts with the device name in your config {'name': 'schlafen.charger Temperature', 'enabled_by_default': False, 'unique_id': 'shellyplus1pm-fcb467ba674c-0-temperature', 'qos': 0, 'device': {'connections': [['mac', 'FC:B4:67:BA:67:4C']], 'name': 'schlafen.charger', 'model': 'Shelly Plus 1PM', 'sw_version': '20231219-133934/1.1.0-g34b5d4f', 'hw_version': 'gen2 (SNSW-001P16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1pm-fcb467ba674c.local/', 'identifiers': []}, 'origin': {'name': 'Shellies Discovery Gen2', 'sw_version': '2.22.1', 'support_url': 'https://github.com/bieniu/ha-shellies-discovery-gen2'}, 'availability': [{'topic': 'schlafen.charger/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'schlafen.charger/status/rpc', 'value_template': Template<template=({%if value_json.mqtt.connected%}online{%else%}offline{%endif%}) renders=0>, 'payload_not_available': 'offline', 'payload_available': 'online'}], 'value_template': Template<template=({{value_json.temperature.tC}}) renders=0>, 'state_topic': 'schlafen.charger/status/switch:0', 'unit_of_measurement': '°C', 'device_class': <SensorDeviceClass.TEMPERATURE: 'temperature'>, 'entity_category': <EntityCategory.DIAGNOSTIC: 'diagnostic'>, 'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>, 'suggested_display_precision': 1, 'force_update': False, 'availability_mode': 'latest', 'encoding': 'utf-8', 'payload_available': 'online', 'payload_not_available': 'offline'}, this is not expected. Please correct your configuration. The device name prefix will be stripped off the entity name and becomes 'Temperature'
2023-12-19 21:05:28.183 WARNING (MainThread) [homeassistant.components.mqtt.mixins] MQTT entity name starts with the device name in your config {'name': 'schlafen.charger Voltage', 'enabled_by_default': False, 'unique_id': 'shellyplus1pm-fcb467ba674c-0-voltage', 'qos': 0, 'device': {'connections': [['mac', 'FC:B4:67:BA:67:4C']], 'name': 'schlafen.charger', 'model': 'Shelly Plus 1PM', 'sw_version': '20231219-133934/1.1.0-g34b5d4f', 'hw_version': 'gen2 (SNSW-001P16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1pm-fcb467ba674c.local/', 'identifiers': []}, 'origin': {'name': 'Shellies Discovery Gen2', 'sw_version': '2.22.1', 'support_url': 'https://github.com/bieniu/ha-shellies-discovery-gen2'}, 'availability': [{'topic': 'schlafen.charger/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'schlafen.charger/status/rpc', 'value_template': Template<template=({%if value_json.mqtt.connected%}online{%else%}offline{%endif%}) renders=0>, 'payload_not_available': 'offline', 'payload_available': 'online'}], 'value_template': Template<template=({{value_json.voltage}}) renders=0>, 'state_topic': 'schlafen.charger/status/switch:0', 'unit_of_measurement': 'V', 'device_class': <SensorDeviceClass.VOLTAGE: 'voltage'>, 'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>, 'suggested_display_precision': 1, 'force_update': False, 'availability_mode': 'latest', 'encoding': 'utf-8', 'payload_available': 'online', 'payload_not_available': 'offline'}, this is not expected. Please correct your configuration. The device name prefix will be stripped off the entity name and becomes 'Voltage'
2023-12-19 21:05:28.219 WARNING (MainThread) [homeassistant.components.mqtt.mixins] MQTT entity name starts with the device name in your config {'name': 'GH.Deckenlicht Overpower', 'value_template': Template<template=({%if "overpower" in value_json.get("errors",[])%}ON{%else%}OFF{%endif%}) renders=0>, 'enabled_by_default': False, 'unique_id': 'shellyplus1pm-08b61fd7a220-0-overpower', 'qos': 0, 'device': {'connections': [['mac', '08:B6:1F:D7:A2:20']], 'name': 'GH.Deckenlicht', 'model': 'Shelly Plus 1PM', 'sw_version': '20231219-133934/1.1.0-g34b5d4f', 'hw_version': 'gen2 (SNSW-001P16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1pm-08b61fd7a220.local/', 'identifiers': []}, 'origin': {'name': 'Shellies Discovery Gen2', 'sw_version': '2.22.1', 'support_url': 'https://github.com/bieniu/ha-shellies-discovery-gen2'}, 'availability': [{'topic': 'gh.deckenlicht/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'gh.deckenlicht/status/rpc', 'value_template': Template<template=({%if value_json.mqtt.connected%}online{%else%}offline{%endif%}) renders=0>, 'payload_not_available': 'offline', 'payload_available': 'online'}], 'state_topic': 'gh.deckenlicht/status/switch:0', 'device_class': <BinarySensorDeviceClass.PROBLEM: 'problem'>, 'entity_category': <EntityCategory.DIAGNOSTIC: 'diagnostic'>, 'payload_off': 'OFF', 'force_update': False, 'payload_on': 'ON', 'availability_mode': 'latest', 'encoding': 'utf-8', 'payload_available': 'online', 'payload_not_available': 'offline'}, this is not expected. Please correct your configuration. The device name prefix will be stripped off the entity name and becomes 'Overpower'
2023-12-19 21:05:28.220 WARNING (MainThread) [homeassistant.components.mqtt.mixins] MQTT entity name starts with the device name in your config {'name': 'GH.Deckenlicht Overtemperature', 'value_template': Template<template=({%if "overtemp" in value_json.get("errors",[])%}ON{%else%}OFF{%endif%}) renders=0>, 'enabled_by_default': True, 'unique_id': 'shellyplus1pm-08b61fd7a220-0-overtemp', 'qos': 0, 'device': {'connections': [['mac', '08:B6:1F:D7:A2:20']], 'name': 'GH.Deckenlicht', 'model': 'Shelly Plus 1PM', 'sw_version': '20231219-133934/1.1.0-g34b5d4f', 'hw_version': 'gen2 (SNSW-001P16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1pm-08b61fd7a220.local/', 'identifiers': []}, 'origin': {'name': 'Shellies Discovery Gen2', 'sw_version': '2.22.1', 'support_url': 'https://github.com/bieniu/ha-shellies-discovery-gen2'}, 'availability': [{'topic': 'gh.deckenlicht/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'gh.deckenlicht/status/rpc', 'value_template': Template<template=({%if value_json.mqtt.connected%}online{%else%}offline{%endif%}) renders=0>, 'payload_not_available': 'offline', 'payload_available': 'online'}], 'state_topic': 'gh.deckenlicht/status/switch:0', 'device_class': <BinarySensorDeviceClass.PROBLEM: 'problem'>, 'entity_category': <EntityCategory.DIAGNOSTIC: 'diagnostic'>, 'payload_off': 'OFF', 'force_update': False, 'payload_on': 'ON', 'availability_mode': 'latest', 'encoding': 'utf-8', 'payload_available': 'online', 'payload_not_available': 'offline'}, this is not expected. Please correct your configuration. The device name prefix will be stripped off the entity name and becomes 'Overtemperature'
2023-12-19 21:05:28.223 WARNING (MainThread) [homeassistant.components.mqtt.mixins] MQTT entity name starts with the device name in your config {'name': 'GH.Deckenlicht Overvoltage', 'value_template': Template<template=({%if "overvoltage" in value_json.get("errors",[])%}ON{%else%}OFF{%endif%}) renders=0>, 'enabled_by_default': False, 'unique_id': 'shellyplus1pm-08b61fd7a220-0-overvoltage', 'qos': 0, 'device': {'connections': [['mac', '08:B6:1F:D7:A2:20']], 'name': 'GH.Deckenlicht', 'model': 'Shelly Plus 1PM', 'sw_version': '20231219-133934/1.1.0-g34b5d4f', 'hw_version': 'gen2 (SNSW-001P16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1pm-08b61fd7a220.local/', 'identifiers': []}, 'origin': {'name': 'Shellies Discovery Gen2', 'sw_version': '2.22.1', 'support_url': 'https://github.com/bieniu/ha-shellies-discovery-gen2'}, 'availability': [{'topic': 'gh.deckenlicht/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'gh.deckenlicht/status/rpc', 'value_template': Template<template=({%if value_json.mqtt.connected%}online{%else%}offline{%endif%}) renders=0>, 'payload_not_available': 'offline', 'payload_available': 'online'}], 'state_topic': 'gh.deckenlicht/status/switch:0', 'device_class': <BinarySensorDeviceClass.PROBLEM: 'problem'>, 'entity_category': <EntityCategory.DIAGNOSTIC: 'diagnostic'>, 'payload_off': 'OFF', 'force_update': False, 'payload_on': 'ON', 'availability_mode': 'latest', 'encoding': 'utf-8', 'payload_available': 'online', 'payload_not_available': 'offline'}, this is not expected. Please correct your configuration. The device name prefix will be stripped off the entity name and becomes 'Overvoltage'
2023-12-19 21:05:28.224 WARNING (MainThread) [homeassistant.components.mqtt.mixins] MQTT entity name starts with the device name in your config {'name': 'GH.Spots.Schrank Overpower', 'value_template': Template<template=({%if "overpower" in value_json.get("errors",[])%}ON{%else%}OFF{%endif%}) renders=0>, 'enabled_by_default': False, 'unique_id': 'shellyplus1pm-d4d4da0a4ca0-0-overpower', 'qos': 0, 'device': {'connections': [['mac', 'D4:D4:DA:0A:4C:A0']], 'name': 'GH.Spots.Schrank', 'model': 'Shelly Plus 1PM', 'sw_version': '20231219-133934/1.1.0-g34b5d4f', 'hw_version': 'gen2 (SNSW-001P16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1pm-d4d4da0a4ca0.local/', 'identifiers': []}, 'origin': {'name': 'Shellies Discovery Gen2', 'sw_version': '2.22.1', 'support_url': 'https://github.com/bieniu/ha-shellies-discovery-gen2'}, 'availability': [{'topic': 'gh.spots.schrank/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'gh.spots.schrank/status/rpc', 'value_template': Template<template=({%if value_json.mqtt.connected%}online{%else%}offline{%endif%}) renders=0>, 'payload_not_available': 'offline', 'payload_available': 'online'}], 'state_topic': 'gh.spots.schrank/status/switch:0', 'device_class': <BinarySensorDeviceClass.PROBLEM: 'problem'>, 'entity_category': <EntityCategory.DIAGNOSTIC: 'diagnostic'>, 'payload_off': 'OFF', 'force_update': False, 'payload_on': 'ON', 'availability_mode': 'latest', 'encoding': 'utf-8', 'payload_available': 'online', 'payload_not_available': 'offline'}, this is not expected. Please correct your configuration. The device name prefix will be stripped off the entity name and becomes 'Overpower'
2023-12-19 21:05:28.224 WARNING (MainThread) [homeassistant.components.mqtt.mixins] MQTT entity name starts with the device name in your config {'name': 'GH.Spots.Schrank Overtemperature', 'value_template': Template<template=({%if "overtemp" in value_json.get("errors",[])%}ON{%else%}OFF{%endif%}) renders=0>, 'enabled_by_default': True, 'unique_id': 'shellyplus1pm-d4d4da0a4ca0-0-overtemp', 'qos': 0, 'device': {'connections': [['mac', 'D4:D4:DA:0A:4C:A0']], 'name': 'GH.Spots.Schrank', 'model': 'Shelly Plus 1PM', 'sw_version': '20231219-133934/1.1.0-g34b5d4f', 'hw_version': 'gen2 (SNSW-001P16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1pm-d4d4da0a4ca0.local/', 'identifiers': []}, 'origin': {'name': 'Shellies Discovery Gen2', 'sw_version': '2.22.1', 'support_url': 'https://github.com/bieniu/ha-shellies-discovery-gen2'}, 'availability': [{'topic': 'gh.spots.schrank/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'gh.spots.schrank/status/rpc', 'value_template': Template<template=({%if value_json.mqtt.connected%}online{%else%}offline{%endif%}) renders=0>, 'payload_not_available': 'offline', 'payload_available': 'online'}], 'state_topic': 'gh.spots.schrank/status/switch:0', 'device_class': <BinarySensorDeviceClass.PROBLEM: 'problem'>, 'entity_category': <EntityCategory.DIAGNOSTIC: 'diagnostic'>, 'payload_off': 'OFF', 'force_update': False, 'payload_on': 'ON', 'availability_mode': 'latest', 'encoding': 'utf-8', 'payload_available': 'online', 'payload_not_available': 'offline'}, this is not expected. Please correct your configuration. The device name prefix will be stripped off the entity name and becomes 'Overtemperature'
2023-12-19 21:05:28.228 WARNING (MainThread) [homeassistant.components.mqtt.mixins] MQTT entity name starts with the device name in your config {'name': 'GH.Spots.Schrank Overvoltage', 'value_template': Template<template=({%if "overvoltage" in value_json.get("errors",[])%}ON{%else%}OFF{%endif%}) renders=0>, 'enabled_by_default': False, 'unique_id': 'shellyplus1pm-d4d4da0a4ca0-0-overvoltage', 'qos': 0, 'device': {'connections': [['mac', 'D4:D4:DA:0A:4C:A0']], 'name': 'GH.Spots.Schrank', 'model': 'Shelly Plus 1PM', 'sw_version': '20231219-133934/1.1.0-g34b5d4f', 'hw_version': 'gen2 (SNSW-001P16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1pm-d4d4da0a4ca0.local/', 'identifiers': []}, 'origin': {'name': 'Shellies Discovery Gen2', 'sw_version': '2.22.1', 'support_url': 'https://github.com/bieniu/ha-shellies-discovery-gen2'}, 'availability': [{'topic': 'gh.spots.schrank/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'gh.spots.schrank/status/rpc', 'value_template': Template<template=({%if value_json.mqtt.connected%}online{%else%}offline{%endif%}) renders=0>, 'payload_not_available': 'offline', 'payload_available': 'online'}], 'state_topic': 'gh.spots.schrank/status/switch:0', 'device_class': <BinarySensorDeviceClass.PROBLEM: 'problem'>, 'entity_category': <EntityCategory.DIAGNOSTIC: 'diagnostic'>, 'payload_off': 'OFF', 'force_update': False, 'payload_on': 'ON', 'availability_mode': 'latest', 'encoding': 'utf-8', 'payload_available': 'online', 'payload_not_available': 'offline'}, this is not expected. Please correct your configuration. The device name prefix will be stripped off the entity name and becomes 'Overvoltage'
2023-12-19 21:05:28.242 WARNING (MainThread) [homeassistant.components.mqtt.mixins] MQTT entity name starts with the device name in your config {'name': 'schlafen.charger Overpower', 'value_template': Template<template=({%if "overpower" in value_json.get("errors",[])%}ON{%else%}OFF{%endif%}) renders=0>, 'enabled_by_default': False, 'unique_id': 'shellyplus1pm-fcb467ba674c-0-overpower', 'qos': 0, 'device': {'connections': [['mac', 'FC:B4:67:BA:67:4C']], 'name': 'schlafen.charger', 'model': 'Shelly Plus 1PM', 'sw_version': '20231219-133934/1.1.0-g34b5d4f', 'hw_version': 'gen2 (SNSW-001P16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1pm-fcb467ba674c.local/', 'identifiers': []}, 'origin': {'name': 'Shellies Discovery Gen2', 'sw_version': '2.22.1', 'support_url': 'https://github.com/bieniu/ha-shellies-discovery-gen2'}, 'availability': [{'topic': 'schlafen.charger/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'schlafen.charger/status/rpc', 'value_template': Template<template=({%if value_json.mqtt.connected%}online{%else%}offline{%endif%}) renders=0>, 'payload_not_available': 'offline', 'payload_available': 'online'}], 'state_topic': 'schlafen.charger/status/switch:0', 'device_class': <BinarySensorDeviceClass.PROBLEM: 'problem'>, 'entity_category': <EntityCategory.DIAGNOSTIC: 'diagnostic'>, 'payload_off': 'OFF', 'force_update': False, 'payload_on': 'ON', 'availability_mode': 'latest', 'encoding': 'utf-8', 'payload_available': 'online', 'payload_not_available': 'offline'}, this is not expected. Please correct your configuration. The device name prefix will be stripped off the entity name and becomes 'Overpower'
2023-12-19 21:05:28.244 WARNING (MainThread) [homeassistant.components.mqtt.mixins] MQTT entity name starts with the device name in your config {'name': 'schlafen.charger Overtemperature', 'value_template': Template<template=({%if "overtemp" in value_json.get("errors",[])%}ON{%else%}OFF{%endif%}) renders=0>, 'enabled_by_default': True, 'unique_id': 'shellyplus1pm-fcb467ba674c-0-overtemp', 'qos': 0, 'device': {'connections': [['mac', 'FC:B4:67:BA:67:4C']], 'name': 'schlafen.charger', 'model': 'Shelly Plus 1PM', 'sw_version': '20231219-133934/1.1.0-g34b5d4f', 'hw_version': 'gen2 (SNSW-001P16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1pm-fcb467ba674c.local/', 'identifiers': []}, 'origin': {'name': 'Shellies Discovery Gen2', 'sw_version': '2.22.1', 'support_url': 'https://github.com/bieniu/ha-shellies-discovery-gen2'}, 'availability': [{'topic': 'schlafen.charger/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'schlafen.charger/status/rpc', 'value_template': Template<template=({%if value_json.mqtt.connected%}online{%else%}offline{%endif%}) renders=0>, 'payload_not_available': 'offline', 'payload_available': 'online'}], 'state_topic': 'schlafen.charger/status/switch:0', 'device_class': <BinarySensorDeviceClass.PROBLEM: 'problem'>, 'entity_category': <EntityCategory.DIAGNOSTIC: 'diagnostic'>, 'payload_off': 'OFF', 'force_update': False, 'payload_on': 'ON', 'availability_mode': 'latest', 'encoding': 'utf-8', 'payload_available': 'online', 'payload_not_available': 'offline'}, this is not expected. Please correct your configuration. The device name prefix will be stripped off the entity name and becomes 'Overtemperature'
2023-12-19 21:05:28.245 WARNING (MainThread) [homeassistant.components.mqtt.mixins] MQTT entity name starts with the device name in your config {'name': 'schlafen.charger Overvoltage', 'value_template': Template<template=({%if "overvoltage" in value_json.get("errors",[])%}ON{%else%}OFF{%endif%}) renders=0>, 'enabled_by_default': False, 'unique_id': 'shellyplus1pm-fcb467ba674c-0-overvoltage', 'qos': 0, 'device': {'connections': [['mac', 'FC:B4:67:BA:67:4C']], 'name': 'schlafen.charger', 'model': 'Shelly Plus 1PM', 'sw_version': '20231219-133934/1.1.0-g34b5d4f', 'hw_version': 'gen2 (SNSW-001P16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus1pm-fcb467ba674c.local/', 'identifiers': []}, 'origin': {'name': 'Shellies Discovery Gen2', 'sw_version': '2.22.1', 'support_url': 'https://github.com/bieniu/ha-shellies-discovery-gen2'}, 'availability': [{'topic': 'schlafen.charger/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'schlafen.charger/status/rpc', 'value_template': Template<template=({%if value_json.mqtt.connected%}online{%else%}offline{%endif%}) renders=0>, 'payload_not_available': 'offline', 'payload_available': 'online'}], 'state_topic': 'schlafen.charger/status/switch:0', 'device_class': <BinarySensorDeviceClass.PROBLEM: 'problem'>, 'entity_category': <EntityCategory.DIAGNOSTIC: 'diagnostic'>, 'payload_off': 'OFF', 'force_update': False, 'payload_on': 'ON', 'availability_mode': 'latest', 'encoding': 'utf-8', 'payload_available': 'online', 'payload_not_available': 'offline'}, this is not expected. Please correct your configuration. The device name prefix will be stripped off the entity name and becomes 'Overvoltage'
2023-12-19 21:05:28.286 WARNING (MainThread) [homeassistant.components.mqtt.mixins] MQTT device name is equal to entity name in your config {'name': 'Bad', 'command_topic': 'bad/rpc', 'position_topic': 'bad/status/cover:0', 'state_topic': 'bad/status/cover:0', 'value_template': Template<template=({%if value_json.state!="calibrating"%}{{value_json.state}}{%endif%}) renders=0>, 'position_template': Template<template=({%if is_number(value_json.get("current_pos"))%}{{value_json.current_pos}}{%endif%}) renders=0>, 'set_position_topic': 'bad/rpc', 'set_position_template': Template<template=({"id":1,"src":"home-assistant","method":"Cover.GoToPosition","params":{"id":0,"pos":{{position}}}}) renders=0>, 'payload_open': '{"id":1,"src":"home-assistant","method":"Cover.Open","params":{"id":0}}', 'payload_close': '{"id":1,"src":"home-assistant","method":"Cover.Close","params":{"id":0}}', 'payload_stop': '{"id":1,"src":"home-assistant","method":"Cover.Stop","params":{"id":0}}', 'availability': [{'topic': 'bad/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'bad/status/rpc', 'value_template': Template<template=({%if value_json.mqtt.connected%}online{%else%}offline{%endif%}) renders=0>, 'payload_not_available': 'offline', 'payload_available': 'online'}], 'unique_id': 'shellyplus2pm-c049ef85c634-0', 'qos': 0, 'device': {'connections': [['mac', 'C0:49:EF:85:C6:34']], 'name': 'Bad', 'model': 'Shelly Plus 2PM', 'sw_version': '20231219-133951/1.1.0-g34b5d4f', 'hw_version': 'gen2 (SNSW-002P16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus2pm-c049ef85c634.local/', 'identifiers': []}, 'origin': {'name': 'Shellies Discovery Gen2', 'sw_version': '2.22.1', 'support_url': 'https://github.com/bieniu/ha-shellies-discovery-gen2'}, 'state_stopped': 'stopped', 'position_closed': 0, 'tilt_optimistic': False, 'state_open': 'open', 'state_opening': 'opening', 'tilt_min': 0, 'state_closing': 'closing', 'availability_mode': 'latest', 'encoding': 'utf-8', 'payload_available': 'online', 'enabled_by_default': True, 'tilt_max': 100, 'retain': False, 'tilt_opened_value': 100, 'state_closed': 'closed', 'payload_not_available': 'offline', 'optimistic': False, 'position_open': 100, 'tilt_closed_value': 0}, this is not expected. Please correct your configuration. The entity name will be set to `null`
2023-12-19 21:05:28.287 WARNING (MainThread) [homeassistant.components.mqtt.mixins] MQTT device name is equal to entity name in your config {'name': 'Schlafen', 'command_topic': 'schlafen/rpc', 'position_topic': 'schlafen/status/cover:0', 'state_topic': 'schlafen/status/cover:0', 'value_template': Template<template=({%if value_json.state!="calibrating"%}{{value_json.state}}{%endif%}) renders=0>, 'position_template': Template<template=({%if is_number(value_json.get("current_pos"))%}{{value_json.current_pos}}{%endif%}) renders=0>, 'set_position_topic': 'schlafen/rpc', 'set_position_template': Template<template=({"id":1,"src":"home-assistant","method":"Cover.GoToPosition","params":{"id":0,"pos":{{position}}}}) renders=0>, 'payload_open': '{"id":1,"src":"home-assistant","method":"Cover.Open","params":{"id":0}}', 'payload_close': '{"id":1,"src":"home-assistant","method":"Cover.Close","params":{"id":0}}', 'payload_stop': '{"id":1,"src":"home-assistant","method":"Cover.Stop","params":{"id":0}}', 'availability': [{'topic': 'schlafen/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'schlafen/status/rpc', 'value_template': Template<template=({%if value_json.mqtt.connected%}online{%else%}offline{%endif%}) renders=0>, 'payload_not_available': 'offline', 'payload_available': 'online'}], 'unique_id': 'shellyplus2pm-c049ef85a248-0', 'qos': 0, 'device': {'connections': [['mac', 'C0:49:EF:85:A2:48']], 'name': 'Schlafen', 'model': 'Shelly Plus 2PM', 'sw_version': '20231219-133951/1.1.0-g34b5d4f', 'hw_version': 'gen2 (SNSW-002P16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus2pm-c049ef85a248.local/', 'identifiers': []}, 'origin': {'name': 'Shellies Discovery Gen2', 'sw_version': '2.22.1', 'support_url': 'https://github.com/bieniu/ha-shellies-discovery-gen2'}, 'state_stopped': 'stopped', 'position_closed': 0, 'tilt_optimistic': False, 'state_open': 'open', 'state_opening': 'opening', 'tilt_min': 0, 'state_closing': 'closing', 'availability_mode': 'latest', 'encoding': 'utf-8', 'payload_available': 'online', 'enabled_by_default': True, 'tilt_max': 100, 'retain': False, 'tilt_opened_value': 100, 'state_closed': 'closed', 'payload_not_available': 'offline', 'optimistic': False, 'position_open': 100, 'tilt_closed_value': 0}, this is not expected. Please correct your configuration. The entity name will be set to `null`
2023-12-19 21:05:28.291 WARNING (MainThread) [homeassistant.components.mqtt.mixins] MQTT device name is equal to entity name in your config {'name': 'Wohnzimmer links', 'command_topic': 'wohnen.links/rpc', 'position_topic': 'wohnen.links/status/cover:0', 'state_topic': 'wohnen.links/status/cover:0', 'value_template': Template<template=({%if value_json.state!="calibrating"%}{{value_json.state}}{%endif%}) renders=0>, 'position_template': Template<template=({%if is_number(value_json.get("current_pos"))%}{{value_json.current_pos}}{%endif%}) renders=0>, 'set_position_topic': 'wohnen.links/rpc', 'set_position_template': Template<template=({"id":1,"src":"home-assistant","method":"Cover.GoToPosition","params":{"id":0,"pos":{{position}}}}) renders=0>, 'payload_open': '{"id":1,"src":"home-assistant","method":"Cover.Open","params":{"id":0}}', 'payload_close': '{"id":1,"src":"home-assistant","method":"Cover.Close","params":{"id":0}}', 'payload_stop': '{"id":1,"src":"home-assistant","method":"Cover.Stop","params":{"id":0}}', 'availability': [{'topic': 'wohnen.links/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'wohnen.links/status/rpc', 'value_template': Template<template=({%if value_json.mqtt.connected%}online{%else%}offline{%endif%}) renders=0>, 'payload_not_available': 'offline', 'payload_available': 'online'}], 'unique_id': 'shellyplus2pm-c049ef8de8e0-0', 'qos': 0, 'device': {'connections': [['mac', 'C0:49:EF:8D:E8:E0']], 'name': 'Wohnzimmer links', 'model': 'Shelly Plus 2PM', 'sw_version': '20231219-133951/1.1.0-g34b5d4f', 'hw_version': 'gen2 (SNSW-002P16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus2pm-c049ef8de8e0.local/', 'identifiers': []}, 'origin': {'name': 'Shellies Discovery Gen2', 'sw_version': '2.22.1', 'support_url': 'https://github.com/bieniu/ha-shellies-discovery-gen2'}, 'state_stopped': 'stopped', 'position_closed': 0, 'tilt_optimistic': False, 'state_open': 'open', 'state_opening': 'opening', 'tilt_min': 0, 'state_closing': 'closing', 'availability_mode': 'latest', 'encoding': 'utf-8', 'payload_available': 'online', 'enabled_by_default': True, 'tilt_max': 100, 'retain': False, 'tilt_opened_value': 100, 'state_closed': 'closed', 'payload_not_available': 'offline', 'optimistic': False, 'position_open': 100, 'tilt_closed_value': 0}, this is not expected. Please correct your configuration. The entity name will be set to `null`
2023-12-19 21:05:28.292 WARNING (MainThread) [homeassistant.components.mqtt.mixins] MQTT device name is equal to entity name in your config {'name': 'Buero', 'command_topic': 'buero/rpc', 'position_topic': 'buero/status/cover:0', 'state_topic': 'buero/status/cover:0', 'value_template': Template<template=({%if value_json.state!="calibrating"%}{{value_json.state}}{%endif%}) renders=0>, 'position_template': Template<template=({%if is_number(value_json.get("current_pos"))%}{{value_json.current_pos}}{%endif%}) renders=0>, 'set_position_topic': 'buero/rpc', 'set_position_template': Template<template=({"id":1,"src":"home-assistant","method":"Cover.GoToPosition","params":{"id":0,"pos":{{position}}}}) renders=0>, 'payload_open': '{"id":1,"src":"home-assistant","method":"Cover.Open","params":{"id":0}}', 'payload_close': '{"id":1,"src":"home-assistant","method":"Cover.Close","params":{"id":0}}', 'payload_stop': '{"id":1,"src":"home-assistant","method":"Cover.Stop","params":{"id":0}}', 'availability': [{'topic': 'buero/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'buero/status/rpc', 'value_template': Template<template=({%if value_json.mqtt.connected%}online{%else%}offline{%endif%}) renders=0>, 'payload_not_available': 'offline', 'payload_available': 'online'}], 'unique_id': 'shellyplus2pm-4022d8daaf94-0', 'qos': 0, 'device': {'connections': [['mac', '40:22:D8:DA:AF:94']], 'name': 'Buero', 'model': 'Shelly Plus 2PM', 'sw_version': '20231219-133951/1.1.0-g34b5d4f', 'hw_version': 'gen2 (SNSW-002P16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus2pm-4022d8daaf94.local/', 'identifiers': []}, 'origin': {'name': 'Shellies Discovery Gen2', 'sw_version': '2.22.1', 'support_url': 'https://github.com/bieniu/ha-shellies-discovery-gen2'}, 'state_stopped': 'stopped', 'position_closed': 0, 'tilt_optimistic': False, 'state_open': 'open', 'state_opening': 'opening', 'tilt_min': 0, 'state_closing': 'closing', 'availability_mode': 'latest', 'encoding': 'utf-8', 'payload_available': 'online', 'enabled_by_default': True, 'tilt_max': 100, 'retain': False, 'tilt_opened_value': 100, 'state_closed': 'closed', 'payload_not_available': 'offline', 'optimistic': False, 'position_open': 100, 'tilt_closed_value': 0}, this is not expected. Please correct your configuration. The entity name will be set to `null`
2023-12-19 21:05:28.292 WARNING (MainThread) [homeassistant.components.mqtt.mixins] MQTT device name is equal to entity name in your config {'name': 'Wohnzimmer rechts', 'command_topic': 'wohnen.rechts/rpc', 'position_topic': 'wohnen.rechts/status/cover:0', 'state_topic': 'wohnen.rechts/status/cover:0', 'value_template': Template<template=({%if value_json.state!="calibrating"%}{{value_json.state}}{%endif%}) renders=0>, 'position_template': Template<template=({%if is_number(value_json.get("current_pos"))%}{{value_json.current_pos}}{%endif%}) renders=0>, 'set_position_topic': 'wohnen.rechts/rpc', 'set_position_template': Template<template=({"id":1,"src":"home-assistant","method":"Cover.GoToPosition","params":{"id":0,"pos":{{position}}}}) renders=0>, 'payload_open': '{"id":1,"src":"home-assistant","method":"Cover.Open","params":{"id":0}}', 'payload_close': '{"id":1,"src":"home-assistant","method":"Cover.Close","params":{"id":0}}', 'payload_stop': '{"id":1,"src":"home-assistant","method":"Cover.Stop","params":{"id":0}}', 'availability': [{'topic': 'wohnen.rechts/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'wohnen.rechts/status/rpc', 'value_template': Template<template=({%if value_json.mqtt.connected%}online{%else%}offline{%endif%}) renders=0>, 'payload_not_available': 'offline', 'payload_available': 'online'}], 'unique_id': 'shellyplus2pm-c049ef8dcdb0-0', 'qos': 0, 'device': {'connections': [['mac', 'C0:49:EF:8D:CD:B0']], 'name': 'Wohnzimmer rechts', 'model': 'Shelly Plus 2PM', 'sw_version': '20231219-133951/1.1.0-g34b5d4f', 'hw_version': 'gen2 (SNSW-002P16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus2pm-c049ef8dcdb0.local/', 'identifiers': []}, 'origin': {'name': 'Shellies Discovery Gen2', 'sw_version': '2.22.1', 'support_url': 'https://github.com/bieniu/ha-shellies-discovery-gen2'}, 'state_stopped': 'stopped', 'position_closed': 0, 'tilt_optimistic': False, 'state_open': 'open', 'state_opening': 'opening', 'tilt_min': 0, 'state_closing': 'closing', 'availability_mode': 'latest', 'encoding': 'utf-8', 'payload_available': 'online', 'enabled_by_default': True, 'tilt_max': 100, 'retain': False, 'tilt_opened_value': 100, 'state_closed': 'closed', 'payload_not_available': 'offline', 'optimistic': False, 'position_open': 100, 'tilt_closed_value': 0}, this is not expected. Please correct your configuration. The entity name will be set to `null`
2023-12-19 21:05:28.293 WARNING (MainThread) [homeassistant.components.mqtt.mixins] MQTT device name is equal to entity name in your config {'name': 'WC', 'command_topic': 'wc/rpc', 'position_topic': 'wc/status/cover:0', 'state_topic': 'wc/status/cover:0', 'value_template': Template<template=({%if value_json.state!="calibrating"%}{{value_json.state}}{%endif%}) renders=0>, 'position_template': Template<template=({%if is_number(value_json.get("current_pos"))%}{{value_json.current_pos}}{%endif%}) renders=0>, 'set_position_topic': 'wc/rpc', 'set_position_template': Template<template=({"id":1,"src":"home-assistant","method":"Cover.GoToPosition","params":{"id":0,"pos":{{position}}}}) renders=0>, 'payload_open': '{"id":1,"src":"home-assistant","method":"Cover.Open","params":{"id":0}}', 'payload_close': '{"id":1,"src":"home-assistant","method":"Cover.Close","params":{"id":0}}', 'payload_stop': '{"id":1,"src":"home-assistant","method":"Cover.Stop","params":{"id":0}}', 'availability': [{'topic': 'wc/online', 'payload_available': 'true', 'payload_not_available': 'false'}, {'topic': 'wc/status/rpc', 'value_template': Template<template=({%if value_json.mqtt.connected%}online{%else%}offline{%endif%}) renders=0>, 'payload_not_available': 'offline', 'payload_available': 'online'}], 'unique_id': 'shellyplus2pm-5443b23ff3ac-0', 'qos': 0, 'device': {'connections': [['mac', '54:43:B2:3F:F3:AC']], 'name': 'WC', 'model': 'Shelly Plus 2PM', 'sw_version': '20231219-133951/1.1.0-g34b5d4f', 'hw_version': 'gen2 (SNSW-002P16EU)', 'manufacturer': 'Allterco Robotics', 'configuration_url': 'http://shellyplus2pm-5443b23ff3ac.local/', 'identifiers': []}, 'origin': {'name': 'Shellies Discovery Gen2', 'sw_version': '2.22.1', 'support_url': 'https://github.com/bieniu/ha-shellies-discovery-gen2'}, 'state_stopped': 'stopped', 'position_closed': 0, 'tilt_optimistic': False, 'state_open': 'open', 'state_opening': 'opening', 'tilt_min': 0, 'state_closing': 'closing', 'availability_mode': 'latest', 'encoding': 'utf-8', 'payload_available': 'online', 'enabled_by_default': True, 'tilt_max': 100, 'retain': False, 'tilt_opened_value': 100, 'state_closed': 'closed', 'payload_not_available': 'offline', 'optimistic': False, 'position_open': 100, 'tilt_closed_value': 0}, this is not expected. Please correct your configuration. The entity name will be set to `null`
bieniu commented 10 months ago

This is not a log file, this is a small fragment of the log.

Spartacus68 commented 10 months ago

sorry, I thought it is ok, if I filter the mqtt relevant lines.... home-assistant.log

Spartacus68 commented 10 months ago

additional: I found, that the majority of devices will show this picture in the UI:

image

and only a few devices show this picture.

image
bieniu commented 10 months ago

sorry, I thought it is ok, if I filter the mqtt relevant lines.... home-assistant.log

This log does not contain any information related to the operation of the script.

bieniu commented 10 months ago

additional: I found, that the majority of devices will show this picture in the UI: image

and only a few devices show this picture. image

What picture? What is the problem?

Spartacus68 commented 10 months ago

as you can see, some device show a firmware version (aktuell)

image

and the majority of my devices show "unknown".

image

This means, that there is an issue with the communication between shelly device and HA regarding the firmware information. And due to this fact, I guess that the update of the firmware is not working and also the case wha only a few devices will notify HA that a new firmware is available.

There is nothing in the log, because no error occurs, or there is an issue with the logging configuration, but I do not find an issue in my configuration.yaml.

homeassistant:
# check .storage/core.config
# Ländereinstellungen und GPS Daten
#
  packages: !include_dir_named integrations

# Load frontend themes from the themes folder
frontend:
  themes: !include_dir_merge_named themes

# automation: !include automations.yaml
# script: !include scripts.yaml
# scene: !include scenes.yaml
wake_on_lan:
python_script:
  logger:
    default: error
    logs:
      homeassistant.components.python_script: debug
      homeassistant.components.automation: info
      homeassistant.components.mqtt.discovery: info
bieniu commented 10 months ago

and the majority of my devices show "unknown".

You have to wait, the device doesn't send information about firmware versions very often. You need to check if the shellies_discovery_gen2_script_20221116 script is installed and running on your device. This script causes the device to send information about the installed firmware version more frequently.

There is nothing in the log, because no error occurs, or there is an issue with the logging configuration, but I do not find an issue in my configuration.yaml.

With a properly configured script and logger, you can find detailed information in the log about the entities created by the script.

python_script: logger: default: error logs: homeassistant.components.python_script: debug homeassistant.components.automation: info homeassistant.components.mqtt.discovery: info

This configuration is absolutely wrong. Look here https://www.home-assistant.io/integrations/logger/

bieniu commented 10 months ago

I just checked, the update entity correctly informs about the availability of an update and allows you to initiate the update. Everything works as expected.

Spartacus68 commented 10 months ago

ok, does it mean, that this switch on the shelly has to be activated?

image

on some devices the switch is off, maybe that´s the issue?

bieniu commented 10 months ago

Yes, it should be activated. And you have to click "play" button on the left.

Spartacus68 commented 10 months ago

ok, but how does this happen? Do I have to check this after a firmware has been installed? Or how can I make sure, that this is switched on?

bieniu commented 10 months ago

This script should be enabled and running. I can't say why it isn't for your device. And I am not able to check the script status from the script (limitations of python_script).

Spartacus68 commented 10 months ago

Hi Maciej,

I will troubleshoot this during the next few days. I have activated it on all devices and now the FW is shown correctly in HA. For Gen1 there is no script unning on the shelliy, correct?

Thanks for support, Spartacus

bieniu commented 10 months ago

For Gen1 there is no script unning on the shelliy, correct?

Correct.

bieniu commented 10 months ago

I get a lot of warnings! Do you have a clue what this means?

Look here https://github.com/bieniu/ha-shellies-discovery-gen2/issues/302

Spartacus68 commented 10 months ago

ok, thanks! I will have a look at it. Thanks a lot and have a nice evening,

Spartacus