a little background on my system - I use OpenHabian on a raspi3, plus a bunch of Smart Home Hardware.
Control should be possible with a little Android tablet (FireTab) using a nice Openhab GUI and Alexa.
I started with OpenHab and added all my Sonoffs (flashed with tasmota firmware), Openhab was able to control them all
but Alexa only works on the single channel switches. As I have mostly Sonoff 4Ch and 4ch Pro devices this was bad.
If I say"work", I mean that I can use the devices not only for direct voice commands but also inside Alexa Routines.
It seems that the tasmota Hue emulation is not “compatible” enough, but Wemo emu works.
So I am now testing ESPurna. It is also available for almost all ESP based Hardware (just like the tasmota), but it uses the Wemo emulation - also for the multi-channel parts (it just starts a webserver for each relais - nice trick)
My problem now is - how do I add the Wemo devices to OpenHab? The auto-magick detection does not seem to work .
Is my approach the best one, under my special circumstances (e.g. using Alexa Routines)?
If I won’t hear any new tip (or trick) I might use the http API as last resort?
Openhab was able to control them all but Alexa only works on the single channel switches. As I have mostly Sonoff 4Ch and 4ch Pro devices this was bad.
I believe this is the real problem you are facing. The one does not rule out the other.
I have a good idea what you are doing “wrong”. Please post your item definitions for the four channels.
Alexa supports so called “Routines”.
Thats (by now) a very simple IFTT implementation. So - you can configure a spoken sentence, e.g. “Starte meinen Tag”, and the configured routine will execute a simple task list (without any if’s, just one after another).
The OpenHab items, or the Hue emulated items do not work with routines. But Wemo emulated devices work.
Thank you for your effort so far - maybe you can help me with changing my config to the “ESPurna” Wemo config. It allows several command entries, one is MQTT, but Openhab does not detect these devices automagically. The next is the http API, it seems this might be my solution by now, as it allows me to configure http requests with IP’s and the http api key.
Ah,
no to my knowledge this is not supported. What you can do, and that is how I’d do something like this, is to define a rule to e.g. turn on a bunch of your lamps. Then you can link this rule to a switch and use it via Alexa with “Alexa, schalte die Indirekte Beleuchtung an.” If you think about it, this should work for most use cases. If prefer this solution because this way all logic stay within openHAB. I don’t know about you but one of the strong arguments of openHAB for me is, that I can do almost everything in openHAB and don’t have to implement logic in multiple UIs/applications/devices.
I’d not go away from Sonoff-Tasmota but if you want to, I can’t help with that, sorry.
rule "Indirekte Wohnzimmer Beleuchtung schalten"
when
Item WZ_Indirekt changed to ON
then
WZ_Ecklampe.sendCommand(ON)
WZ_Regal_LEDs.sendCommand(ON)
WZ_Glastisch.sendCommand(ON)
end
val String filename = "weihnachtsbaum.rules"
rule "Weihnachtsbaum an"
when
Time cron "0 0 18 * * ?"
then
sendCommand(FK_Weihnachtsbaum, ON)
end
rule "Weihnachtsbaum aus"
when
Time cron "0 30 0 * * ?"
then
sendCommand(FK_Weihnachtsbaum, OFF)
end