Hi,
I am very new to using Hubitat and need your help/inputs
I have a tradfri Plug and added to hubitat. My main goal is to have alexa speak "Switch is on/off" based on the plug status
To do that i added a virtual switch for this plug and created a rule to enable/change the status based on the status of tradfri plug status
if the plug is enabled...enable the virtual switch
Now on alexa app i was able to add the both the devices. and see them under the devices list. Now when i try to setup a routine, create routine-->when this happens -->Smart home i see "No Devices Found"
My assumption is i should see these devices to select( virtual switch) under the Smart home. and then add an action,
But the same devices are seen under devices list
Could you help with any inputs
Did you install the Amazon Echo skill app? It's a built in app available under add Built-in apps at top of apps page.
Once installed you add the devices you want your Echo devices to have access to and they will then show up under smart home devices.
Alexa does not support switches as "triggers" for an Alexa Routine. It has to be a motion or contact sensor. (It would make sense if Alexa did, but....)
You can use a custom driver that simulates both, or you could use the built-in motion or contact sensor drivers with a rule to manually change their state (via their custom commands like open()
or active()
) when needed. Since it sounds like you have a "real" device already, you'll probably need a separate virtual driver, and if you're already using a rule, maybe it's easy enough to just put that in there--something like running the custom command active()
on the virtual motion sensor when the switch turns on and inactive()
when it turns off, then expose this virtual sensor to Alexa and use that for your routine. (I'm not sure why you created a separate virtual switch device to reflect the same state, but this is a similar idea, just with a device Alexa supports for this.)
There are also a couple solutions to get arbitrary TTS on Alexa directly from Hubitat, but none are officially supported like the method you are trying is, and both require a bit of extra work to set up. You may get some suggestions to try those methods instead, and perhaps you'll want to for other reasons. Otherwise, what you have now should work with a couple modifications!
1 Like