Alexicz - FREE Domoticz to Alexa Integration

Alexa, Google Home and Siri

Moderator: leecollings

Damsee
Posts: 58
Joined: Thursday 20 April 2017 1:17
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Location: France
Contact:

Re: Alexicz - FREE Domoticz to Alexa Integration

Post by Damsee »

Both requests (friendlyname and dimmer options) are merged in the GIT : https://github.com/rimram31/dz_smarthome
I didn't notice any issue but feel free to comment and give your feedbacks of you're using those features :D
RPI3 Raspbian Buster + Domoticz v2020.1 stable + RFXtrx433E + Z-Stick Gen5 + Amazon Echo (alexicz)
x5 THGN810 / x5 ZMNHJD1 / x2 Flood sensor FGFS101 / x1 Smoke sensor FGSD002
x1 ZMNHAD1 / x2 FGS213 / x3 Wallplug FGWPE/F / NodOn Soft remote CRC-3-6-0
satanasinc
Posts: 41
Joined: Monday 19 October 2015 12:15
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.9700
Location: Spain
Contact:

Re: Alexicz - FREE Domoticz to Alexa Integration

Post by satanasinc »

Hi!

One question.
In order to update to the last version can i overwrite in AWS the 2 *.py (AlexaSmartHome.py and DomoticzHandler.py) files?
Or i need to redo all the process?

Thank you in advance and happy new year!
User avatar
philchillbill
Posts: 396
Joined: Monday 12 September 2016 13:47
Target OS: Linux
Domoticz version: beta
Location: Eindhoven. NL
Contact:

Re: Alexicz - FREE Domoticz to Alexa Integration

Post by philchillbill »

Just update the py files into a zip and in the console upload the new zip and you’re good to go !


Sent from my iPhone using Tapatalk
Alexa skills author: EvoControl, Statereport, MediaServer, LMS-lite
satanasinc
Posts: 41
Joined: Monday 19 October 2015 12:15
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.9700
Location: Spain
Contact:

Re: Alexicz - FREE Domoticz to Alexa Integration

Post by satanasinc »

philchillbill wrote: Friday 04 January 2019 14:29 Just update the py files into a zip and in the console upload the new zip and you’re good to go !


Sent from my iPhone using Tapatalk
Hi!

Thank you, updated.

Greetings from spain and happy new year!
Damsee
Posts: 58
Joined: Thursday 20 April 2017 1:17
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Location: France
Contact:

Re: Alexicz - FREE Domoticz to Alexa Integration

Post by Damsee »

You can also edit the 2 py files with copy/paste the content of each file instead the zip file upload process.

:)
RPI3 Raspbian Buster + Domoticz v2020.1 stable + RFXtrx433E + Z-Stick Gen5 + Amazon Echo (alexicz)
x5 THGN810 / x5 ZMNHJD1 / x2 Flood sensor FGFS101 / x1 Smoke sensor FGSD002
x1 ZMNHAD1 / x2 FGS213 / x3 Wallplug FGWPE/F / NodOn Soft remote CRC-3-6-0
satanasinc
Posts: 41
Joined: Monday 19 October 2015 12:15
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.9700
Location: Spain
Contact:

Re: Alexicz - FREE Domoticz to Alexa Integration

Post by satanasinc »

Hello again!

Yesterday suddenly my Alexa stops saying the temperatures. It says "its not compatible with that".

Someone has this problem too or is my installation.

Thanks for your help.

Greetings from Spain.
mvzut
Posts: 443
Joined: Thursday 12 November 2015 10:55
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: Alexicz - FREE Domoticz to Alexa Integration

Post by mvzut »

I think I have the same! I says "doesn't support that"... Used to work very well. Did Amazon make a change in the framework again?
Raspberry Pi 4 - RFXtrx433 - CC2531 Zigbee - Opentherm Gateway - P1 smart meter - Netatmo - Philips Hue - ELV Max! - ESP8266 DIY water meter - 6 x Sonos - 4 x IP cameras - Wall mounted tablet + Dashticz - Google Home integration - MANY switches/sensors
rimram31
Posts: 26
Joined: Sunday 04 October 2015 11:25
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: France
Contact:

Re: Alexicz - FREE Domoticz to Alexa Integration

Post by rimram31 »

Bad news, I'm not at home but I will check this week-end.
Damsee
Posts: 58
Joined: Thursday 20 April 2017 1:17
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Location: France
Contact:

Re: Alexicz - FREE Domoticz to Alexa Integration

Post by Damsee »

Viewed your messages this morning and had a quick test => same result "doesn't support that..."

@Rimrim : i checked the code from AWS
> Sensor is returning the following :

Code: Select all

{
  "event": {
    "header": {
      "namespace": "Alexa",
      "name": "StateReport",
      "messageId": "466ca121-f501-4e52-a401-5a111ed05db8",
      "payloadVersion": "3",
      "correlationToken": "abcdef-123456"
    },
    "payload": {},
    "endpoint": {
      "endpointId": "TemperatureSensor-6",
      "cookie": {},
      "scope": {
        "type": "BearerToken",
        "token": "access-token-from-skill"
      }
    }
  },
  "context": {
    "properties": [
      {
        "name": "temperature",
        "namespace": "Alexa.TemperatureSensor",
        "value": {
          "value": 20.6,
          "scale": "CELSIUS"
        }
      }
    ]
  }
}
According Amazon documentation which seems to NO CHANGE for 1 year, we should have the following :

Code: Select all

{
  "context": {
    "properties": [ {
      "namespace": "Alexa.TemperatureSensor",
      "name": "temperature",
      "value": {
        "value": 24.0,
        "scale": "CELSIUS"
      },
      "timeOfSample": "2017-02-03T16:20:50.52Z",
      "uncertaintyInMilliseconds": 1000
    } ]
  },
  "event": {
    "header": {
      "namespace": "Alexa",
      "name": "StateReport",
      "payloadVersion": "3",
      "messageId": "5f8a426e-01e4-4cc9-8b79-65f8bd0fd8a4",
      "correlationToken": "dFMb0z+PgpgdDmluhJ1LddFvSqZ/jCc8ptlAKulUj90jSqg=="
    },
    "endpoint": {
      "endpointId": "appliance-001"
    },
    "payload": {}
  }
}
We should try to add the following in the lambda function :
"timeOfSample": "2017-02-03T16:20:50.52Z",
"uncertaintyInMilliseconds": 1000

I won't be home this WE too for further checks...
RPI3 Raspbian Buster + Domoticz v2020.1 stable + RFXtrx433E + Z-Stick Gen5 + Amazon Echo (alexicz)
x5 THGN810 / x5 ZMNHJD1 / x2 Flood sensor FGFS101 / x1 Smoke sensor FGSD002
x1 ZMNHAD1 / x2 FGS213 / x3 Wallplug FGWPE/F / NodOn Soft remote CRC-3-6-0
satanasinc
Posts: 41
Joined: Monday 19 October 2015 12:15
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.9700
Location: Spain
Contact:

Re: Alexicz - FREE Domoticz to Alexa Integration

Post by satanasinc »

Hi!

Thank you people for your answers.
Maybe I'll go back as it's gone.

Regards
levynger
Posts: 87
Joined: Wednesday 21 December 2016 19:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Israel
Contact:

Re: Alexicz - FREE Domoticz to Alexa Integration

Post by levynger »

i have created te skill following up the well written document.
however when i try to discover - testing through the lambda i get timeout error.
the json requires User/Pass which was set int he config, however it doesnt seems to be used with the get request.. (?)

any ideas?

Code: Select all

START RequestId: ebb09fcd-79f6-44ac-bcbc-a8a6ac8b7536 Version: $LATEST
Domoticz API call %s http://levynger************.com:8080/json.htm?type=devices&used=true
END RequestId: ebb09fcd-79f6-44ac-bcbc-a8a6ac8b7536
REPORT RequestId: ebb09fcd-79f6-44ac-bcbc-a8a6ac8b7536	Duration: 3004.27 ms	Billed Duration: 3000 ms 	Memory Size: 128 MB	Max Memory Used: 23 MB	
2019-01-11T10:34:46.645Z ebb09fcd-79f6-44ac-bcbc-a8a6ac8b7536 Task timed out after 3.00 seconds
satanasinc
Posts: 41
Joined: Monday 19 October 2015 12:15
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.9700
Location: Spain
Contact:

Re: Alexicz - FREE Domoticz to Alexa Integration

Post by satanasinc »

Hi!

I think it must to be a https:// connection not http://. Check your domoticz config.

Check your router port forwarding to domoticz from a web browser.

Regards
rimram31
Posts: 26
Joined: Sunday 04 October 2015 11:25
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: France
Contact:

Re: Alexicz - FREE Domoticz to Alexa Integration

Post by rimram31 »

Damsee wrote: Friday 11 January 2019 10:23 Viewed your messages this morning and had a quick test => same result "doesn't support that..."

@Rimrim : i checked the code from AWS...
Thanks for the analysis, but I'm afraid that a "doesn't support that..." is a discovery issue/missing rather than a state report one. I've already encounter such answer developing the skill, usually a state report error, Alexa answer "i don't understand"' " or "hum ... a problem occured" ...

Alexa Smart Home API is not always clear on what is or not mandatory. I've also installed a skill based on Home Assistant Smart Home implementation (the one I've vamped :-) => https://github.com/rimram31/alexa_smarthome) I hope I will be able to compare.
Damsee
Posts: 58
Joined: Thursday 20 April 2017 1:17
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Location: France
Contact:

Re: Alexicz - FREE Domoticz to Alexa Integration

Post by Damsee »

Quick note about temperature sensors :
> Vocal commands with Echo still don't work
> Temperatures are available through the Alexa APP from the smartphone

The skill is still working but something goes wrong with vocal commands...
RPI3 Raspbian Buster + Domoticz v2020.1 stable + RFXtrx433E + Z-Stick Gen5 + Amazon Echo (alexicz)
x5 THGN810 / x5 ZMNHJD1 / x2 Flood sensor FGFS101 / x1 Smoke sensor FGSD002
x1 ZMNHAD1 / x2 FGS213 / x3 Wallplug FGWPE/F / NodOn Soft remote CRC-3-6-0
mvzut
Posts: 443
Joined: Thursday 12 November 2015 10:55
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: Alexicz - FREE Domoticz to Alexa Integration

Post by mvzut »

Damsee wrote: Friday 11 January 2019 14:23 Quick note about temperature sensors :
> Vocal commands with Echo still don't work
> Temperatures are available through the Alexa APP from the smartphone

The skill is still working but something goes wrong with vocal commands...
Exactly the same here
Raspberry Pi 4 - RFXtrx433 - CC2531 Zigbee - Opentherm Gateway - P1 smart meter - Netatmo - Philips Hue - ELV Max! - ESP8266 DIY water meter - 6 x Sonos - 4 x IP cameras - Wall mounted tablet + Dashticz - Google Home integration - MANY switches/sensors
rimram31
Posts: 26
Joined: Sunday 04 October 2015 11:25
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: France
Contact:

Re: Alexicz - FREE Domoticz to Alexa Integration

Post by rimram31 »

Damsee wrote: Friday 11 January 2019 10:23 Viewed your messages this morning and had a quick test => same result "doesn't support that..."
...
Good news, it seems you were right Damsee, I've add timeOfSample and uncertaintyInMilliseconds and it works!

This is updated on github, please update and give your feedback if this is ok for you (for those who make some changes, there is only two lines changed near line 139 of AlexaSmartHome.py source, check last commit git history)

I've first test with home assistant and it's no more working too, thanks Damsee.
satanasinc
Posts: 41
Joined: Monday 19 October 2015 12:15
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.9700
Location: Spain
Contact:

Re: Alexicz - FREE Domoticz to Alexa Integration

Post by satanasinc »

rimram31 wrote: Friday 11 January 2019 18:58
Damsee wrote: Friday 11 January 2019 10:23 Viewed your messages this morning and had a quick test => same result "doesn't support that..."
...
Good news, it seems you were right Damsee, I've add timeOfSample and uncertaintyInMilliseconds and it works!

This is updated on github, please update and give your feedback if this is ok for you (for those who make some changes, there is only two lines changed near line 139 of AlexaSmartHome.py source, check last commit git history)

I've first test with home assistant and it's no more working too, thanks Damsee.
Hi

It works great! Thanks and good job.

Regards
rimram31
Posts: 26
Joined: Sunday 04 October 2015 11:25
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: France
Contact:

Re: Alexicz - FREE Domoticz to Alexa Integration

Post by rimram31 »

Fine.

I've also accept a pull request on github which keep the brigthness of a light and convert Kelvin to RGB to control a light. I'm not controlling lights with domoticz at home, I'm unable to make some tests. If this break something, please give me your feedback here.
satanasinc
Posts: 41
Joined: Monday 19 October 2015 12:15
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.9700
Location: Spain
Contact:

Re: Alexicz - FREE Domoticz to Alexa Integration

Post by satanasinc »

rimram31 wrote: Saturday 12 January 2019 9:05 Fine.

I've also accept a pull request on github which keep the brigthness of a light and convert Kelvin to RGB to control a light. I'm not controlling lights with domoticz at home, I'm unable to make some tests. If this break something, please give me your feedback here.
Hi

Voice command to Alexa in Spanish and here is my log.

2019-01-12 13:09:56.676 Status: setkelvinlevel: t: 30.000000, color: '{m: 2, RGB: 000000, CWWW: b24d, CT: 77}'

I think it works fine.

Regards
mvzut
Posts: 443
Joined: Thursday 12 November 2015 10:55
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: Alexicz - FREE Domoticz to Alexa Integration

Post by mvzut »

rimram31 wrote:
Damsee wrote: Friday 11 January 2019 10:23 Viewed your messages this morning and had a quick test => same result "doesn't support that..."
...
Good news, it seems you were right Damsee, I've add timeOfSample and uncertaintyInMilliseconds and it works!

This is updated on github, please update and give your feedback if this is ok for you (for those who make some changes, there is only two lines changed near line 139 of AlexaSmartHome.py source, check last commit git history)

I've first test with home assistant and it's no more working too, thanks Damsee.
Works perfect again, thanks!!!
Raspberry Pi 4 - RFXtrx433 - CC2531 Zigbee - Opentherm Gateway - P1 smart meter - Netatmo - Philips Hue - ELV Max! - ESP8266 DIY water meter - 6 x Sonos - 4 x IP cameras - Wall mounted tablet + Dashticz - Google Home integration - MANY switches/sensors
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest