I’m trying to set this up following the instructions here
I’m technically minded with a professional software background but very new to HA and Switchbot. I’ve needed to setup MQTT for the first time to support this integration. I can publish and receive messages on a topic in the MQTT Configure screen so that does seem to be working.
However, installing this Switchbot add-on doesn’t work. In the Web UI starting any of the services immediately goes to ‘Failed’ and trying to discover devices returns no data (at least in the UI)
I’ve obtained and verified the Switchbot API key and secret using a JavaScript signing utility and Postman.
In the instructions it says to add:
SwitchBot:
ApiBaseUrl: https://api.switch-bot.com/v1.1/
ApiKey: my-key
ApiSecret: my-secret
I assume this is in `configuration.yaml` ?
In `configuration.yaml` I also have this:
```yaml
Mqtt:
AutoConfig: true
Host: ""
Port: 1883
Id: "mqtt-user"
Pw: "my-password"
Tls: false
and I created a user in HA with that username and the password. (I’ve also tried without Id
and Pw
)
However, when using the API via Postman I’m required to sign the request and add a timestamp field to the header. My assumption is that the Add On should do this automatically but that was something I wanted to check as there’s an article here that suggests this needs to be manual. However, I’ve tried this approach and it doesn’t return any devices, so maybe not.
If I check the Configuration in Developer Tools I get the error:
Integration error: SwitchBot - Integration 'SwitchBot' not found.
Integration error: Mqtt - Integration 'Mqtt' not found.
I’m using Version: 1.0.33 with HA:
Core: 2025.2.4
Supervisor: 2025.02.1
Operating System: 14.2
Frontend: 20250214.0
Any ideas or pointers greatly appreciated!