Amazon Echo to Domoticz Bridge: switches, sensors & more

Alexa, Google Home and Siri

Moderator: leecollings

Madgeni
Posts: 1571
Joined: Friday 25 March 2016 17:43
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Amazon Echo to Domoticz Bridge: switches, sensors & more

Post by Madgeni »

Hi - your config looks fine - just to check, you've configured the handler to be called domapi?
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
SwordFish
Posts: 278
Joined: Sunday 14 December 2014 12:28
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.11375
Contact:

Re: Amazon Echo to Domoticz Bridge: switches, sensors & more

Post by SwordFish »

This looks really nice, will try it today.
But i have a question, do i need to set a password/user and needs the folder domo-code also in the upload zip folder?
Madgeni
Posts: 1571
Joined: Friday 25 March 2016 17:43
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Amazon Echo to Domoticz Bridge: switches, sensors & more

Post by Madgeni »

yes, you need a username/password, and i'd recommend using https - https://www.domoticz.com/wiki/Native_HT ... SL_support.

Once you've done that, then the files/folders you need are domapi.js, conf.json, /node_modules, /domo-code.
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
SwordFish
Posts: 278
Joined: Sunday 14 December 2014 12:28
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.11375
Contact:

Re: Amazon Echo to Domoticz Bridge: switches, sensors & more

Post by SwordFish »

Thanks got it working :)
I do not have a alexa Echo but i have installed Alexa on the rpi 3 using this link https://www.youtube.com/watch?v=baec1CbV6A0
Swifty
Posts: 76
Joined: Saturday 31 December 2016 21:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Amazon Echo to Domoticz Bridge: switches, sensors & more

Post by Swifty »

I've just had the 'What's new with Alexa?' email come through from Amazon, and it looks like it's possible to set light colours for Hue, Hive etc.. by saying things like 'Alexa, make the living room gold'.

I'm not sure if this is smarthome API stuff, but is setting colours of RGB devices supported/possible using alexadomo?
(Apologies if it's there already, my setup is currently not internet facing, so I'm unable to play around with the skill until I fix that later today :) )
Madgeni
Posts: 1571
Joined: Friday 25 March 2016 17:43
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Amazon Echo to Domoticz Bridge: switches, sensors & more

Post by Madgeni »

Hi - it's there already (but mostly untested) - so if you want to be my guinea pig, please try it out and let me know :)
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
blacksn0w
Posts: 99
Joined: Friday 10 March 2017 22:27
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Germany
Contact:

Re: Amazon Echo to Domoticz Bridge: switches, sensors & more

Post by blacksn0w »

Madgeni wrote:Hi - it's there already (but mostly untested) - so if you want to be my guinea pig, please try it out and let me know :)
Could you add a link to the GitHub Repository to your signature? I've to search for it everytime i come here :D
A post of you will nearly always be on the latest page, so it's easier for me and newbies.

(I know, favorites would do the deal too, but im not a big fan of them :lol: )
Migration done, hello Home Assistant.
Swifty
Posts: 76
Joined: Saturday 31 December 2016 21:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Amazon Echo to Domoticz Bridge: switches, sensors & more

Post by Swifty »

Madgeni wrote:Hi - it's there already (but mostly untested) - so if you want to be my guinea pig, please try it out and let me know :)
Thanks - I hope to get some time to expose domoticz back to the internet later, so I will try this out!

What's the format for the commands, something like 'Alexa, set [lightname] to [basic_colour]' ?

Where basic_colour is something common like red, green, blue etc..

Is there any was this can work with multiselect switches which have levels with the same name? - I have some wifi (Hyperion) RGB lights, which are controlled by multiselect switches - I have a number of levels to choose from in domoticz named, red, green, blue etc..
I had to do it this way, due to the lack of a virtual RGB dimmer in Domoticz that allows you to retrieve the selected colour value.
sach
Posts: 111
Joined: Wednesday 12 October 2016 14:33
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Amazon Echo to Domoticz Bridge: switches, sensors & more

Post by sach »

Hey @madgeni,

I have been using HA-Bridge for some time after attempting to set up alexa_domo and failing miserably.
Having a quiet afternoon at work so decided to try it again and the Skill has discovered devices, so looking forward to going home and testing it out.

All well a beer or 2 will be making its way to you :-)
I see you are from Bromley......I live in Shortlands :-)
Madgeni
Posts: 1571
Joined: Friday 25 March 2016 17:43
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Amazon Echo to Domoticz Bridge: switches, sensors & more

Post by Madgeni »

@swifty - yep, the commands in the Readme on my repo on github (link now in my sig!).

Yay @sach - go Bromley :)

Any Qs, ping me here
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
qwerk
Posts: 222
Joined: Tuesday 22 July 2014 7:21
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Netherlands
Contact:

Re: Amazon Echo to Domoticz Bridge: switches, sensors & more

Post by qwerk »

Hey all,

any progress in getting the temperature reading and setting, going again?
Or am I the only one struggling with this?
sach
Posts: 111
Joined: Wednesday 12 October 2016 14:33
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Amazon Echo to Domoticz Bridge: switches, sensors & more

Post by sach »

No luck with temps here yet either.
Madgeni
Posts: 1571
Joined: Friday 25 March 2016 17:43
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Amazon Echo to Domoticz Bridge: switches, sensors & more

Post by Madgeni »

Set is working fine - gettemp isn't, but i think it's alexa struggling to understand
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
Swifty
Posts: 76
Joined: Saturday 31 December 2016 21:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Amazon Echo to Domoticz Bridge: switches, sensors & more

Post by Swifty »

Madgeni wrote:@swifty - yep, the commands in the Readme on my repo on github (link now in my sig!).
Thanks!

I got around to fixing my DynDNS tonight and tested out.
It doesn't appear to work with the multiselect switches that I mentioned earlier (I was hoping it might map the names or something :) )

My switch is setup like this;
Image

The only way I seem to be able to control it is to tell alexa to set that device to a percentage, which then corresponds to one of the switches levels - however it's not very user friendly, unless I can train the family to remember what levels map to what colour :lol:
Madgeni
Posts: 1571
Joined: Friday 25 March 2016 17:43
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Amazon Echo to Domoticz Bridge: switches, sensors & more

Post by Madgeni »

not good, can't see that passing the wife acceptance factor!

let me put some logging in for you, see if we can capture what's happening :)
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
Madgeni
Posts: 1571
Joined: Friday 25 March 2016 17:43
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Amazon Echo to Domoticz Bridge: switches, sensors & more

Post by Madgeni »

Swifty wrote: It doesn't appear to work with the multiselect switches that I mentioned earlier (I was hoping it might map the names or something :) )

My switch is setup like this;
Image

The only way I seem to be able to control it is to tell alexa to set that device to a percentage, which then corresponds to one of the switches levels - however it's not very user friendly, unless I can train the family to remember what levels map to what colour :lol:
is that standard Domoticz behaviour for those switches?
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
Swifty
Posts: 76
Joined: Saturday 31 December 2016 21:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Amazon Echo to Domoticz Bridge: switches, sensors & more

Post by Swifty »

Not sure to be honest.. i'm not over familar with Domoticz yet, and it's the first one I've setup - but in the GUI when configuring the switch it seems to automatically assign 'levels' in increments of 10;

Image

I'm not sure how the backend bits work, are the colours available hardcoded by amazon ?
If not, and it's possible to get the Domoticz 'name' of the level recognised, rather than the level value - it would be a great way to get generic multi select switches working, eg: 'Alexa, set livingroom media to sky tv' :)
Madgeni
Posts: 1571
Joined: Friday 25 March 2016 17:43
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Amazon Echo to Domoticz Bridge: switches, sensors & more

Post by Madgeni »

hah! I get the feeling i'll need to do some hard-coding for this, which i'm happy to do if it's a common use-case. Are those colours defaults when you create the switch or do you configure them manually?
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
Swifty
Posts: 76
Joined: Saturday 31 December 2016 21:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Amazon Echo to Domoticz Bridge: switches, sensors & more

Post by Swifty »

They are manually set when the switch is created.

If you add the "dummy switch" hardware to domoticz, then just create a new switch of "selector" type you should see something like the screenshot above, just with 3 default levels.

Happy to try anything out for you to grab logs etc. Just let me know!
Thanks for the efforts :)
Madgeni
Posts: 1571
Joined: Friday 25 March 2016 17:43
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Amazon Echo to Domoticz Bridge: switches, sensors & more

Post by Madgeni »

quick update re: Get temp.
This now works IF you have one thermostat - "Alexa, what is the temperature inside" - this seems to currently be a limitation of the smart home skill api. I'll keep chipping away at it, but this seems to be working consistently.
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest