üzenetek

hozzászólások


[w]
(őstag)

a néha nem frissülő szenzorokra találtam egy ilyen kódot, de nálam nem akar futni
valaki le tudná tesztelni, hogy kiderüljön, csak nálam van-e valami gond?

alias: 'sensor not updating notifications'
description: ''
trigger:
 - platform: state
   entity_id:
     - sensor.boysroom433
     - sensor.office433
     - sensor.playroom433
     - sensor.library433
     - sensor.outside433
   attribute: time
   for:
     hours: 0
     minutes: 10
     seconds: 0
condition: []
action:
 - service: notify.whatsapp
   data:
     message: >-
       {{ trigger.from_state.attributes.friendly_name }} not updated for 10
       minutes
mode: parallel

ja igen, hibaüzenet: "Error: Error rendering data template: UndefinedError: 'dict object' has no attribute 'from_state'"

[ Szerkesztve ]

üzenetek