create node1 entity in home assistant
This commit is contained in:
parent
2548813231
commit
25caea841b
4 changed files with 99 additions and 41 deletions
33
README.md
33
README.md
|
|
@ -37,6 +37,13 @@ Weatherproof Enclosure: [weatherproof-cover-for-outdoor-sensors](https://shop.pi
|
|||
|
||||
_Note: I would not recommend buying from pimoroni from EU as shipping tax is huge!_
|
||||
|
||||
## Helpful links
|
||||
|
||||
- [pico mqtt Example](https://github.com/raspberrypi/pico-examples/blob/master/pico_w/wifi/mqtt/README)
|
||||
- [pico pinout](https://pico.pinout.xyz/)
|
||||
- [home assistant mqtt guide](https://www.home-assistant.io/integrations/mqtt/#testing-your-setup)
|
||||
- [home assistant device classes](https://www.home-assistant.io/integrations/sensor/#device-class)
|
||||
|
||||
## Dev
|
||||
|
||||
### Env Setup
|
||||
|
|
@ -124,3 +131,29 @@ Restarting the program:
|
|||
```shell
|
||||
(lldb) process plugin packet monitor reset run
|
||||
```
|
||||
|
||||
### Home assistant debugging
|
||||
|
||||
#### Subscribe to a topic
|
||||
|
||||
```shell
|
||||
$ TOPIC=zigbee2mqtt/0xa4c13848a46ea1cf; mosquitto_sub -h 192.168.1.11 -t $TOPIC -u homeassistant -P xxx
|
||||
```
|
||||
|
||||
#### Send message
|
||||
|
||||
Config example:
|
||||
|
||||
```shell
|
||||
$ mosquitto_pub -h 192.168.1.11 -P xxxxxxxx \
|
||||
-u homeassistant -t homeassistant/device/bws/node1_001/config \
|
||||
-f node1.json -r
|
||||
```
|
||||
|
||||
Payload example:
|
||||
|
||||
```shell
|
||||
$ mosquitto_pub -h 192.168.1.11 -P xxxxxxxx \
|
||||
-u homeassistant -t bws/node1/state \
|
||||
-f node1_payload_example.json
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue