@chemelli wrote:
Hi,
trying to setup an automation to detect when my device restart.
Extract from automations.yaml:- id: '1577969487121' alias: Shelly availability trigger: - below: 100 entity_id: - sensor.shelly_shsw_25_xxxxxx_uptime_attr - sensor.shelly_shsw_25_xxxxxy_uptime_attr - sensor.shelly_shsw_25_xxxxyx_uptime_attr platform: numeric_state action: - data_template: message: 'Shelly restarted: {{trigger.below.friendly_name}}' title: Shelly availability (HA) service: notify.mail_send - data_template: message: 'Shelly restarted: {{trigger.below.friendly_name}}' service: system_log.write
Based on several eamples I found, seems code is fine but obviously it’s not.
Anyone that can help a noobie ?
I’m more interested in understanding what’s wrong and why than in the fix itself.Simone
Posts: 4
Participants: 2