Neue Beta: Gerätesuche und Aktionen

Es gibt ein Update der Beta. Darin kommt nun analog zum Update von Alexa die Gerätesuche und ein Umbau der Szenen. Szenen rufen nun nicht mehr zwangsweise Skripte auf, sondern führen eine beliebige Aktion aus.

Ich bin auf euer Feedback gespannt!

Thanks for the new beta. I’ve changed several scenes from script to action. One action doesn’t seem to work, however. The same action called by script works as expected. The action is of the type „Group Control“. The highlighted scenes work when being activated using a Google Assistant voice command, the scenes in red don’t work when being activated using a Google Assistant voice command.

The PHP Script (which is the same as the Group Control action):

<?php
//Start writing your code here
RequestAction(26475, 2);
?>

I’m not sure this is an issue with the new beta, or with Google Home/Assistant. A household member has incorrect Scenes, they are different from the household creator (owner). It looks like they’re not updated.


Dennis

Could you open the Debug Log of the Assistant and then try to trigger the Group Control scene? Then, some debug info should appear. If you could download that and send it to me via PM (or just post here), I could take a look what is going on.

I don’t think there is much we can do if different scenes are shown for different household members. When the module returns the current devices (including scenes) it does so independently of the household member. I think there is either an issue with the Assistant or the configuration.

Hi @Dr.Niels ,
I’ve opened a debug log, and now it works as expected. :roll_eyes:
Yesterday I tried the same action multiple times, all failing. Today I do the same, and it works. Great! :grinning:

The different scenes available to household members seems to be an ongoing story for a few years now, with no solution in sight. There has been a change (made by Google) how scenes are handled, and since then these problems are prevalent. If a household member enables VoiceMatch it’s even worse.

Thanks!

Another question, all my Eltako dimmers are recognized as a normal Light Switch when using device search. Is this expected behaviour?

The device search is implemented such that it rather finds too much than too less. The search depends on the used variables. A variable with a ~Switch profile is interpreted as light switch, a variable with an ~Intensity.X profile as dimmer. If an instance has both, it is also offered as expert light.

Is your dimmer only detected as regular switch or is it also found in the other light categories? If it is not found within the other categories, what profile does the dimmer variable use?

Thanks for your reply.

The instance uses 2 variables, „Status“, which uses profile „~switch“, and „Intensity“, which uses profile „~intensity.100“. The instance is offered as „Light (Switch)“ and „Generic Switch“.
There is one light offered as „Light (Dimmer)“, but that one is using the variable „Brightness“ which uses profile „~intensity.100“ (Twinkly).



That sounds like it should be offered as Light (Dimmer) and Light (Expert) as well… Could you send me your settings.json via PM? Then I can double check why it is not properly detected.

Thanks for the settings! I realized that you already have the intensity variable implemented in your Google Assistant as Light (Dimmer). The device search only considers variables that are not used yet. Thus, it only considered the Status variable.

1 „Gefällt mir“

Now I get it, device search only shows variables I haven’t configured before manually, when device search didn’t exist. That makes sense.

Hello,

I’ve moved all my dimactors in Google Assistant from „Light (Dimmer)“ to „Light (Expert)“. Now the correct variables, Status and Intensity, are used. However, when I dim the light using a voice command I get the dreaded „Sorry, I couldn’t reach ‚device ‘ right now. Try again later.“. The commands are executed successfully and I can’t find anything strange in the debug log:

TXT: 01/23/2022, 10:12:57 PM |              Request | {"inputs":[{"context":{"locale_country":"NL","locale_language":"nl"},"intent":"action.devices.EXECUTE","payload":{"commands":[{"devices":[{"id":"50"}],"execution":[{"command":"action.devices.commands.BrightnessAbsolute","params":{"brightness":80}}]}]}}],"requestId":"9583846068750923033"}
HEX: 01/23/2022, 10:12:57 PM |              Request | 7B 22 69 6E 70 75 74 73 22 3A 5B 7B 22 63 6F 6E 74 65 78 74 22 3A 7B 22 6C 6F 63 61 6C 65 5F 63 6F 75 6E 74 72 79 22 3A 22 4E 4C 22 2C 22 6C 6F 63 61 6C 65 5F 6C 61 6E 67 75 61 67 65 22 3A 22 6E 6C 22 7D 2C 22 69 6E 74 65 6E 74 22 3A 22 61 63 74 69 6F 6E 2E 64 65 76 69 63 65 73 2E 45 58 45 43 55 54 45 22 2C 22 70 61 79 6C 6F 61 64 22 3A 7B 22 63 6F 6D 6D 61 6E 64 73 22 3A 5B 7B 22 64 65 76 69 63 65 73 22 3A 5B 7B 22 69 64 22 3A 22 35 30 22 7D 5D 2C 22 65 78 65 63 75 74 69 6F 6E 22 3A 5B 7B 22 63 6F 6D 6D 61 6E 64 22 3A 22 61 63 74 69 6F 6E 2E 64 65 76 69 63 65 73 2E 63 6F 6D 6D 61 6E 64 73 2E 42 72 69 67 68 74 6E 65 73 73 41 62 73 6F 6C 75 74 65 22 2C 22 70 61 72 61 6D 73 22 3A 7B 22 62 72 69 67 68 74 6E 65 73 73 22 3A 38 30 7D 7D 5D 7D 5D 7D 7D 5D 2C 22 72 65 71 75 65 73 74 49 64 22 3A 22 39 35 38 33 38 34 36 30 36 38 37 35 30 39 32 33 30 33 33 22 7D 
TXT: 01/23/2022, 10:12:57 PM |         Execute - ID | 50
HEX: 01/23/2022, 10:12:57 PM |         Execute - ID | 35 30 
TXT: 01/23/2022, 10:12:57 PM |    Execute - Command | action.devices.commands.BrightnessAbsolute
HEX: 01/23/2022, 10:12:57 PM |    Execute - Command | 61 63 74 69 6F 6E 2E 64 65 76 69 63 65 73 2E 63 6F 6D 6D 61 6E 64 73 2E 42 72 69 67 68 74 6E 65 73 73 41 62 73 6F 6C 75 74 65 
TXT: 01/23/2022, 10:12:57 PM |     Execute - Params | {"brightness":80}
HEX: 01/23/2022, 10:12:57 PM |     Execute - Params | 7B 22 62 72 69 67 68 74 6E 65 73 73 22 3A 38 30 7D 
TXT: 01/23/2022, 10:12:57 PM |              Results | [{"ids":[50],"status":"SUCCESS","states":{"brightness":80,"online":true}}]
HEX: 01/23/2022, 10:12:57 PM |              Results | 5B 7B 22 69 64 73 22 3A 5B 35 30 5D 2C 22 73 74 61 74 75 73 22 3A 22 53 55 43 43 45 53 53 22 2C 22 73 74 61 74 65 73 22 3A 7B 22 62 72 69 67 68 74 6E 65 73 73 22 3A 38 30 2C 22 6F 6E 6C 69 6E 65 22 3A 74 72 75 65 7D 7D 5D 
TXT: 01/23/2022, 10:12:57 PM |             Response | {"requestId":"9583846068750923033","payload":{"commands":[{"ids":[50],"status":"SUCCESS","states":{"brightness":80,"online":true}}]}}
HEX: 01/23/2022, 10:12:57 PM |             Response | 7B 22 72 65 71 75 65 73 74 49 64 22 3A 22 39 35 38 33 38 34 36 30 36 38 37 35 30 39 32 33 30 33 33 22 2C 22 70 61 79 6C 6F 61 64 22 3A 7B 22 63 6F 6D 6D 61 6E 64 73 22 3A 5B 7B 22 69 64 73 22 3A 5B 35 30 5D 2C 22 73 74 61 74 75 73 22 3A 22 53 55 43 43 45 53 53 22 2C 22 73 74 61 74 65 73 22 3A 7B 22 62 72 69 67 68 74 6E 65 73 73 22 3A 38 30 2C 22 6F 6E 6C 69 6E 65 22 3A 74 72 75 65 7D 7D 5D 7D 7D 
TXT: 01/23/2022, 10:12:58 PM |               States | {"50":{"on":true,"brightness":80,"online":true}}
HEX: 01/23/2022, 10:12:58 PM |               States | 7B 22 35 30 22 3A 7B 22 6F 6E 22 3A 74 72 75 65 2C 22 62 72 69 67 68 74 6E 65 73 73 22 3A 38 30 2C 22 6F 6E 6C 69 6E 65 22 3A 74 72 75 65 7D 7D 
TXT: 01/23/2022, 10:13:07 PM |              Request | {"inputs":[{"context":{"locale_country":"NL","locale_language":"nl"},"intent":"action.devices.EXECUTE","payload":{"commands":[{"devices":[{"id":"50"}],"execution":[{"command":"action.devices.commands.BrightnessAbsolute","params":{"brightness":30}}]}]}}],"requestId":"16498880901190599226"}
HEX: 01/23/2022, 10:13:07 PM |              Request | 7B 22 69 6E 70 75 74 73 22 3A 5B 7B 22 63 6F 6E 74 65 78 74 22 3A 7B 22 6C 6F 63 61 6C 65 5F 63 6F 75 6E 74 72 79 22 3A 22 4E 4C 22 2C 22 6C 6F 63 61 6C 65 5F 6C 61 6E 67 75 61 67 65 22 3A 22 6E 6C 22 7D 2C 22 69 6E 74 65 6E 74 22 3A 22 61 63 74 69 6F 6E 2E 64 65 76 69 63 65 73 2E 45 58 45 43 55 54 45 22 2C 22 70 61 79 6C 6F 61 64 22 3A 7B 22 63 6F 6D 6D 61 6E 64 73 22 3A 5B 7B 22 64 65 76 69 63 65 73 22 3A 5B 7B 22 69 64 22 3A 22 35 30 22 7D 5D 2C 22 65 78 65 63 75 74 69 6F 6E 22 3A 5B 7B 22 63 6F 6D 6D 61 6E 64 22 3A 22 61 63 74 69 6F 6E 2E 64 65 76 69 63 65 73 2E 63 6F 6D 6D 61 6E 64 73 2E 42 72 69 67 68 74 6E 65 73 73 41 62 73 6F 6C 75 74 65 22 2C 22 70 61 72 61 6D 73 22 3A 7B 22 62 72 69 67 68 74 6E 65 73 73 22 3A 33 30 7D 7D 5D 7D 5D 7D 7D 5D 2C 22 72 65 71 75 65 73 74 49 64 22 3A 22 31 36 34 39 38 38 38 30 39 30 31 31 39 30 35 39 39 32 32 36 22 7D 
TXT: 01/23/2022, 10:13:07 PM |         Execute - ID | 50
HEX: 01/23/2022, 10:13:07 PM |         Execute - ID | 35 30 
TXT: 01/23/2022, 10:13:07 PM |    Execute - Command | action.devices.commands.BrightnessAbsolute
HEX: 01/23/2022, 10:13:07 PM |    Execute - Command | 61 63 74 69 6F 6E 2E 64 65 76 69 63 65 73 2E 63 6F 6D 6D 61 6E 64 73 2E 42 72 69 67 68 74 6E 65 73 73 41 62 73 6F 6C 75 74 65 
TXT: 01/23/2022, 10:13:07 PM |     Execute - Params | {"brightness":30}
HEX: 01/23/2022, 10:13:07 PM |     Execute - Params | 7B 22 62 72 69 67 68 74 6E 65 73 73 22 3A 33 30 7D 
TXT: 01/23/2022, 10:13:07 PM |              Results | [{"ids":[50],"status":"SUCCESS","states":{"brightness":30,"online":true}}]
HEX: 01/23/2022, 10:13:07 PM |              Results | 5B 7B 22 69 64 73 22 3A 5B 35 30 5D 2C 22 73 74 61 74 75 73 22 3A 22 53 55 43 43 45 53 53 22 2C 22 73 74 61 74 65 73 22 3A 7B 22 62 72 69 67 68 74 6E 65 73 73 22 3A 33 30 2C 22 6F 6E 6C 69 6E 65 22 3A 74 72 75 65 7D 7D 5D 
TXT: 01/23/2022, 10:13:07 PM |             Response | {"requestId":"16498880901190599226","payload":{"commands":[{"ids":[50],"status":"SUCCESS","states":{"brightness":30,"online":true}}]}}
HEX: 01/23/2022, 10:13:07 PM |             Response | 7B 22 72 65 71 75 65 73 74 49 64 22 3A 22 31 36 34 39 38 38 38 30 39 30 31 31 39 30 35 39 39 32 32 36 22 2C 22 70 61 79 6C 6F 61 64 22 3A 7B 22 63 6F 6D 6D 61 6E 64 73 22 3A 5B 7B 22 69 64 73 22 3A 5B 35 30 5D 2C 22 73 74 61 74 75 73 22 3A 22 53 55 43 43 45 53 53 22 2C 22 73 74 61 74 65 73 22 3A 7B 22 62 72 69 67 68 74 6E 65 73 73 22 3A 33 30 2C 22 6F 6E 6C 69 6E 65 22 3A 74 72 75 65 7D 7D 5D 7D 7D 
TXT: 01/23/2022, 10:13:08 PM |               States | {"50":{"on":true,"brightness":30,"online":true}}
HEX: 01/23/2022, 10:13:08 PM |               States | 7B 22 35 30 22 3A 7B 22 6F 6E 22 3A 74 72 75 65 2C 22 62 72 69 67 68 74 6E 65 73 73 22 3A 33 30 2C 22 6F 6E 6C 69 6E 65 22 3A 74 72 75 65 7D 7D 

Actions executed by the Google Home app (dim/on/off) behave as expected. I guess that in theory these are the same actions as the actions executed by voice commands?

The response looks correct to me. I’ll try to reproduce the error but I don’t really have an Assistant available right now…

If I can do anything to assist, please let me know.

Just to be sure I destroyed my „house“ in Google Home, and recreated everything. That didn’t make a difference.

After moving Google Assistant from Symcon to Home Assistant I don’t receive the „Sorry, I couldn’t reach ‚device‘ right now. Try again later.“ error message in Google Assistant anymore. Home Assistant uses MQTT (using the Symcon MQTT broker) to relay state/command to Symcon. (EnOcean support in Home Assistant is severely lacking where EnOcean support in Symcon is good.)