Trigger automations via Alexa/Echo

Hello

Is this possible please? As the automation’s are detected via alexa/echo but when you say, echo turn on water greenhouse, it turns on the automation, which is already on. Can you trigger the automation via alexa/echo please?

Cheers
Mark

Make the functional bit scripts and automate them, then expose the scripts to emulated_hue and away you go, auto and manual.

hmm good idea, thank you!. Sorry but this simple one, how would I make it a script please?

alias: Water Greenhouse
trigger:
  - platform: time
    at: 06:00:00

action:
  - service: switch.turn_on
    entity_id: switch.greenhouse_switch
  - delay: '00:02:00'
  - service: switch.turn_off
    entity_id: switch.greenhouse_switch

No need in that instance, saying "turn on greenhouse switch"should do what you want if you set it up right so just rename the automation and then give the switch a friendly name of Water Greenhouse.

Your script would simply the actions; no trigger needed because you will be triggering it manually (or verbally in this case) instead of at a specified time. Give the script a friendly name and then use whatever method you are using to expose the script to Alexa via custom intents, emulated hue hub, HAASKA, IFTTT with the Maker applet posting to the HA REST API …

Should work just like this, I think - I haven’t tested it but it should be good.

sequence:
  - service: switch.turn_on
    entity_id: switch.greenhouse_switch
  - delay: '00:02:00'
  - service: switch.turn_off
    entity_id: switch.greenhouse_switch

PERFECT thank you. I put this in and it works like a dream. Just now need to change my automation to run the script as well. Love this stuff :slight_smile:

1 Like