static bool ledOnBootScan = true; // Turn on LED during initial boot scan
static bool ledOnScan = true; // Turn on LED while scanning (non-boot)
static bool ledOnCommand = true; // Turn on LED while command is processing
Got my 2 curtain bots working today on V1.5, far more responsive now and working great in the lounge.
I had problems getting the position sensor setup for bot location within HA, ended up using template Sharktamer supplied added to Duceducâs sensor.yaml.
Any ideas on a sensor template for battery levels? Iâm a bit of a amateur at scripting.
Awesome! Battery level into HA would be amazing.
Battery longevity on curtain bots is uncertain, be nice to monitor levels especially as there pushing/pulling a heavy load.
For the moment I still use the API as money always goes somewhere else than domotic but as API does not provide battery status and Switchbot is not enough reactive about API suggestions as soon as it will be OK I will use ESP for my meters.
On HA Developer tools I call the service with {"id":"switchbotone","value":"press"} but nothing happens and I get an error
websocket_api script: Error executing script. Invalid data for call_service at pos 1: value should be a string for dictionary value @ data['payload_template']
EDIT: I missed single quote on the payload â{âidâ:âswitchbotoneâ,âvalueâ:âpressâ}â. It works now
Hey there, I must be missing something⌠this doesnât generate any new entity⌠did I misunderstood?
I have the node-red mentioned on this threat up and running. I only own for now a Switchbot Bot.
Also I have a small question. I wanna get the curtain ones. I will most likely need 2 of them for 1 window. How do you setup for the combo? You set it as combo on the app first?
Also I have a small question. I wanna get the curtain ones. I will most likely need 2 of them for 1 window. How do you setup for the combo? You set it as combo on the app first?
Yes, it will be configure within the app. Once done, find out which of the 2 mac addresses the app is using for the master and input that mac in the esp32 setting.
Thanks a lot for your hard work and fast delivery. v2.0 working like a charm!
One small thing. I have a BOT in press mode⌠that pushes a regualr on/off button on my pool water heater. Itâs perfectly working. I jsut wanted to avoid creating an extra input_boolean in HA to keep status of ON/OFF state of my pool water heater. Since this entity generated by MQTT acts just as a switch it will go ON for a second and back off⌠so I canât keep track of the real status of my heater. Any solution for this?
Also is it intended that you got rid of the botScanTime for switchbotone?
When a bot is in switch mode it knows the state, when a bot is in press mode, the state according to the bot never changes
the code currently will return state OFF when in press mode, so you canât use that
I have my coffee maker also on a zwave plug. This way I can turn the power on and it will always start in the same mode. Maybe you can do something similar. Can you monitor the power draw?
or with another esp device you could look at the power led using a light sensor
It is not something easy do without other hardware because the press has no idea of the state and it wouldnât be 100% reliable
When you say itâs not reliable 100%. the esp32 and the switchbot comunicates both ways no?
Doesnât the ESP32 received a confirmation from the Bot saying it completed itâs task? Because if yes, I can jsut create another input_boolean and some Node-red.
Also one last thing, not a big deal by the way, the Curtain position saysâs 1% on home assistant and on the switchbot app says 99%, somehow they are reversed. Like I said not a big deal, depens on how you see it 1% open or 99% closed.