mrlt8 / docker-wyze-bridge

WebRTC/RTSP/RTMP/LL-HLS bridge for Wyze cams in a docker container
GNU Affero General Public License v3.0
2.47k stars 151 forks source link

MQTT Naming Warning in Home Assistant Logs #1046

Closed ejpenney closed 7 months ago

ejpenney commented 7 months ago

Minor cleanup thing, but whenever I startup I see these in the log:

MQTT entity name starts with the device name in your config {'device': {'name': 'Wyze Cam Coop Cam', 'connections': [['mac', '2CAA8EA68917']], 'identifiers': ['2CAA8EA68917'], 'manufacturer': 'Wyze', 'model': 'WYZEC1-JZ', 'sw_version': '4.28.4.49', 'via_device': 'docker-wyze-bridge v2.3.17'}, 'state_topic': 'wyzebridge/coop-cam/res', 'icon': 'mdi:image-size-select-large', 'entity_category': <EntityCategory.DIAGNOSTIC: 'diagnostic'>, 'availability_topic': 'wyzebridge/state', 'name': 'Wyze Cam Coop Cam Res', 'unique_id': 'WYZE2CAA8EA68917RES', 'enabled_by_default': True, 'force_update': False, 'payload_not_available': 'offline', 'qos': 0, 'availability_mode': 'latest', 'encoding': 'utf-8', 'payload_available': 'online'}, this is not expected. Please correct your configuration. The device name prefix will be stripped off the entity name and becomes 'Res'

I've tried removing the devices and re-installing the add-on, but the message doesn't go away. I don't think this is breaking anything, but I didn't see this mentioned anywhere in this repository so I figured I'd flag it. Hopefully it just remains a warning...

mrlt8 commented 7 months ago

Thank you, will look into this.

mrlt8 commented 7 months ago

@ejpenney could test out the dev branch to see if that fixes the MQTT warnings?

https://github.com/mrlt8/edge-repo

ejpenney commented 7 months ago

Can confirm the issue goes away on the DEV branch. Thanks!