I’ve got a Xiaomi Honeywell Smoke Detector added to my home assistant.
I’ve made an automation from the UI which looks like this:
- id: '1635939813744'
alias: Fire Detected
description: Send alarm to phone when Fire is detected
trigger:
- platform: state
entity_id: binary_sensor.smoke_detector_1_smoke
from: 'false'
to: 'true'
action:
- event: Smoke detected notify phone
event_data:
service: notify.mobile_app_sm_g988b
data:
message: Fire detected
title: Fire Alarm
data:
ttl: 0
priority: high
channel: alarm_stream_max
mode: single
And it works.
But… On the zigbee2mqtt home page it recommends using the MQTT device trigger. Is there any benefits of using the MQTT device trigger? If so, what would an automation for this smoke detector look like?