I have an automation that automatically sets a timer to feed the dog within 15 minutes of coming home from a walk. The automation turns on an input_boolean, which then turns on a binary_sensor. That binary_sensor is exposed to Alexa via the smart home skill (not nabu casa). Then, an Alexa Routine triggers a custom action of “set a dog feeding timer for 15 minutes” when the binary sensor is detected as open.
Everything seems to trigger correctly, except for some reason the Alexa will create two timers instead of one. It’s really annoying because when the timer goes off, I now have to tell it to cancel the timer twice instead of once. To be honest, I have no idea whether this is an issue with my automation, or within Alexa, but I verified that there are no duplicate actions in my HA automation or in the Alexa Routine, but I would appreciate any help you can give. An excerpt of my yaml/routines are below:
Automation to trigger input boolean
trigger:
- platform: state
entity_id: person.me
from: not_home
to: home
for:
hours: 0
minutes: 0
seconds: 10
action:
- service: input_boolean.turn_on
target:
entity_id: input_boolean.dog_food_timer
data: {}
- delay:
hours: 0
minutes: 0
seconds: 10
milliseconds: 0
- service: input_boolean.turn_off
target:
entity_id: input_boolean.dog_food_timer
data: {}
binary sensor template:
binary_sensor:
- platform: template
dog_food_timer:
friendly_name: 'Dog Feeding Time'
device_class: door
value_template: >
{{ is_state('input_boolean.dog_food_timer', 'on') }}
Alexa Routine:
When: Dog Feeding Time Opens
Anytime
Alexa will: "Alexa, set a dog feeding timer for 15 minutes."
From: Living room echo
1 post - 1 participant