Skip to content
This repository has been archived by the owner on Oct 4, 2021. It is now read-only.

Monitoring EMS ESP somehow? #771

Closed
swa72 opened this issue Jun 13, 2021 · 1 comment
Closed

Monitoring EMS ESP somehow? #771

swa72 opened this issue Jun 13, 2021 · 1 comment
Labels
question Further information is requested

Comments

@swa72
Copy link

swa72 commented Jun 13, 2021

Every couple of weeks I notice flat lines of data in HA (no changing data for a couple of hours). I discovered that EMS ESP MQTT service has stopped working.

I now have an automation that checks for sensor.thermostat_damped_outdoor_temperature which should change regularly. And if there is no change within 2 hours, I get a message to look after the system. Is there any better approach?

alias: Monitor heating
description: 'if thermostat sensor''s damped temp does not change for 120min, notify me'
trigger:
  - platform: state
    entity_id: sensor.thermostat_damped_outdoor_temperature
    for: '02:00:00'
action:
  - service: notify.mobile_app_iphone
    data_template:
      message: >-
        {{ trigger.from_state.attributes.friendly_name }} has not updated for
        120min
mode: single
@swa72 swa72 added the question Further information is requested label Jun 13, 2021
@proddy
Copy link
Collaborator

proddy commented Jun 14, 2021

I think it's worth looking into why EMS-ESP is losing the MQTT connection. Put SysLog on and see when it occurs. I could be related to the MQTT server going down for longer than a few minutes (see emsesp/EMS-ESP32#42).

There's also a last will topic called status so you could subscribe to that. See https://www.home-assistant.io/docs/mqtt/birth_will/

@proddy proddy closed this as completed Oct 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants