boa noite, é a primeira vez que tenho o notify.telegram configurado.
tenho esta config,
sensor:
- platform: template
sensors:
batteryp10:
friendly_name: Bateria
value_template: "{{ state_attr('device_tracker.life360_aoliveira', 'battery') }}"
unit_of_measurement: '%'
device_class: battery
- platform: template
sensors:
localp10:
friendly_name: Localização
value_template: "{{ state_attr('device_tracker.life360_aoliveira', 'address') }}"
automation:
- alias: Desacelera
trigger:
- platform: numeric_state
entity_id: device_tracker.life360_aoliveira
value_template: ‘{{ state.attributes.speed }}’
above: 120
for:
minutes: 1
action:
- service: notify.Telegram
data:
title: “Alerta De Velocidade”
message: “Abranda”
data:
photo:
url: https://bordalo.observador.pt/400x,q85/https://s3.observador.pt/wp-content/uploads/2017/12/24093246/2370040_770x433_acf_cropped.jpg
caption: "Alerta de Velocidade"
mas está a dar-me este erro:
root@HomeAssistant:~/.homeassistant# cat home-assistant.log
2019-07-02 23:16:12 ERROR (MainThread) [homeassistant.config] Invalid config for [automation]: Service notify.Telegram does not match format <domain>.<name> for dictionary value @ data['action'][0]['service']. Got 'notify.Telegram'. (See /root/.homeassistant/packages/life360.yaml, line 19). Please check the docs at https://home-assistant.io/components/automation/
root@HomeAssistant:~/.homeassistant#
vai uma ajudinha?
Obrigado