-
Notifications
You must be signed in to change notification settings - Fork 477
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switch Domain not Working #1455
Comments
What sentence are you using? |
In English, for instance Similar sentences fail the same way, too. |
Is it only for this particular light? Does the problem persist with other lights as well? Is the switch exposed to Assist? |
Tested again with multiple entities.
I found one integration for which the switches work correctly. The switches of at least two other integrations consistently produce the error though.
Yes, all of them were exposed. I guess that part is working fine. If I disable the exposure, the error message changes to
Error still occurs on the latest HA version. |
Same here. Switches do not work with the same error messages as stated by OP. I am on the latest HA version. |
@pako-github could you please paste the log message? |
Sure (they are similar to that of OP). It is a switched to turn on/off my wifi through the Fritz!Box integration. It is exposed to the Assistant with alias "Internet". And the switch is working, if I used it on a dashboard.
|
Can you post a screenshot of the entity settings popup and another one of all the aliases of this entity? |
That's exactly what I wanted to see, but I see nothing wrong with your setup, which doesn't help with troubleshooting. Are all your |
No, other |
OK, after a little testing, it seems like "slow" switches (i.e. switches that are slow to change state because they have to forward a request upstream) manifest this behavior. @Johnson145 can you tell us what |
@tetele You could be right. At least in my case, |
@synesthesiam do you have any ideas here? |
Root cause: home-assistant/architecture#740 |
Is there any work around maybe? |
No, unfortunately |
It looks like I just can't interact with entities of the switch domain. That should work already, shouldn't it? Other domains are working just fine.
Whenever I try to enable or disable a switch, Assist responds with
Furthermore, the log reveals the following:
Tested English and German.
Of course, I also double checked that there is an entity called
Nachtsound
.If I try the same sentence with an actually unknown entity name, Assist instead responds with:
Thus, it actually seems to find the entity, although the log suggests something else.
If I use the new Assist Developer Tool, I get this:
The text was updated successfully, but these errors were encountered: