Switch Bot

I’m trying to figure out the options to have the Switchbot Bot get triggered. Any thoughts around this? I have the same HA setup in a VM with no Bluetooth.

I do have a spare Pi lying around that I could setup to script, but would like it controllable eventually in HA even if it went over MQTT.

Just wondering how you had gotten the ID of the bot that you use within your CURL shell script

@ damonizer
Hi. I am using node.js to control the bot. You can find some info here and how I set it up. You will need an extra rpi at the least for this. I used a rpi zero w.

Hi
i used your code to do the multiple consecutive clicks part for my switchbot but i can’t get it to work

Hey there,

I have also 2 ps of switchbot. I have those intergrated in my Home assistant an i can see the status of my curtains off the are open or closed. So i also intergrated mij BLT MAC in my config, but i stil cant controll mij curtains. When i press open or closed there is nothing happend. Is here somebody how knows what it can be?

Thanks.

Is there any way to still make use of the Hubs Minis to get the data from the Meters or should I just see buying those as a mistake? Do people also sell those ESP32s in some kind of case that doesn’t scare normal people?

I’d not be installing it in a house.

I just bought a switchbot to control my Desi( A turkish brand) door lock with bluetooth.

The bot has easily been detected with the official integration without the need of an hub.

Because my door lock is only bluetooth I have sticked the bot into it to run operations through HA to open the door from outiside.

I have also configured an automation to run directly from telegram so that other people can also open the door lock. İt works perfectly fine. You just have to enter their telegram id into configuration.yaml.

But there is one little problem.

action:
  - service: telegram_bot.send_message
    data_template:
      target: '{{ trigger.event.data.chat_id }}'
      message: Tamam {{ trigger.event.data["from_first"] }}, Sokak kapısı açıldı!
  - type: turn_on
    device_id: 584c23e38e377e02a283a93483e10f32
    entity_id: switch.berko
    domain: switch
  - delay:
      hours: 0
      minutes: 0
      seconds: 1
      milliseconds: 0
  - type: turn_off
    device_id: 584c23e38e377e02a283a93483e10f32
    entity_id: switch.berko
    domain: switch
mode: single

The integration lets you to use on - off and - toggle switchbot bot commands.

As seen in my automation for the action part whenever /door command written to telegram as an action switchbot activates. But with one slight problem. The bot keeps opening unless I give another action to close as you can see in automation.

That is not a big problem because it closes with the second “Turn off” command but I would like to know if there is a way to let the bot run only once in HA ?

Hey @duceduc
Trying to find a way to keep my switchbot alive. Or at least give it a nudge it needs to wake up. Is:

24hr_fan_bot: 'curl -k "http://192.168.1.30:5004/?id=fab50h9b504e&cmd=press"'

A way to do that? What is the ip address and where would i find the id and commands ?

Thanks!

Hey atv,
I have ditched this method awhile back and have gone with this method instead.

The commands are manually inputted and the id is the mac address you can find in the switchbot app under that switchbot device. So for the switchbot bot you will need to add the scan command and have it scan xx minutes. That would keep it awake.