Currently in ALPHA
Smart Home hub & control panel written using JS, MQTT and React.
-
Clone repo && cd:
git clone https://github.com/CyanoFresh/sh cd sh -
Install deps
-
production:
npm ci -
dev:
npm i
-
-
Copy (if dev) and configure env variables:
cp .env.example .env
-
If needed configure & build the frontend (in
./frontendfolder)
user/{ID} - state of all items
-
switch/{ID}- switch current state -
switch/{ID}/set- change switch state:{ "state": true } -
switch/{ID}/toggle- toggle switch current state
-
variable/{ID}- current value:24.6 -
variable/{ID}/set- update value [TODO]
-
rgb/{ID}- current state -
rgb/{ID}/set- update state. Example:{ "mode": "color", "red": 255, "green": 255, "blue": 255 }{ "mode": "rainbow" }
-
buzzer/{ID}/unlock- unlock command -
buzzer/{ID}/ringing- ringing event (sent from device)trueor:
false -
buzzer/{ID}/unlocked- unlocked event (sent from device)
-
plant/{ID}- current state{ "moisture": 80 }config update scenario:
{ "minMoisture": 80, "duration": 2 }can be combined
-
plant/{ID}/water- water command -
plant/{ID}/watered- watered event