Controlicz - Easy Domoticz to Alexa Integration

Alexa, Google Home and Siri
User avatar
heggink
Posts: 331
Joined: Tuesday 08 September 2015 21:44
Target OS: Raspberry Pi
Domoticz version: V3.7067
Location: NL
Contact:

Re: Easy Domoticz to Alexa Integration

Post by heggink » Thursday 02 November 2017 23:15

Swifty wrote:Ah OK, well thanks for the info.. Hopefully they will release for UK soon, as it will make things much slicker.

I don't really get why they do the whole feature release thing in US months before anywhere else..
Simple: imagine us Europeans getting the same at the same time, then they would no longer have the advantage. That would be unfair...
Pi3, latest beta
RFXCOM, z-wave (AEOTEC, switches, temhum, pir, contacts),
Plugwise2py, P1 'smart'meter & solar panel
Alexa, Wifi Cams motion detection
ESP: relays, PIR & Temp/TempHum
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest

Madgeni
Posts: 616
Joined: Friday 25 March 2016 18:43
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Easy Domoticz to Alexa Integration

Post by Madgeni » Friday 03 November 2017 0:09

out of interest - which version of the app are people using? i've got android v2.2.191.12
Like Controlicz? Want to help keep the lights on? https://paypal.me/madgeni :)

Native Alexa skill - register at http://www.controlicz.com

User avatar
blacksn0w
Posts: 111
Joined: Friday 10 March 2017 23:27
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Germany
Contact:

Re: Easy Domoticz to Alexa Integration

Post by blacksn0w » Friday 03 November 2017 0:18

I was driving into this, because my new (and first) Echo arrived.
After setting up the most possible secure environment (cert, fail2ban, iptables) and configuring Controlicz im amazed of the easy functionality and the perfectly working skill!

The "Device Group" feature is working aswell, so i've created a group "Wohnzimmer" (Living Room) within the Alexa App and put all the devices in this room in there. If i say "Wohnzimmer An" (Living Room On) all of my devices in are powered on.
Absolutely great!

Review and donation is coming tomorrow!
This post was made with ♥ in Cologne. Raspberry Pi 3B (with SSD), Aeotec Z-Stick Gen5, RFLink R48, MiHome

Swifty
Posts: 80
Joined: Saturday 31 December 2016 22:03
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Easy Domoticz to Alexa Integration

Post by Swifty » Friday 03 November 2017 15:29

tCan't check my version at the moment, but it updated about two days ago to include new look smart home section.. will double check the version when I get home.

Not sure if people are aware, but there is also a new feature in the app (that actually works in Europe!) called 'Routines'

From here, you can configure a bunch of actions for specific phrases / times etc.. eg; when you say 'Alexa, Good Morning' you can have it read you the news, weather, turn on the kettle etc...
And 'Alexa, Good Night' could turn off all (or some) of your devices - looks like it could be useful for the smart home scenario!

Madgeni
Posts: 616
Joined: Friday 25 March 2016 18:43
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Easy Domoticz to Alexa Integration

Post by Madgeni » Friday 03 November 2017 15:34

Yep -
just checked these, and with the new version of Controlicz, this works :)
So you can create a new routine - "Alexa, i'm home" - then add in devices, or Scenes which will then trigger. "Alexa, it's Movie Night" etc.

Cool!
Like Controlicz? Want to help keep the lights on? https://paypal.me/madgeni :)

Native Alexa skill - register at http://www.controlicz.com

Swifty
Posts: 80
Joined: Saturday 31 December 2016 22:03
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Easy Domoticz to Alexa Integration

Post by Swifty » Saturday 04 November 2017 0:54


Madgeni
Posts: 616
Joined: Friday 25 March 2016 18:43
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Easy Domoticz to Alexa Integration

Post by Madgeni » Saturday 04 November 2017 1:30

cool - just need to get the new version tested for release
Like Controlicz? Want to help keep the lights on? https://paypal.me/madgeni :)

Native Alexa skill - register at http://www.controlicz.com

sach
Posts: 87
Joined: Wednesday 12 October 2016 14:33
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Easy Domoticz to Alexa Integration

Post by sach » Saturday 04 November 2017 3:32

I'm happy to help test if required mate.

Just a reminder guys....Madgeni has created this awesome skill in his own personal time and has invested in hosting for controlicz....so if you haven't contributed to his efforts already, please do so.
Thanks

Sach

User avatar
blacksn0w
Posts: 111
Joined: Friday 10 March 2017 23:27
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Germany
Contact:

Re: Easy Domoticz to Alexa Integration

Post by blacksn0w » Sunday 05 November 2017 16:29

Madgeni wrote:
Friday 03 November 2017 0:09
out of interest - which version of the app are people using? i've got android v2.2.191.12
Same version here.
This post was made with ♥ in Cologne. Raspberry Pi 3B (with SSD), Aeotec Z-Stick Gen5, RFLink R48, MiHome

IDANIT
Posts: 58
Joined: Saturday 07 November 2015 11:01
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Poland
Contact:

Re: Controlicz - Easy Domoticz to Alexa Integration

Post by IDANIT » Tuesday 07 November 2017 17:40

Does this new feature works fully with Controlicz? Coz I have strange problem, all "Turn Off" actions works perfect, but not even one "Turn On" action happened. I got simple On/Off switches (Z-Wave, ESP and RF433) but after "Turn On XXXX to 100% percentage" on Domoticz my On/Off switches are set to 99%, but no physical action whatsoever.
Domoticz (1).png
Domoticz (1).png (38.39 KiB) Viewed 356 times
Both are exactly the same switches, left one is triggered by "Routine" but light are still off and right is triggered "by hand" light are on as it should.

Madgeni
Posts: 616
Joined: Friday 25 March 2016 18:43
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Controlicz - Easy Domoticz to Alexa Integration

Post by Madgeni » Tuesday 07 November 2017 18:05

Hi, you're all still running on the current version - so nothing should have changed :(

so i'm clear:
'Turn on xxx to 100%' sets the state in Domoticz, but doesn't actually control the light?
Does 'Turn on xxx' work on it's own?

Thanks
Like Controlicz? Want to help keep the lights on? https://paypal.me/madgeni :)

Native Alexa skill - register at http://www.controlicz.com

julianmclean
Posts: 15
Joined: Wednesday 08 October 2014 21:52
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Controlicz - Easy Domoticz to Alexa Integration

Post by julianmclean » Tuesday 07 November 2017 18:32

@IDANIT I’m experiencing something similar. Lots of dummy state switches which seem to be interpreted as lights in Alexa via Controlicz. In the Alexa app, you have the option to set level OR set on/off in the device view, but under Routines the view is combined and so it always seems to send “set level 100%” rather than “turn on” resulting in the switch not toggling.

Not sure if there is a different way of setting up the switch in Domoticz so it gets interpreted differently, or if Controlicz can present to Alexa as a different type perhaps?

IDANIT
Posts: 58
Joined: Saturday 07 November 2015 11:01
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Poland
Contact:

Re: Controlicz - Easy Domoticz to Alexa Integration

Post by IDANIT » Tuesday 07 November 2017 18:52

Well, when I say Alexa, Switch on Kitchen One (Kuchnia Mały), domoticz switches light on and set it to On (Wł.)
When I make an Routine in Alexa App, called let say "Alexa, Dinner" with action "Turn On Kitchen One to 100% percentage" and I say "Alexa, Dinner" domoticz sets Kitchen One (Kuchnia Mały) to 99% not to On (Wł.) and did not turn light on. Wrong behavior.

When I make an Routine in Alexa App, called let say "Alexa, Good Night" with action "Turn Off Kitchen One to 0% percentage" and I say "Alexa, Good Night" domoticz sets Kitchen One (Kuchnia Mały) to Off and turn light off. Expected behavior.

All "Off" actions works fine, all "On" actions, do not work at all.

IDANIT
Posts: 58
Joined: Saturday 07 November 2015 11:01
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Poland
Contact:

Re: Controlicz - Easy Domoticz to Alexa Integration

Post by IDANIT » Tuesday 07 November 2017 18:56

julianmclean wrote:
Tuesday 07 November 2017 18:32
but under Routines the view is combined and so it always seems to send “set level 100%” rather than “turn on” resulting in the switch not toggling.
Sure, but all "Off" action are also set level to 0% but domoticz switches them off not setting to 0%

Madgeni
Posts: 616
Joined: Friday 25 March 2016 18:43
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Controlicz - Easy Domoticz to Alexa Integration

Post by Madgeni » Tuesday 07 November 2017 19:49

so this is to do with Routines?

I'll do some testing
Like Controlicz? Want to help keep the lights on? https://paypal.me/madgeni :)

Native Alexa skill - register at http://www.controlicz.com

User avatar
blacksn0w
Posts: 111
Joined: Friday 10 March 2017 23:27
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Germany
Contact:

Re: Controlicz - Easy Domoticz to Alexa Integration

Post by blacksn0w » Tuesday 07 November 2017 20:51

Would it be possible to add the idx to the Skill? There is the Settings per Device in the Alexa App where you can see if it is a dummy or zwave device and so on. I've changed some names and have similiar devices and now i cannot recognize my devices anymore :D
This post was made with ♥ in Cologne. Raspberry Pi 3B (with SSD), Aeotec Z-Stick Gen5, RFLink R48, MiHome

julianmclean
Posts: 15
Joined: Wednesday 08 October 2014 21:52
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Controlicz - Easy Domoticz to Alexa Integration

Post by julianmclean » Tuesday 07 November 2017 23:07

Madgeni wrote:
Tuesday 07 November 2017 19:49
so this is to do with Routines?

I'll do some testing
Yes and possibly no...

When I look in the Alexa app and examine the Type of each device, I can see the following:

Nest shows up as a “Thermostat”
Sonos devices show up as “Other”
ALL Domoticz devices show up as “Light”, irrespective of whether thy are:
- Real dimmable lights (LWRF in my house via RFXCOM)
- Real switches (LWRF sockets in my house)
- Dummy on/off switches
- Dummy push on switches
- Selector switches

My *guess* is that Alexa treats all these devices the same in terms of functionality. On the devices view, you get button options to turn on/off or set brightness to Min/20/40/60/80/Max. Slightly strangely, when setting up routines though, the view presented to decide the action to take on that devices is totally different, with a slider for 1-100. You can also tap the on/off state, but visually this just toggles the percentage between 0 and the last place you left it on the slider. So I suspect that the routines functionality cannot currently sent explicit on/off but just 0-100 set level instead.

So, either this is just basic first round routines functionality in Alexa that we’re stuck with for now, and there is no way to do explicit/simple on/off. Or, possibly the device types that Alexa is getting via Controlicz could be tweaked to get that functionality.

Let me know if you need logs from Domoticz for what it sees when routines fire vs. manual device changes.

Madgeni
Posts: 616
Joined: Friday 25 March 2016 18:43
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Controlicz - Easy Domoticz to Alexa Integration

Post by Madgeni » Tuesday 07 November 2017 23:14

ok, so i'll need some time to investigate Routines more thoroughly - however, the new version of Controlicz (based on the new Amazon Smart Home API) provides the correct image - you will be able to drive this from Domoticz (from the Switch Icon).

Until now, the images were irrelevant, as the voice controls are based on the data I provide. However, routines clearly have to derive information from somewhere, so presumably are basing it on the type of device (based on the displayCategory at the point of discovery).

P.S if Routines are handling on/off for lights via the 0-100 rather than on/off, that's a pain, as it's a different call for Domoticz - more work for me :)
Like Controlicz? Want to help keep the lights on? https://paypal.me/madgeni :)

Native Alexa skill - register at http://www.controlicz.com

joshmosh
Posts: 28
Joined: Monday 06 April 2015 7:01
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Controlicz - Easy Domoticz to Alexa Integration

Post by joshmosh » Wednesday 08 November 2017 7:38

Routines seem to be still a little buggy (on the Alexa side). As Madgeni mentioned above, all switches are handled as 0 ... 100 %, which (for my taste) is silly. On top of that, I cannot set such a "switch" neither to 0 % (lowest is 1 %) nor to 100 % (highest is 99 %). Same homework for Amazon to do ...

In addition, Rules in their current state are not so useful (at least for me). My morning "routine" is:

- "Alexa, shades up"
- "Alexa, good morning" -> this very brief summary is just perfect for me
- "Alexa, my update"
- "Alexa, play tunein" -> switch on my favourite radio station

One Rule for this ("Alexa, good morning" for example, or any other phrase) would be fine, but this does not work (yet). The list of things you can do with rules is currenntly very limited - not much use for me. Let's hope that this will improve.

At least we can say: Controlicz rules ! ;-)

Cheers
Josh

User avatar
blacksn0w
Posts: 111
Joined: Friday 10 March 2017 23:27
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Germany
Contact:

Re: Controlicz - Easy Domoticz to Alexa Integration

Post by blacksn0w » Wednesday 08 November 2017 11:39

Another question: I want to delete some switches from Controlicz, so i've revoked access for them to the controlicz user and deleted the device from the Room Plan. But after a new search of devices, it is stil in the list in the Alexa App.
This post was made with ♥ in Cologne. Raspberry Pi 3B (with SSD), Aeotec Z-Stick Gen5, RFLink R48, MiHome

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests