Hi all,
New to Zigbee2MQTT and think I’ve done something wrong, my intended result was to get an online or offline message when someone switches off one of my bulbs at the wall. I think I have now done this correctly by setting the availability_timeout: 60 in the config file.
However whilst doing this I think I switched on reporting and then switched it off again, I now have one bulb that seems to report twice every 5 mins it’s status and another bulb that I joined to the network after making the mistake that doesn’t.
How do I get my first bulb ‘light_1’ to stop reporting all the time?
zigbee2mqtt:info 2020-01-27 11:01:34: MQTT publish: topic 'zigbee2mqtt/switch_1/availability', payload 'online'
zigbee2mqtt:info 2020-01-27 11:01:34: MQTT publish: topic 'zigbee2mqtt/light_1/availability', payload 'online'
zigbee2mqtt:info 2020-01-27 11:01:34: MQTT publish: topic 'zigbee2mqtt/light_2/availability', payload 'online'
zigbee2mqtt:info 2020-01-27 11:01:38: MQTT publish: topic 'zigbee2mqtt/light_1', payload '{"state":"OFF","brightness":254,"linkquality":57,"last_seen":1580122898516}'
zigbee2mqtt:info 2020-01-27 11:06:01: MQTT publish: topic 'zigbee2mqtt/light_1', payload '{"state":"OFF","brightness":254,"linkquality":57,"last_seen":1580123161592,"elapsed":263068}'
zigbee2mqtt:info 2020-01-27 11:06:38: MQTT publish: topic 'zigbee2mqtt/light_1', payload '{"state":"OFF","brightness":254,"linkquality":52,"last_seen":1580123198504,"elapsed":36912}'
zigbee2mqtt:info 2020-01-27 11:11:01: MQTT publish: topic 'zigbee2mqtt/light_1', payload '{"state":"OFF","brightness":254,"linkquality":57,"last_seen":1580123461596,"elapsed":263091}'
zigbee2mqtt:info 2020-01-27 11:11:38: MQTT publish: topic 'zigbee2mqtt/light_1', payload '{"state":"OFF","brightness":254,"linkquality":57,"last_seen":1580123498514,"elapsed":36919}'
zigbee2mqtt:info 2020-01-27 11:16:01: MQTT publish: topic 'zigbee2mqtt/light_1', payload '{"state":"OFF","brightness":254,"linkquality":57,"last_seen":1580123761598,"elapsed":263084}'
zigbee2mqtt:info 2020-01-27 11:16:38: MQTT publish: topic 'zigbee2mqtt/light_1', payload '{"state":"OFF","brightness":254,"linkquality":55,"last_seen":1580123798508,"elapsed":36910}'
And my config
homeassistant: false
permit_join: true
mqtt:
base_topic: zigbee2mqtt
server: 'mqtt://mqtt'
serial:
port: /dev/ttyACM0
disable_led: true
advanced:
last_seen: epoch
availability_timeout: 60
elapsed: true
report: false
devices:
'xxxxx':
friendly_name: switch_1
'xxxxx':
friendly_name: light_1
'xxxxx':
friendly_name: light_2