- Code: Select all
Added features / changes in v7.138.533@ 2021-07-10
===================================================
1. added support for several switchbot devices
- 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 direct 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
- only o/c/p are needed (not open close pause and the commands are case neutral)
- 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
ssh pi@ip#
echo '{"mac":mac#,"onOff":"1/0"}' > temp/switchbot.cmd
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
These devices all send and receive bluetooth messages. The RPI's will be talking bluetooth with them and send / receive commands/ status from to indigo
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
Karl