Page 1 of 1

Alexa Additional feature request for Multiroom Groups

Posted: 23 Dec 2018 15:24
by micky1500
Alexa "Groups" do not work with devices on my z-way.
Alexa App is not returning a "Device Type" during Discovery.

Device type: Other is showing in the Alexa app on my phone for most devices.
For Alexa "Groups" to work it needs a type.
This is for people with multiple Echo's. Can go into a room and say "Alexa turn on lights" and it will turn on the lights in that room only.

I have tried a temporary fix that works, but this fix assumes every "switchMultilevel" is a light.
Added the line and restarted z-way
Then did a "Discover" in Alexa webpage



---
/opt/z-way-server/automation/userModules/Alexa/index.js
At line 1250 i added "appliance.applianceTypes.push("LIGHT");"

case "switchMultilevel":
appliance.actions.push("turnOn", "turnOff", "setPercentage", "incrementPercentage", "decrementPercentage");
appliance.applianceTypes.push("LIGHT");
break;
---

Re: Alexa Additional feature request for Multiroom Groups

Posted: 21 Feb 2020 22:23
by micky1500
Over a year later.
Still Alexa Rooms don't work.

Now Alexa app version 1.1.0
settings got lost after upgrade, file now dated 02/02/2020. Reapplied fix, 4 lines added.(updated, will only amend lights)
\\PI-4\PiShare\opt\z-way-server\automation\modules\Alexa\index.js

line 1198:
switch(vDev.get("deviceType")) {
case "switchBinary":
appliance.actions.push("turnOn", "turnOff");
if (_.contains(["Light"], vDev.get("metrics:title"))) { //Added May 2020 - Check for word "Light" in description
appliance.applianceTypes.push("LIGHT"); } //Added May 2020 - Set Device type for Alexa Discovery
break;
case "switchMultilevel":
appliance.actions.push("turnOn", "turnOff", "setPercentage", "incrementPercentage", "decrementPercentage");
if (_.contains(["Light"], vDev.get("metrics:title"))) { //Added May 2020 - Check for word "Light" in description
appliance.applianceTypes.push("LIGHT"); } //Added May 2020 - Set Device type for Alexa Discovery
break;

Re: Alexa Additional feature request for Multiroom Groups

Posted: 06 May 2020 20:33
by micky1500
My old fix only worked for dimmable lights.
I've done an update, which now means it will check and only Tell Alexa about devices with the Device name "Light"
Multiroom works now for Multilevel and Binary types.

Although after an upgrade of z-way, the fix will need to be applied again.

Re: Alexa Additional feature request for Multiroom Groups

Posted: 22 May 2020 10:49
by Jayceon55
Kartar Globetrac 5036 Tractor: Guys here I will talk about the Kartar Globetrac 5036 Tractor Price, Performance, Attachments, Specification and more so follow our post and get details regarding Kartar Globetrac 5036 Tractor in a single page.
https://tractorsinfo.net/kartar-globetr ... ification/

Re: Alexa Additional feature request for Multiroom Groups

Posted: 25 May 2020 09:21
by notyboya
Thanks for sharing this information. I really like your post very much. You have really shared an informative and interesting post with people.. https://onlinesurvey.onl/