rc-gateway/gateway/README.md

57 lines
1.0 KiB
Markdown

# A gateway for 433 MHz devices
It uses [rc_switch](https://github.com/sui77/rc-switch) library for controlling wall sockets.
It also supports receiving commands from the same protocol.
It acts as a serial gateway and it is connected to a Raspberry Pi running Home assistant.
It uses an Arduino Pro Mini 5v 16 Mhz.
The original bootloader has been replaced with Optiboot using this tutorial: https://andreasrohner.at/posts/Electronics/How-to-make-the-Watchdog-Timer-work-on-an-Arduino-Pro-Mini-by-replacing-the-bootloader/
## Read sensors
### DHT
```
{
"dht11": {
"temperature": 31.9,
"humidity": 45
}
}
```
### RC Switch
#### on
```
[
{
"rcSwitch": {
"protocol": 1,
"group": "00001",
"channel": 1,
"state": true
}
}
]
```
#### off
```
[
{
"rcSwitch": {
"protocol": 1,
"group": "00001",
"channel": 1,
"state": false
}
}
]
```
```
[
{
"rcSwitch": {
"protocol": 2,
"value": "10011110000000000001110101111001"
}
}
]
```