hjelev / rpi-mqtt-monitor

Raspberry Pi MQTT Monitor gathers system information and sends it to a MQTT server.
GNU General Public License v3.0
189 stars 43 forks source link

Illegal discovery topic #104

Closed ahti123 closed 6 months ago

ahti123 commented 6 months ago

rpi-monitor uses full hostname for the device name but according to the linked documentation, objectid (device) can contain only [a-zA-Z0-9-]

[homeassistant.components.mqtt.discovery] Received message on illegal discovery topic 'homeassistant/sensor/rpi-MQTT-monitor/some.hostname.com_uptime_days/config'. The topic contains not allowed characters. For more information see https://www.home-assistant.io/integrations/mqtt/#discovery-topic

hjelev commented 6 months ago

Thanks, I have merged your PR