Log error when alarm fails to be armed #570
Replies: 6 comments 5 replies
-
If users don't know to look at logs, then I'm not sure how to help them, but I'm not sure do-it-yourself project like ring-mqtt or Home Assistant are really for people that don't know how to look at logs. They should probably stick with paid products that have support. |
Beta Was this translation helpful? Give feedback.
-
I’m used to digging through log files when troubleshooting something but the nice thing about the main HA log is it can fire |
Beta Was this translation helpful? Give feedback.
-
Hey is there any way to turn that on for other log files?
…On Sun, Mar 12, 2023 at 7:16 PM tsightler ***@***.***> wrote:
I have no idea, but it doesn't really make any difference since I'm not
aware of any way to surface messages from ring-mqtt to HA. The ring-mqtt
project itself is not related to HA. As its name implies, it communicates
to HA only via MQTT and it can only do what MQTT allows.
—
Reply to this email directly, view it on GitHub
<#570 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AXBJ5MNHVWGNO2B5NQ4VSADW3ZRN7ANCNFSM6AAAAAAVITAI4A>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
--
-Kruse Ludington
M: +1.201.925.4410
H: +1.201.857.8307
F: +1.201.857.7718
|
Beta Was this translation helpful? Give feedback.
-
I use an additional automation in HA to monitor this behavior. The idea is to monitor
|
Beta Was this translation helpful? Give feedback.
-
@Mincka thanks for sharing. Meanwhile I came up with the following solution. Every time MQTT tries to arm, it waits 2 seconds and then sends a notification if it's still disarmed. This has been working well so far. alias: MQTT warn on ring alarm failure
description: ""
trigger:
- platform: mqtt
topic: >-
ring/d40647d4-9559-4be8-9d57-2afd8c029d0c/alarm/34866be9-84a8-47dd-8fb7-04eb21e9338d/alarm/command
condition:
- condition: template
value_template: "{{ trigger.payload.startswith(\"ARM\") }}"
action:
- delay:
hours: 0
minutes: 0
seconds: 2
milliseconds: 0
- condition: state
entity_id: alarm_control_panel.home_alarm
state: disarmed
- service: notify.persistent_notification
data:
title: Unable to arm
message: "Payload: {{trigger.payload}}"
- service: tts.google_translate_say
data:
cache: true
entity_id: media_player.homepod
message: I was unable to arm the alarm
mode: single |
Beta Was this translation helpful? Give feedback.
-
I'm curious if you all could share the use case. What exactly do you do when you detect that the arming doesn't work? I'm trying to understand if the current bypass behavior needs to be improved, or is this just for notification purposes so you can manully check things. I've also been considering the possibility of including some additional data as part of the json attribute topic, for example, last arming action which could indicate failure/success and perhaps even failure reason, as well perhaps who armed/disarmed (assuming a code was used at the panel). I'm trying to understand if this would be useful or perhaps at least make such automations easier. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have some Home Assistant automations that arm the alarm at various times. If a door is open when this runs, there is no error message or indication of failure. The addon log shows the error clearly:
But most users won't know to look there. Is there some way to bubble an error up to Home Assistant in this case so the user can decide what to do?
Beta Was this translation helpful? Give feedback.
All reactions