Git Product home page Git Product logo

Comments (9)

KiraPC avatar KiraPC commented on June 24, 2024

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.

from ha-switchbot-remote.

darkner258 avatar darkner258 commented on June 24, 2024

from ha-switchbot-remote.

darkner258 avatar darkner258 commented on June 24, 2024

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

from ha-switchbot-remote.

KiraPC avatar KiraPC commented on June 24, 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

from ha-switchbot-remote.

darkner258 avatar darkner258 commented on June 24, 2024

from ha-switchbot-remote.

darkner258 avatar darkner258 commented on June 24, 2024

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

from ha-switchbot-remote.

KiraPC avatar KiraPC commented on June 24, 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.

from ha-switchbot-remote.

darkner258 avatar darkner258 commented on June 24, 2024

from ha-switchbot-remote.

KiraPC avatar KiraPC commented on June 24, 2024

Ok, no problem.

Happy to be useful!

from ha-switchbot-remote.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.