Replies: 11 comments 1 reply
-
As as first observation Alexa creates a device called "Matterbridge aggregator" of type "Hub". This lists all supported devices and some of their components. There is always one device for the composed device in the devices list of matterbridge. This gets the same name in Alexa as in the name column of the device list in matterbridge. The type of these devices depends on the type of the shelly device and is either "Sonstiges" ("Other") or "Fernbedienung" ("Remote"). Looks like all devices with an input component like switches result in a device of type "Remote", others have the type "Other". All supported components result in additional "Verbundene Geräte" (connected devices) of their "main" device as described above. |
Beta Was this translation helpful? Give feedback.
-
Is frustrating that way I agree with you... |
Beta Was this translation helpful? Give feedback.
-
Do not know, why I see this only now, but disabling exposing input component turns the composed device into on of type "Other". So it seems, that Alexa just gives the first component in the composed device the "real" name and appends all others below this. This gives some hope that being able to disable all components despite the "light" or "switch/outlet" will result in a more usable initial state of the device in Alexa. See https://github.com/Luligu/matterbridge-shelly/issues/97. |
Beta Was this translation helpful? Give feedback.
-
In the last im coding using Alexa to check and this child endpoints name behaviors of Alexa is really uncomfortable 😣 |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I wonder what would happen, if there is just on endpoint with the main component, since if we have an input device, Alexa treats this like a remote control. If there is none, it treats it as "Other". But even disabling all non-primary components does not help yet. I wonder if the "PowerSource" endpoint is still in the way. MY older attempts to remove it codewise ended in the device not to appear in the matterbridge list. Even moving it behind other components did not help (still had the same endpoint number, but was listed later in matterbridge). @Luligu is it possible to make the PowerSource-Endpoint to be disabled as well via component black list? If that is not possible or does not help I see only one remaining chance to male Alexa support easy: Expose every component as single device and do not compose things (if a special configuration flag is set [globally or per device]). This still needs a good naming schema. The main component could be named after the device name in the devices web ui and all others after this name with some more or less useful (configurable) suffix that depends on the component name. |
Beta Was this translation helpful? Give feedback.
-
I will make some test about removing PowerSource via component black list. |
Beta Was this translation helpful? Give feedback.
-
Just tell me if there is something I can try out and I will test it as soon as possible. |
Beta Was this translation helpful? Give feedback.
-
Removing PowerSource works now in the dev-Branches but did not help. This is what I did to check and get more insights:
I now had new endpoints main (id 2) and switch:0 (id 3) for the dimmer and everything as nice and clean as wanted. Now I added everything to alexa:
I now still got an "ohter"-type main device named "Dimmer Gästezimmer" (the name from the web-ui of the shelly-device) and an "Erstes Licht" (first light) secondary device. Next I set exposeInputEvent from disabled to mandatory (kept exposeInput to disabled) in the matterbridge-shelly-config and got the two input components of the dimmer back in the endpoint list with id 4 and 5 in the endpoint list of the device. Than recommisoned again and as previously mentioned alexa now makes the "main" device that gets the name of the shelly device a "Fernbedinung" (remote control) instead of "Ohter" as before. So endpoint id numbering and order in the devices endpoint list in matterbridge both are not the reason why it can pick up a remote control but not the light as first device. Assumption currently is, that it is related to the device type number. The input-endpoints is 0x00f, main is 0x0013 and light is 0x101 in this case. Maybe alexa orders things in a "device" by this number and thus got the input first, second main, than light. If main is first (when input is absence) it exposes it as "other" device. If "main" is second (when output is present) it ignores it but makes "input" its first "device" and "switch" the second? Anyway it does not explain, why it does not show up two "remotes" since the device has two inputs! Maybe it combines them into one (but does not tell me anything about tho buttons yet, needs more investigations) or just ignores the second. Two switches as in a ShellyPlus2PM get presented as two devices (if the device is configured that way and not as a shutter device). |
Beta Was this translation helpful? Give feedback.
-
Hi, There the default for new setups creates a very simple device suitable for Alexa. Also introduced the expert mode in the config and refactored the config removing the duplicated list/select options as we said. So will be a major release. |
Beta Was this translation helpful? Give feedback.
-
Hi, but simple config still triggers the same configuration needs in alexa to get things running. The colorbulbs expose two light components now in simple mode? pls. check those again. do not know if this was just some dirt on alexa or caused by the new version of the plugin. |
Beta Was this translation helpful? Give feedback.
-
The idea of this discussion is to collect information about how Alexa deals with matterbridge-shelly devices to make better decisions on how to improve the plugin to better support it.
Beta Was this translation helpful? Give feedback.
All reactions