grrravity
(thomas baker)
1
I am using yolink integration and trying to create an automatic to get alexa to notify me if the beer fridge gets to warm.
the script is not running on its own. any ideas?
alias: beer fridge hot
description: ''
trigger:
- type: temperature
platform: device
device_id: dbf3afff5f639cdd17fde1cfca6a2f7e
entity_id: sensor.beer_fridge_temperature
domain: sensor
above: 78
below: 32
for:
hours: 0
minutes: 0
seconds: 0
condition: []
action:
- service: media_player.play_media
target:
entity_id: media_player.living_room, media_player.family_room, media_player.kitchen,
media_player.moms_room
data:
media_content_id: amzn_sfx_doorbell_chime_02
media_content_type: sound
- service: notify.alexa_media
data:
target: media_player.living_room, media_player.family_room, media_player.kitchen,
media_player.moms_room
message: The beer fridge is hot. check the door
data:
type: tts
mode: single
Has the temperature gone (not already there) above or below those thresholds?
grrravity
(thomas baker)
3
Yes. I have played with it and allow it to go below the high temp alarm and then warm back up.
Yolink app alert works but looking at the status in HA, it never sees it trigger.
I have test run and seems to work.
And reason you’re not using a numeric state trigger?
grrravity
(thomas baker)
5
because i’m a rookie and have no clue what i’m doing, haha.
grrravity
(thomas baker)
6
it now works! thanks for the suggestion
gefriedman
(Gary Friedman)
8
Would you kindly post your YAML for the working version? Same issue here.
THANKS
grrravity
(thomas baker)
9
description: ""
trigger:
- platform: numeric_state
entity_id: sensor.beer_fridge_temperature
above: 52
condition: []
action:
- repeat:
until:
- condition: numeric_state
entity_id: sensor.beer_fridge_temperature
below: 50
sequence:
- service: media_player.play_media
target:
entity_id: >-
media_player.living_room, media_player.family_room,
media_player.kitchen, media_player.moms_room
data:
media_content_id: amzn_sfx_doorbell_chime_02
media_content_type: sound
- service: notify.alexa_media
data:
target: >-
media_player.living_room, media_player.family_room,
media_player.kitchen, media_player.moms_room
message: The beer fridge is hot. check the door
data:
type: tts
- delay:
hours: 0
minutes: 0
seconds: 30
milliseconds: 0
mode: single