Hi everyone. Not sure where I can post this, but I am facing an issue with my MQTT setup.
I have an MQTT Mosquito broker:
listener 1883
password_file /mosquitto/data/passwd
check_retain_source true
persistence true
I have a MQTT-IO setup:
mqtt:
host: 192.168.30.2
port: 1883
topic_prefix: heating
ha_discovery:
enabled: yes
user: heating
password: ************
client_id: heating
reconnect_count: Null
status_payload_running: available
status_payload_stopped: unavailable
status_payload_dead: unavailable
clean_session: true
gpio_modules:
# Use the Raspberry Pi built-in GPIO
- name: rpi
module: raspberrypi
digital_outputs:
- name: heating_bathroom
ha_discovery:
name: Heating Bathroom
pin: 17
<<: &common
module: rpi
inverted: true
initial: high
retain: true
publish_initial: true
- name: heating_kitchen_wall
ha_discovery:
name: Heating Kitchen Wall
pin: 21
<<: *common
And more output
My issue is the following. Every time the broker restart. The radiators appear unavailable and never come back. I would like they reconnect as soon the broker is back.
I am certain this is a configuration problem, but I am not sure which one.