hjelev / rpi-mqtt-monitor

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

Illegal discovery topic #104

Closed ahti123 closed 2 months ago

ahti123 commented 2 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 2 months ago

Thanks, I have merged your PR