Page 3 of 17

Re: Alexicz - FREE Domoticz to Alexa Integration

Posted: Sunday 30 December 2018 15:13
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

Re: Alexicz - FREE Domoticz to Alexa Integration

Posted: Friday 04 January 2019 14:11
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!

Re: Alexicz - FREE Domoticz to Alexa Integration

Posted: Friday 04 January 2019 14:29
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

Re: Alexicz - FREE Domoticz to Alexa Integration

Posted: Friday 04 January 2019 21:31
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!

Re: Alexicz - FREE Domoticz to Alexa Integration

Posted: Friday 04 January 2019 23:41
by Damsee
You can also edit the 2 py files with copy/paste the content of each file instead the zip file upload process.

:)

Re: Alexicz - FREE Domoticz to Alexa Integration

Posted: Friday 11 January 2019 7:54
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.

Re: Alexicz - FREE Domoticz to Alexa Integration

Posted: Friday 11 January 2019 9:17
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?

Re: Alexicz - FREE Domoticz to Alexa Integration

Posted: Friday 11 January 2019 9:45
by rimram31
Bad news, I'm not at home but I will check this week-end.

Re: Alexicz - FREE Domoticz to Alexa Integration

Posted: Friday 11 January 2019 10:23
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...

Re: Alexicz - FREE Domoticz to Alexa Integration

Posted: Friday 11 January 2019 10:53
by satanasinc
Hi!

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

Regards

Re: Alexicz - FREE Domoticz to Alexa Integration

Posted: Friday 11 January 2019 11:41
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

Re: Alexicz - FREE Domoticz to Alexa Integration

Posted: Friday 11 January 2019 12:20
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

Re: Alexicz - FREE Domoticz to Alexa Integration

Posted: Friday 11 January 2019 12:54
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.

Re: Alexicz - FREE Domoticz to Alexa Integration

Posted: Friday 11 January 2019 14:23
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...

Re: Alexicz - FREE Domoticz to Alexa Integration

Posted: Friday 11 January 2019 17:57
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

Re: Alexicz - FREE Domoticz to Alexa Integration

Posted: Friday 11 January 2019 18:58
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.

Re: Alexicz - FREE Domoticz to Alexa Integration

Posted: Friday 11 January 2019 20:32
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

Re: Alexicz - FREE Domoticz to Alexa Integration

Posted: Saturday 12 January 2019 9:05
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.

Re: Alexicz - FREE Domoticz to Alexa Integration

Posted: Saturday 12 January 2019 13:11
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

Re: Alexicz - FREE Domoticz to Alexa Integration

Posted: Saturday 12 January 2019 21:13
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!!!