Skip to content
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

Commands not working #27

Closed
ghost opened this issue Nov 24, 2023 · 2 comments
Closed

Commands not working #27

ghost opened this issue Nov 24, 2023 · 2 comments
Labels
invalid This doesn't seem right

Comments

@ghost
Copy link

ghost commented Nov 24, 2023

Hi, I just added the integration and added my custom Buttons just like they are named in the switchbot app but when I try to use said buttons i get this error
image
also I took a screenshot from the Device Info Page in Homeasistant
image and what is weird is that in the app all the names are in Caps Lock and I added them using all caps lock names but in HA they show up as just the first letter Caps idk why and if thats the problem.
Also when I press the Power Button (the icon not the button named Power) it turns my TV on and off but when I call the service MediaPlayer.turnon or off it doesnt work and nothing happens which is really weird I think and that means I cant do any Automations with it.

Could you please help me ?

Regards Jonas

@KiraPC
Copy link
Owner

KiraPC commented Nov 25, 2023

@joshepw can you have a look on this?

@KiraPC
Copy link
Owner

KiraPC commented Nov 28, 2023

Hi @KrOnAsK

I've analyzed your issue but I did not find any defect on the code.

I also tried to replicate your scenario adding a custom remote on the app with all char in upper case,
IMG_7B5D496F6805-1
adding it to the integration,
Screenshot 2023-11-28 alle 16 50 11
and test
Screenshot 2023-11-28 alle 16 49 54
It worked.

I've eventually added a non existing button to the integration and I've received your same error, that is the SwitchBot API response.

So please, check that all of your command are correctly named both app and HA

@KiraPC KiraPC added the invalid This doesn't seem right label Nov 28, 2023
@KiraPC KiraPC closed this as completed Dec 7, 2023
@KiraPC KiraPC mentioned this issue Dec 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

1 participant