Is it possible to present a switch (Insteon in this case) to ALEXA / NABU as a sensor?
I want to trigger a routine when button A is pressed on a keypad. The switch is presented to Alexa via NABU fine, but I can not trigger a routine on it.
Figured it out. Alexa can trigger a ‘Routine’ if a sensor is triggered. To get NABU to publish a sensor that is one of the keypad buttons, you set up Template Binary Sensor
you can pick from the DEVICE CLASS for your sensor, I used ‘door’ so it was just open or closed. The code below is added to the configuration.yaml or have it refer to the file with an ‘!include’
I did not need to duplicate for the off, it just picked that up. So in the ALEXA app I can set a routine, that triggers from ‘SwitchB’ with open = on and close =off
YES
now I can set triggers from Insteon to ALEXA…
one issue with all of these binary sensors is that rebooting the HA will trigger an update to ALEXA. My Garage door state is announced, and since the button state is reported, the associated scene is triggered.
My work around will be to use a HA scene, and just have ALEXA announce the scene, verse control the scene.