I need some great minds to help come up with a solution to an issue

I’m pretty certain you could achieve want you want with node-red.
I used a setup over Christmas to turn on all the various Christmas lights using node red, and you can invoke whatever in HA based on the on/off, e.g.

So… Alexa Turn on “DISABLED Christmas Lights” and turn off “DISABLED Christmas Lights” can do completely different things, and whatever you plumb in.

I’d need to double check on the ‘override’ of on/offs states, but you could certainly execute scripts as you mentioned!

but nodered does use AWS, doesnt it?

I use only this switch with emulated hue, routines and Alexa to say . I use scripts for the action to add the condition of not opening the garage when its already open. I thought that you could turn on a switch that is already on in Alexa.

Alexa, turn off garage
Alexa, turn on garage
Alexa, open garage (routines)
Alexa, close garage (routines)

  - platform: template
    switches:
      garage:
        value_template: "{{ is_state('binary_sensor.garage', 'on') }}"
        turn_on:
          service: homeassistant.turn_on
          entity_id: script.open_garage
        turn_off:
          service: homeassistant.turn_on
          entity_id: script.close_garage
1 Like

nope - i’m using the emulated hue node.
There’s an equivalent that relies on an AWS skill.

didnt know it was there.
i have seen node red come by but are quite unfamiliar with it.
thanks for the info.

Thanks! I did see this, wasn’t sure how it would work with AppDaemon though. I’m sure how to ‘set’ the value_template portion without having a sensor. I suppose I could just tie them it to a group’s state.

I ended up using the template switch, works like a charm.

2 Likes