New Alexa integration with OAuth2 account linking support

Alexa, Google Home and Siri

Moderator: leecollings

Post Reply
dwmw2
Posts: 56
Joined: Thursday 03 December 2015 12:42
Target OS: Linux
Domoticz version:
Contact:

New Alexa integration with OAuth2 account linking support

Post by dwmw2 »

I've been using Madgeni's original alexa_domo code for years, but I've finally been prompted to update it now that the Smart Home APIv2 is being switched off.

At https://github.com/dwmw2/alexa_domo is an almost completely rewritten version, supporting the Smart Home v3 API and a few new devices. It also supports proper account linking with OAuth2. I've added documentation and automation to make it as simple as possible to set up.
dwmw2
Posts: 56
Joined: Thursday 03 December 2015 12:42
Target OS: Linux
Domoticz version:
Contact:

Re: New Alexa integration with OAuth2 account linking support

Post by dwmw2 »

I concluded that this would all work better if it was integrated natively into Domoticz rather than suffering an external translation.
PR: https://github.com/domoticz/domoticz/pull/6423

Docs and some scripting to help users deploy it, https://github.com/dwmw2/domoticz/blob/ ... c/ALEXA.md
User avatar
waltervl
Posts: 6678
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2025.1
Location: NL
Contact:

Re: New Alexa integration with OAuth2 account linking support

Post by waltervl »

Good job! I see the documentation is now on github. When integrated in Domoticz you better document this in the Domoticz wiki. Please request a wiki account at Gizmocuz so you can keep the wiki updated based on your future changes.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
meal
Posts: 113
Joined: Monday 04 March 2019 14:59
Target OS: Raspberry Pi / ODroid
Domoticz version: 2025.2
Location: France
Contact:

Re: New Alexa integration with OAuth2 account linking support

Post by meal »

Hello,

I am currently using Google Home and Google Assistant to vocally control the devices in my domoticz application.

The solution is based on the DZGA-Flask add on ( see https://github.com/DewGew/DZGA-Flask) which uses the OAuth concept.

I have 2 questions:

- Does the PR 6418 which implements a OAuth2 solution have an impact on the DZGA-Flask add on ?

- May I upgrade my Domoticz application safely without side effects on the DZGA-Flask solution ?

BR
meal
meal
Posts: 113
Joined: Monday 04 March 2019 14:59
Target OS: Raspberry Pi / ODroid
Domoticz version: 2025.2
Location: France
Contact:

Re: New Alexa integration with OAuth2 account linking support

Post by meal »

Hello
I have upgraded Domoticz application to version 2025.2 build 16892 and confirm that the ALEXA integration with OAuth2 account linking has no side effect on the DZGA-Flask implementation with OAuth.
BR
meal
User avatar
waltervl
Posts: 6678
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2025.1
Location: NL
Contact:

Re: New Alexa integration with OAuth2 account linking support

Post by waltervl »

dwmw2 wrote: Monday 10 November 2025 22:43 I concluded that this would all work better if it was integrated natively into Domoticz rather than suffering an external translation.
PR: https://github.com/domoticz/domoticz/pull/6423

Docs and some scripting to help users deploy it, https://github.com/dwmw2/domoticz/blob/ ... c/ALEXA.md
I see that it is merged into Domoticz beta!
I do not see any documentation on the wiki yet.... So it will be difficult for other users to use this.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
dwmw2
Posts: 56
Joined: Thursday 03 December 2015 12:42
Target OS: Linux
Domoticz version:
Contact:

Re: New Alexa integration with OAuth2 account linking support

Post by dwmw2 »

User avatar
waltervl
Posts: 6678
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2025.1
Location: NL
Contact:

Re: New Alexa integration with OAuth2 account linking support

Post by waltervl »

dwmw2 wrote: Thursday 11 December 2025 17:47 https://github.com/domoticz/domoticz/bl ... t/ALEXA.md
Smart but that is not the location where this instruction should be. It should be somwhere in the wiki https://wiki.domoticz.com/Main_Page

Please request a wiki account @GizMocuz . I can Copy and paste this md into the wiki but you will have to maintain it....
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
waltervl
Posts: 6678
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2025.1
Location: NL
Contact:

Re: New Alexa integration with OAuth2 account linking support

Post by waltervl »

tada: https://wiki.domoticz.com/Alexa_Smart_Home_Integration
And a link to it on the Alexa wiki page: https://wiki.domoticz.com/Amazon_Echo_(Alexa)

Please keep this one up to date and remove the md in the github source
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
renerene
Posts: 356
Joined: Wednesday 03 August 2016 11:36
Target OS: -
Domoticz version:
Contact:

Re: New Alexa integration with OAuth2 account linking support

Post by renerene »

some beginner questions:
1) where to set the alias name for a device in Domoticz (at the moment only found the option in Alexa)
2) Zwave blinds work, but only full close/open / "blinds % + stop" appear as on/off in Alexa
3) KaKu blinds however work more like a switch, only up/down/stop (=repeat) How to control KaKu blinds with Alexa
tried some different switch types, no luck so far:

Code: Select all

2026-01-16 15:58:16.280 Status: User: alexa stopped blind 779 via Alexa
2026-01-16 15:58:16.356 subtype = Wrong command received from application (0)
2026-01-16 15:58:16.356 Sequence nbr = 155
4) thermostats do not seem to work screenshot). Any tips, special device type required?
5) temperature devices show "oops something went wrong" polar bear

conclusion: only on/off switches seem to work

oh and tip, please add to wiki: "if login goes well on your smartphone, but Alexa can not receive devices but sure to check if you are in Domoticz BETA version 2025 earliest (no alexa sub page)"

Image
https://imgur.com/ostJNgL
User avatar
waltervl
Posts: 6678
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2025.1
Location: NL
Contact:

Re: New Alexa integration with OAuth2 account linking support

Post by waltervl »

The "NOTE: Available from beta 2025.2" that already was on the page has also been added to the troubleshooting section. :)
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
renerene
Posts: 356
Joined: Wednesday 03 August 2016 11:36
Target OS: -
Domoticz version:
Contact:

Re: New Alexa integration with OAuth2 account linking support

Post by renerene »

waltervl wrote: Friday 16 January 2026 16:10 The "NOTE: Available from beta 2025.2" that already was on the page has also been added to the troubleshooting section. :)
i know, but re mention it in the troubleshoot section would have save me some hours ;-)
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest