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

No this command #29

Closed
darkner258 opened this issue Dec 28, 2023 · 9 comments
Closed

No this command #29

darkner258 opened this issue Dec 28, 2023 · 9 comments

Comments

@darkner258
Copy link

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
Copy link
Owner

KiraPC commented Dec 28, 2023

This is the same issue mentioned in #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
Copy link
Author

darkner258 commented Dec 28, 2023 via email

@darkner258
Copy link
Author

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
Copy link
Owner

KiraPC commented Jan 2, 2024

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
Copy link
Author

darkner258 commented Jan 2, 2024 via email

@darkner258
Copy link
Author

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
Copy link
Owner

KiraPC commented Jan 9, 2024

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
Copy link
Author

darkner258 commented Jan 9, 2024 via email

@KiraPC
Copy link
Owner

KiraPC commented Jan 9, 2024

Ok, no problem.

Happy to be useful!

@KiraPC KiraPC closed this as completed Jan 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants