KiraPC / ha-switchbot-remote

A Custom HomeAssistant Integration to control Switchbot Hub
MIT License
54 stars 3 forks source link

Commands not working #27

Closed ghost closed 11 months ago

ghost commented 12 months ago

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 commented 12 months ago

@joshepw can you have a look on this?

KiraPC commented 12 months ago

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