New Alexa integration with OAuth2 account linking support
Moderator: leecollings
New Alexa integration with OAuth2 account linking support
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.
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.
Re: New Alexa integration with OAuth2 account linking support
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
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
- 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
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
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
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
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
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
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
- 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
I see that it is merged into Domoticz beta!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 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
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
- 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
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
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
- 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
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
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
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Re: New Alexa integration with OAuth2 account linking support
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:
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)"

https://imgur.com/ostJNgL
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 = 1555) 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)"
https://imgur.com/ostJNgL
- 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
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
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Re: New Alexa integration with OAuth2 account linking support
i know, but re mention it in the troubleshoot section would have save me some hourswaltervl 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.![]()
Who is online
Users browsing this forum: No registered users and 1 guest