Zigbee2Mqtt discovery exception

I decided to migrate from deCONZ to zigbee2mqtt and I am experiencing an exception in HA from the mqtt messages send by zigbee2mqtt.

I have found the following exception in HA logs:

The exception:

Exception in async_discover when dispatching 'mqtt_discovery_new_sensor_mqtt': ({'availability': [{'topic': 'zigbee2mqtt/bridge/state'}, {'topic': 'zigbee2mqtt/Desktop-lamp/availability'}], 'availability_mode': 'all', 'device': {'configuration_url': '10.0.1.5:8181/#/device/0x001788011058a902/info', 'identifiers': ['zigbee2mqtt_0x001788011058a902'], 'manufacturer': 'Philips', 'model': 'Hue white A60 bulb E27/B22 (9290011370)', 'name': 'Desktop-lamp', 'sw_version': '5.130.1.30000'}, 'enabled_by_default': False, 'entity_category': 'diagnostic', 'icon': 'mdi:signal', 'json_attributes_topic': 'zigbee2mqtt/Desktop-lamp', 'name': 'Desktop-lamp linkquality', 'state_class': 'measurement', 'state_topic': 'zigbee2mqtt/Desktop-lamp', 'unique_id': '0x001788011058a902_linkquality_zigbee2mqtt', 'unit_of_measurement': 'lqi', 'value_template': '{{ value_json.linkquality }}', 'platform': 'mqtt'},) Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/mqtt/mixins.py", line 350, in async_discover config = schema(discovery_payload) File "/usr/local/lib/python3.10/site-packages/voluptuous/validators.py", line 232, in __call__ return self._exec((Schema(val) for val in self.validators), v) File "/usr/local/lib/python3.10/site-packages/voluptuous/validators.py", line 355, in _exec raise e if self.msg is None else AllInvalid(self.msg, path=path) File "/usr/local/lib/python3.10/site-packages/voluptuous/validators.py", line 351, in _exec v = func(v) File "/usr/local/lib/python3.10/site-packages/voluptuous/schema_builder.py", line 272, in __call__ return self._compiled([], data) File "/usr/local/lib/python3.10/site-packages/voluptuous/schema_builder.py", line 818, in validate_callable return schema(data) File "/usr/local/lib/python3.10/site-packages/voluptuous/schema_builder.py", line 272, in __call__ return self._compiled([], data) File "/usr/local/lib/python3.10/site-packages/voluptuous/schema_builder.py", line 595, in validate_dict return base_validate(path, iteritems(data), out) File "/usr/local/lib/python3.10/site-packages/voluptuous/schema_builder.py", line 433, in validate_mapping raise er.MultipleInvalid(errors) voluptuous.error.MultipleInvalid: invalid url for dictionary value @ data['device']['configuration_url']

I have an app on my computer I use to listen to messages send to mqtt. This is the message send by zigbee2mqtt to the homeassistant/select/0x001788011058a902/effect/config topic

{"availability":[{"topic":"zigbee2mqtt/bridge/state"},{"topic":"zigbee2mqtt/Desktop-lamp/availability"}],"availability_mode":"all","command_topic":"zigbee2mqtt/Desktop-lamp/set/effect","device":{"configuration_url":"10.0.1.5:8181/#/device/0x001788011058a902/info","identifiers":["zigbee2mqtt_0x001788011058a902"],"manufacturer":"Philips","model":"Hue white A60 bulb E27/B22 (9290011370)","name":"Desktop-lamp","sw_version":"5.130.1.30000"},"enabled_by_default":false,"icon":"mdi:palette","json_attributes_topic":"zigbee2mqtt/Desktop-lamp","name":"Desktop-lamp effect","options":["blink","breathe","okay","channel_change","finish_effect","stop_effect"],"unique_id":"0x001788011058a902_effect_zigbee2mqtt"}

Things I have tried based on my google searches of the problem:

  • Restarting everything multiple times.
  • Removing device (Philips Hue bulb) and adding it again.
  • Clean install of Mosquitto

Additionally, I have Zwave2mqtt installed and working. I use the WS connection, but for testing I enabled the mqtt connection. This works perfectly fine, and HA is able to add devices.

System info:
Home Assistant v. 2022.9.5
zigbee2mqtt v. 1.27.2

Any ideas of what might be wrong?

Found the problem.
Removed the URL in Settings->Frontend and the exceptions stopped and devices started showing up in HA.

2 Likes