Setup Hardware: Remote Address=localhost, port=1883, Auto Discovery Prefix=domoticz
Domoticz version 2023.1 build: 15182 BETA channel on a Raspberry Pi 4B.
Issue
No new Domoticz device created from below command. No error in the log. Also after Domoticz restart, no new device.
EDIT: SOLVED - see next post.
Terminal command
This command is taken from the HA documentation > topic Sensors (https://www.home-assistant.io/integrati ... -discovery)
Code: Select all
mosquitto_pub -r -h localhost -p 1883 -t "domoticz/sensor/sensorGardenH/config" -m '{"name": "Garden Hum", "device_class": "humidity", "state_topic": "domoticz/sensor/sensorGarden/state", "value_template": "{{value_json.humidity}}", "unit_of_measurement": "%RH", "unique_id": "SGH001"}'
Status
Code: Select all
2023-04-16 11:07:17.623 Status: MQTTADGateway: connected to: localhost:1883
2023-04-16 11:07:24.561 Status: MQTTADGateway: discovered: SGH001/Garden Hum (unique_id: SGH001)
Code: Select all
2023-04-16 11:07:07.238 Debug: MQTTADGateway: topic: domoticz/sensor/sensorGardenH/config, message:
2023-04-16 11:07:14.404 Debug: : MQTT PublishSchema 1 (1), Retain 0
2023-04-16 11:07:14.405 Debug: : MQTT PublishSchema 0 (0), Retain 0
2023-04-16 11:07:17.924 Debug: MQTTADGateway: topic: domoticz/status, message: online
2023-04-16 11:07:24.560 Debug: MQTTADGateway: topic: domoticz/sensor/sensorGardenH/config, message: {"name": "Garden Hum", "device_class": "humidity", "state_topic": "domoticz/sensor/sensorGarden/state", "value_template": "{{value_json.humidity}}", "unit_of_measurement": "%RH", "unique_id": "SGH001"}