![]() |
|
Comfort2MQTT with Home Assistant Part 3 - Notifications - Printable Version +- Comfort Automation/ Security System Forums (https://www.comfortforums.com) +-- Forum: Software Applications (https://www.comfortforums.com/forum-4.html) +--- Forum: Comfort with Home Assistant (https://www.comfortforums.com/forum-143.html) +--- Thread: Comfort2MQTT with Home Assistant Part 3 - Notifications (/thread-5576.html) |
Comfort2MQTT with Home Assistant Part 3 - Notifications - slychiu - 11-30-2024 Notifications You need the Home Assistant app to be installed on Android or iOS and enable notifications. First sign in to companion app on your mobile phone (iOS or android) to allow the mobile phone to be discovered by Home Assistant. Check Mobile App Integration:
![]() Go to settings > automations & scenes > create new automation ![]() ![]() ![]() ![]() Press Add Trigger ![]() select Other Triggers select MQTT ![]() in Topic, chose a topic ie MQTT Topic Published (By Comfort)
Payload = Alarm If the payload is left blank it means that any change in Alarm State will trigger the notification eg Idle, Trouble, Alert, Alarm ![]() You can add other Triggers to this action if needed. Select Then Do, and + Add Action ![]() scroll down and select Notifications or enter notifications in the search bar; ![]() Look for Send a notification via mobile app and select the ID for the mobile device that has been added as a User If more than 1 phone is required, add another action and select the next mobile device Press Save ![]() You will be asked to enter a Name for the automation, eg Comfort Alarm - slychiu - 11-30-2024 Other Notification triggers using MQTT Actions Topic comfort2mqtt/alarm Payload NONE Comments Any change in Security Mode Topic comfort2mqtt/alarm Payload disarmed, pending, armed_home, armed_away, armed_night, arm_vacation, triggered Comments Change security Mode according to Payload Topic comfort2mqtt/alarm/mode Payload 0,1,2,3 Comments 0 = off, 1 = away, 2 = Night, 3 = Day, 4 = Vacation (same info as comfort2mqtt/alarm exceot numeric payload instead of name Topic comfort2mqtt/alarm/bypass[code] The resulting automations.yaml may look like this; - id: \'1732617452162\' alias: Set/Unset description: \'\' triggers: - trigger: state entity_id: - sensor.alarm_mode conditions: [] actions: - action: notify.mobile_app_sm_a546e metadata: {} data: message: Set/Unset mode: single - id: \'1732618839636\' alias: alarm Message description: \'\' triggers: - trigger: state entity_id: - sensor.alarm_message conditions: [] actions: - action: notify.mobile_app_sm_a546e metadata: {} data: message: AlarmMessage mode: single - id: \'1732619127853\' alias: System Disarmed description: \'\' triggers: - trigger: mqtt topic: comfort2mqtt/alarm payload: disarmed conditions: [] actions: - action: notify.mobile_app_sm_a546e metadata: {} data: message: System Disamed - action: notify.mobile_app_sm_a736b metadata: {} data: {} mode: single - id: \'1732621878860\' alias: System Armed description: \'\' triggers: - trigger: mqtt topic: comfort2mqtt/alarm payload: armed_home - trigger: mqtt topic: comfort2mqtt/alarm payload: armed_away - trigger: mqtt topic: comfort2mqtt/alarm payload: armed_night - trigger: mqtt topic: comfort2mqtt/alarm payload: armed_vacation conditions: [] actions: - action: notify.mobile_app_sm_a546e data: message: System Armed - action: notify.mobile_app_sm_a736b data: message: System Armed mode: single - id: \'1732622117164\' alias: Trouble description: \'\' triggers: - trigger: mqtt topic: comfort2mqtt/alarm/status payload: Trouble conditions: [] actions: - action: notify.mobile_app_sm_a546e metadata: {} data: message: Trouble mode: single - id: \'1732622180277\' alias: Alarm description: \'\' triggers: - trigger: mqtt topic: comfort2mqtt/alarm/status payload: Alarm conditions: [] actions: - action: notify.mobile_app_sm_a546e metadata: {} data: message: Alarm triggered! - action: notify.mobile_app_sm_a736b metadata: {} data: {} mode: single - slychiu - 12-10-2024 For Remote access to the Mobile app (Companion App), you can use one of the following;
In the Home Assistant App, you can specify several Servers eg Home, Office, Home Remote, Office Remote with different IP addresses. In the Home Assistant Companion app you can select the server in Settings > Cmpanion App (but this is not on the Desktop client) - slychiu - 12-12-2024 The notification on the Mobile phone is shown for system armed ![]() The notification by SMS is also seen before that - slychiu - 12-12-2024 Questions and comments in http://www.comfortforums.com/forum27/5579.html as the original topics are closed |