SirGoodenough / HA_Blueprints

🧯 My Collection of Automation and Script Blueprints for Home Assistant 🧯
Other
139 stars 22 forks source link

Blueprint - Zigbee2MQTT - Xiaomi Cube Controller - errors in log #42

Open LeeWiu opened 3 months ago

LeeWiu commented 3 months ago

Hi, I get this error in log, even with v2024-06-02 The device name is Cube and the topic name is zigbee2mqtt/Cube, Z2M is v1.39.0

Logger: homeassistant.helpers.template
Source: helpers/template.py:2629
First occurred: 12:47:44 (1 occurrences)
Last logged: 12:47:44

Template variable warning: list object has no element 1 when rendering '{{ieee_id_long.split('_')[1] }}

And

Logger: homeassistant.components.mqtt.discovery
Source: components/mqtt/discovery.py:228
integration: MQTT ([documentation](https://www.home-assistant.io/integrations/mqtt), [issues](https://github.com/home-assistant/core/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+mqtt%22))
First occurred: 09:38:32 (1 occurrences)
Last logged: 09:38:32

Received message on illegal discovery topic 'homeassistant/number//last_side/config'. The topic contains not allowed characters. For more information see https://www.home-assistant.io/integrations/mqtt/#discovery-topic

In mqtt info

Entities
Cube Battery (sensor.cube_battery)
MQTT discovery data:
Topic: homeassistant/sensor/0x00158d00042d6c35/battery/config
PayloadSubscribed topics:
zigbee2mqtt/bridge/state
3 most recently received message(s)

zigbee2mqtt/Cube/availability
2 most recently received message(s)

zigbee2mqtt/Cube
10 most recently received message(s)Transmitted messages:

Cube Action angle (sensor.cube_action_angle)
MQTT discovery data:
Topic: homeassistant/sensor/0x00158d00042d6c35/action_angle/config
PayloadSubscribed topics:
zigbee2mqtt/bridge/state
3 most recently received message(s)

zigbee2mqtt/Cube/availability
2 most recently received message(s)

zigbee2mqtt/Cube
10 most recently received message(s)Transmitted messages:

Cube Temperature (sensor.cube_device_temperature)
MQTT discovery data:
Topic: homeassistant/sensor/0x00158d00042d6c35/device_temperature/config
PayloadSubscribed topics:
zigbee2mqtt/bridge/state
3 most recently received message(s)

zigbee2mqtt/Cube/availability
2 most recently received message(s)

zigbee2mqtt/Cube
10 most recently received message(s)Transmitted messages:

Cube Action from side (sensor.cube_action_from_side)
MQTT discovery data:
Topic: homeassistant/sensor/0x00158d00042d6c35/action_from_side/config
PayloadSubscribed topics:
zigbee2mqtt/bridge/state
3 most recently received message(s)

zigbee2mqtt/Cube/availability
2 most recently received message(s)

zigbee2mqtt/Cube
10 most recently received message(s)Transmitted messages:

Cube Action side (sensor.cube_action_side)
MQTT discovery data:
Topic: homeassistant/sensor/0x00158d00042d6c35/action_side/config
PayloadSubscribed topics:
zigbee2mqtt/bridge/state
3 most recently received message(s)

zigbee2mqtt/Cube/availability
2 most recently received message(s)

zigbee2mqtt/Cube
10 most recently received message(s)Transmitted messages:

Cube Action to side (sensor.cube_action_to_side)
MQTT discovery data:
Topic: homeassistant/sensor/0x00158d00042d6c35/action_to_side/config
PayloadSubscribed topics:
zigbee2mqtt/bridge/state
3 most recently received message(s)

zigbee2mqtt/Cube/availability
2 most recently received message(s)

zigbee2mqtt/Cube
10 most recently received message(s)Transmitted messages:

Cube Side (sensor.cube_side)
MQTT discovery data:
Topic: homeassistant/sensor/0x00158d00042d6c35/side/config
PayloadSubscribed topics:
zigbee2mqtt/bridge/state
3 most recently received message(s)

zigbee2mqtt/Cube/availability
2 most recently received message(s)

zigbee2mqtt/Cube
10 most recently received message(s)Transmitted messages:

Cube Action (sensor.cube_action)
MQTT discovery data:
Topic: homeassistant/sensor/0x00158d00042d6c35/action/config
PayloadSubscribed topics:
zigbee2mqtt/bridge/state
3 most recently received message(s)

zigbee2mqtt/Cube/availability
2 most recently received message(s)

zigbee2mqtt/Cube
10 most recently received message(s)Transmitted messages:

Triggers
MQTT discovery data:
Topic: homeassistant/device_automation/0x00158d00042d6c35/action_shake/config
Payload
MQTT discovery data:
Topic: homeassistant/device_automation/0x00158d00042d6c35/action_wakeup/config
Payload
MQTT discovery data:
Topic: homeassistant/device_automation/0x00158d00042d6c35/action_fall/config
Payload
MQTT discovery data:
Topic: homeassistant/device_automation/0x00158d00042d6c35/action_rotate_right/config
Payload
LeeWiu commented 3 months ago

Could be this double slash between number and last_side? Received message on illegal discovery topic 'homeassistant/number//last_side/config'