here the list of all supported switchbot devices
- They all support battery level states
- They all benefit from having "brother" devices - the beacons device types for each one besides the sensor/ output devs in indigo.
- They expose mac number and battery level etc. They share that info with the output devices
For the output devices: curtain & bot you need an extra BLE dongle besides the internal bluetooth
not supported is the humidifier, may be in winter when I need one. Now a de-humidifier would make sense
- indigo sensor dev: temperature + humidity, populates states: temperature, humidity, battery,..
- indigo sensor dev: contact, populates states: onoff, last open, short open, long open, light, button press count ..
- indigo sensor dev: motion, populates states: onoff, last motion, light, ...
- indigo dimmer dev: curtain, you can set mode : slow, fast, and set position of the device between 0/100 = open/closed
a curtain can be operated with an ssh command, eg through iPhone shortcut
- ssh pi@ip#
echo '{"mac":mac#,"pos":"0...100"}' > temp/switchbot.cmd (for absolute position)
echo '{"mac":mac#,"pos":"open"}' > temp/switchbot.cmd (for moving to open )
echo '{"mac":mac#,"pos":"close"}' > temp/switchbot.cmd (for moving to close)
echo '{"mac":mac#,"pos":"pause"}' > temp/switchbot.cmd (for stopping any move) - indigo relay dev: bot, you can set modes up/down/ inverse, and send on/ off (down / up) commands
- a bot can be operated with an ssh command, eg through iPhone shortcut
echo '{"mac":mac#,"onOff":"1/0"}' > temp/switchbot.cmd
then you can switch the bot on/off through the plugin or through you iPhone remotely w a shortcut
You need a block of wood broad enough to hold the bot. Attach the bot to the wood as shown with a double sticky tape
Then put a double sticky tape on the bottom of the flat side of the wood and adjust to the top of the mac mini so that it presses the button when it is set to on.
Set the "hold" time for the bot to 4 seconds. That allows it to turn the mac off (you need to press and hold for 4 secs) as well as restart it = switch it on.
Karl