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 »

afraid it's necessary for 2 good reasons:
1) it's slightly more secure - depends on the cert you use
2) I currently don't handle http requests, which kills Controlicz dead - it's on my list to fix asap :)
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 »

super easy to configure:
go here: /etc/init.d/domoticz.sh

double check this line exists (should be there by default now):
DAEMON_ARGS="$DAEMON_ARGS -sslwww 443" <-maybe change the port number to a higher number, then fix your port forwarding on your router. Restart Domoticz - update Controlicz
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 »

any further Controlicz talk - can we put it here? viewtopic.php?f=21&t=16670

Thanks
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
rickwilleme
Posts: 53
Joined: Wednesday 16 December 2015 15:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.6792
Location: Landgraaf, The Netherlands
Contact:

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

Post by rickwilleme »

Hi Madgeni,

Original post at here
rickwilleme wrote:Hey guys,

It's Friday evening, so got myself some coding time.
Managed to install the Alexa - Domoticz integration (https://github.com/madgeni/alexa_domo) and it's actually working pretty well!
Only weird thing I notice is that I'm missing my ZWave dimmers in the discovered devices. Still able to control them with a scene, so got myself a workaround.

Any clue if I should do something special with my ZWave dimmers to get them discovered?

Thanks,
Rick
Madgeni wrote:Hi Rick - the alexa-domo integration thread is here:
viewtopic.php?f=38&t=9446

I'd need some more detail on the dimmers, to tweak the discovery. In that thread can you give me detail on their Type/Subtype etc from Domoticz?
The type is Light/Switch and the subtype is Switch.

Thanks for looking into this!

Regards,
Rick
Raspberry Pi ~ Fibaro Dimmer (Z-Wave) ~ Several KAKU switches and dimmers (433 MHz) ~ Amazon Echo ~ Somfy RTS ~ Sony TV ~ Kodi/XBMC ~ Essent E-Thermostaat (ICY) ~ Cresta thermostat ~ Wundermap Weather ~ Smoke detectors
User avatar
remb0
Posts: 499
Joined: Thursday 11 July 2013 22:21
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: The Netherlands
Contact:

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

Post by remb0 »

it works!
borcon
Posts: 20
Joined: Thursday 05 January 2017 11:15
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Contact:

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

Post by borcon »

Hey madgeni,
some smarthome skills like Philips Hue have the scenes in the scene section in alexa not in devices.
Are there differences or only for better view?

I would like to control my color hue lights with domoticz.
Switch on or off works in alexa but i can't set colors.

Any ideas?

Thanks
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 there - as far as i can tell, it's cosmetic - i will take a look tho, as it would make it 'neater'

Yes, colours should/were working, so will take another look. I'll do them for Controlicz first..
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 »

rickwilleme wrote:Hi Madgeni,

Original post at here

The type is Light/Switch and the subtype is Switch.

Thanks for looking into this!

Regards,
Rick

Hi - not sure why they aren't being discovered - both type and subtype are standard. Is there anything in your logs? I'm assuming they are in Room Plans.

I saw your note about Controlicz on the FB page - not sure what you mean about testing? It's worth noting that these two are essentially the same ( i should know ;-) ) - also you say you've built your own skill, is this using my code?
Controlicz will probably be updated more rapidly, and obviously, relies on no/little effort on your side!
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
Scoobydoo
Posts: 54
Joined: Tuesday 16 July 2013 12:20
Target OS: -
Domoticz version:
Contact:

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

Post by Scoobydoo »

Issues with the wesbite, cant access the website or discover anything at the moment. Seems to be down?.
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 »

Doh - sorry it's back - User error - was doing some testing.
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
ressof
Posts: 60
Joined: Thursday 20 April 2017 7:20
Target OS: Linux
Domoticz version: Latest
Contact:

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

Post by ressof »

Hi

Just wondering if there are any differences between the manual install and the 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 »

no effort to Controlicz (apart from registering) - and i'll be updating Controlicz with functionality in future (As and when it comes to Alexa)
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
FrankCGN
Posts: 5
Joined: Thursday 29 December 2016 12:49
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Contact:

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

Post by FrankCGN »

Hi
I have noticed that Alexa meanwhile understands the commands "up" and "down" respectively "open" and "close" in blinds. Unfortunately the blinds are closed with "open" and vice versa.
Is there any way to change that and if so, how?
I use 433Mhz blinds over an RFXCOM - RFXtrx433 on a Raspi 3
Raspberry 3 - RaZberry2 Module - RFXtrx433E - Domoticz beta
Z-Wave: Popp Smoke Detector, Fibaro Motion Sensor, Fibaro Wall Plug, Popp Wall Plug
RFXtrx433E: Bresser Temp.+Hygro Sensor, rohrmotor24 RMF Blindmotor
Other: AVM Fritz!DECT200
stingone
Posts: 48
Joined: Monday 26 October 2015 16:28
Target OS: -
Domoticz version:
Contact:

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

Post by stingone »

Hopefully someone can help me. i did a reinstall of domoticz / raspian. system is working. Alexa is also discovering the devices in the homeplan however when im giving alexa a command it says that the device is not being found.....
stingone
Posts: 48
Joined: Monday 26 October 2015 16:28
Target OS: -
Domoticz version:
Contact:

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

Post by stingone »

Stange.... seems there was a bug in the description of the device name alexa_name: i removed and added the device and now its working :)
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 »

weird! glad it's working :)
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
chal
Posts: 3
Joined: Monday 02 October 2017 14:08
Target OS: -
Domoticz version:
Contact:

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

Post by chal »

First of all thank you for your work.

I tried to setup the skill it discovers the devices in my alexa app but when i try to switch something alexa says that the device is currently not available or in German "reagiert gerade nicht".

when i run a test in lambda i get this:

Code: Select all

START RequestId: 770c26c8-a765-11e7-9b8a-3116929d30f8 Version: $LATEST
2017-10-02T11:33:15.291Z	770c26c8-a765-11e7-9b8a-3116929d30f8	https://xxxx:[email protected]:60900/json.htm?type=command&idx=140&param=switchlight&switchcmd=Off
2017-10-02T11:33:16.189Z	770c26c8-a765-11e7-9b8a-3116929d30f8	SyntaxError: Unexpected token <
    at Object.parse (native)
    at Request._callback (/var/task/node_modules/domoticz-api/api/domoticz.js:94:58)
    at Request.self.callback (/var/task/node_modules/domoticz-api/node_modules/request/request.js:200:22)
    at emitTwo (events.js:87:13)
    at Request.emit (events.js:172:7)
    at Request.<anonymous> (/var/task/node_modules/domoticz-api/node_modules/request/request.js:1067:10)
    at emitOne (events.js:82:20)
    at Request.emit (events.js:169:7)
    at IncomingMessage.<anonymous> (/var/task/node_modules/domoticz-api/node_modules/request/request.js:988:12)
    at emitNone (events.js:72:20)
END RequestId: 770c26c8-a765-11e7-9b8a-3116929d30f8
REPORT RequestId: 770c26c8-a765-11e7-9b8a-3116929d30f8	Duration: 1439.27 ms	Billed Duration: 1500 ms 	Memory Size: 128 MB	Max Memory Used: 37 MB	
RequestId: 770c26c8-a765-11e7-9b8a-3116929d30f8 Process exited before completing request
The Test:

Code: Select all

{
"header": {
"messageId": "01ebf625-0b89-4c4d-b3aa-32340e894688",
"name": "TurnOffRequest",
"namespace": "Alexa.ConnectedHome.Control",
"payloadVersion": "2"
},
"payload": {
"accessToken": "123",
"appliance": {
"additionalApplianceDetails": {
"switchis": "On/Off",
"WhatAmI": "light"
},
"applianceId": "140"
}
}
}
also tried to setup it from scratch but same problem
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 »

can you just double check the conf.json file for formatting?
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
hayman
Posts: 66
Joined: Tuesday 15 March 2016 18:08
Target OS: NAS (Synology & others)
Domoticz version: 3.8153
Location: Nerthland
Contact:

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

Post by hayman »

hallo,
im using domoticz on my synology and ive forword the port 8443 ,try to singup but not working i get error on the website ...?
please help .....
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 »

weird, website is up, and i've just registered a test account fine
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