I’m using HASS OS on a Raspberry Pi 4, and I have 2 wyze cam v2’s running the up-to-date dafang alternate firmware. I am adding them to HA and have both RTSP streams working. I’m trying to add sensors over MQTT, one works and the other doesn’t and I can’t figure out why.
I’m using the MOSQUITTO broker, and both of my wyze cams have the exact same configuration (except for Location, which is the name of the room the camera is in). One shows up fine with all its sensors, the other doesn’t. When I check the logs, I get messages like this about different sensors on the camera that doesn’t show up (I dashed out the room name since it’s my kids names, but it’s an alphanumeric name):
* Exception in async_discover when dispatching 'mqtt_discovery_new_switch_mqtt': ({'name': 'sr66-wyze-01 Blue LED', 'unique_id': '2caa8e1dac1e-blue-led', 'device': {'identifiers': '2caa8e1dac1e', 'connections': [['mac', '2c:aa:8e:1d:ac:1e']], 'manufacturer': 'Xiaomi', 'model': 'Dafang', 'name': 'sr66-wyze-01', 'sw_version': 'null - master - null'}, 'icon': 'mdi:led-on', 'state_topic': '-----+Room/sr66-wyze-01/leds/blue', 'command_topic': '-----+Room/sr66-wyze-01/leds/blue/set', 'platform': 'mqtt'},) Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/mqtt/mixins.py", line 152, in async_discover config = schema(discovery_payload) File "/usr/local/lib/python3.8/site-packages/voluptuous/schema_builder.py", line 272, in __call__ return self._compiled([], data) File "/usr/local/lib/python3.8/site-packages/voluptuous/schema_builder.py", line 594, in validate_dict return base_validate(path, iteritems(data), out) File "/usr/local/lib/python3.8/site-packages/voluptuous/schema_builder.py", line 432, in validate_mapping raise er.MultipleInvalid(errors) voluptuous.error.MultipleInvalid: Single-level wildcard must occupy an entire level of the filter for dictionary value @ data['state_topic']
This looks to me like the topic is being treated as a wildcard, but the topic is just “homeassistant.” The 2 cameras are called sr66-wyze-01 and sr66-wyze-02 and 02 shows up fine, but 01 doesn’t show up and makes the errors in the logs. I’ve uploaded the configs from both the cameras for comparison.
This has gotten a bit over my head, any ideas what the issue is?