KiraPC / ha-switchbot-remote

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

No this command #29

Closed darkner258 closed 10 months ago

darkner258 commented 11 months ago

Hi there, I'm not sure what I did wrong. I named the buttons exactly as they are in the SB app, but I get the No this command error. Any ideas? image

KiraPC commented 11 months ago

This is the same issue mentioned in https://github.com/KiraPC/ha-switchbot-remote/issues/27

This errore message is given by the switchbot api, but idk why you're receiving it.

I'll try to release a new version with some other verbose logs and ask you later a report. Please wait for this.

darkner258 commented 11 months ago

Sure, please let me know when the update is out and I’ll send you the logs. Thanks!

On Thu 28. 12. 2023 at 19:53, Kira @.***> wrote:

This is the same issue mentioned in #27 https://github.com/KiraPC/ha-switchbot-remote/issues/27

This errore message is given by the switchbot api, but idk why you're receiving it.

I'll try to release a new version with some other verbose logs and ask you later a report. Please wait for this.

— Reply to this email directly, view it on GitHub https://github.com/KiraPC/ha-switchbot-remote/issues/29#issuecomment-1871415767, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZKVEUNC6LSBMY3OZ2GBDATYLW5ZJAVCNFSM6AAAAABBFZGAKGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZRGQYTKNZWG4 . You are receiving this because you authored the thread.Message ID: @.***>

darkner258 commented 10 months ago

Hello @KiraPC I have a debug log available, could that be of any help? I did a fresh config of the integration, but still getting the same error. I'm trying the SOURCE button

KiraPC commented 10 months ago

Hi @darkner258 I've release the package 1.1.2. Please install it and make some test with working and not working devices.

Then attach the log.

Please remember to enable debug for switchbotremote integration adding this piece in your configuration.yaml

logger:
  default: info
  logs:
    custom_components.switchbotremote: debug
darkner258 commented 10 months ago

Will do on the weekend when I get back home and I’ll get back to you, thanks!

On Tue 2. 1. 2024 at 11:07, Kira @.***> wrote:

Hi @darkner258 https://github.com/darkner258 I've release the package 1.1.2. Please install it and make some test with working and not working devices.

Then attach the log.

Please remember to enable debug for switchbotremote integration adding this piece in your configuration.yaml

logger: default: info logs: custom_components.switchbotremote: debug

— Reply to this email directly, view it on GitHub https://github.com/KiraPC/ha-switchbot-remote/issues/29#issuecomment-1873825455, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZKVEUMCDUVF4YYEKHNCIO3YMPL7JAVCNFSM6AAAAABBFZGAKGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZTHAZDKNBVGU . You are receiving this because you were mentioned.Message ID: @.***>

darkner258 commented 10 months ago

Hey @KiraPC , so sorry it took so long. Here is the log. I started by sending a few volume down and up commands taht worked followed by the SOURCE command, that did not. The log is attached home-assistant_switchbotremote_2024-01-09T11-56-33.212Z.log

KiraPC commented 10 months ago

Hi, no problem.

As I guessed, from switchbot the SOURCE command do not exists on the device 02-202306031517-21702508

2024-01-09 12:51:24.515 DEBUG (SyncWorker_6) [custom_components.switchbotremote.client.remote] Sending command SOURCE
2024-01-09 12:51:24.516 DEBUG (SyncWorker_6) [custom_components.switchbotremote.client.remote] Command payload {'commandType': 'customize', 'command': 'SOURCE', 'parameter': 'default'}
2024-01-09 12:51:24.517 DEBUG (SyncWorker_6) [custom_components.switchbotremote.client.client] Calling service https://api.switch-bot.com/v1.1/devices/02-202306031517-21702508/commands
2024-01-09 12:51:25.180 DEBUG (SyncWorker_6) [custom_components.switchbotremote.client.client] Received error in response {'status_code': 160, 'body': {}, 'message': 'No this command'}

The request is sent correctly by the component. Maybe there is some space or bad char in the name you give to the button on the switchbot app.

darkner258 commented 10 months ago

Well that lead me to creating a custom button on the remote with a whole different name, which worked! Thanks for the help and pointing me in the right direction :)

On Tue, Jan 9, 2024 at 1:00 PM Kira @.***> wrote:

Hi, no problem.

As I guessed, from switchbot the SOURCE command do not exists on the device 02-202306031517-21702508

2024-01-09 12:51:24.515 DEBUG (SyncWorker_6) [custom_components.switchbotremote.client.remote] Sending command SOURCE 2024-01-09 12:51:24.516 DEBUG (SyncWorker_6) [custom_components.switchbotremote.client.remote] Command payload {'commandType': 'customize', 'command': 'SOURCE', 'parameter': 'default'} 2024-01-09 12:51:24.517 DEBUG (SyncWorker_6) [custom_components.switchbotremote.client.client] Calling service https://api.switch-bot.com/v1.1/devices/02-202306031517-21702508/commands 2024-01-09 https://api.switch-bot.com/v1.1/devices/02-202306031517-21702508/commands2024-01-09 12:51:25.180 DEBUG (SyncWorker_6) [custom_components.switchbotremote.client.client] Received error in response {'status_code': 160, 'body': {}, 'message': 'No this command'}

The request is sent correctly by the component. Maybe there is some space or bad char in the name you give to the button on the switchbot app.

— Reply to this email directly, view it on GitHub https://github.com/KiraPC/ha-switchbot-remote/issues/29#issuecomment-1882943191, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZKVEUIXRJQECDQ66GO2PMDYNUWLVAVCNFSM6AAAAABBFZGAKGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBSHE2DGMJZGE . You are receiving this because you were mentioned.Message ID: @.***>

KiraPC commented 10 months ago

Ok, no problem.

Happy to be useful!