I need advice on how to implement a water leak protection using Chipi #36
Replies: 1 comment 4 replies
-
|
A Chipi setup can be just one CL file. The Chipi setup begins at Any additional setup (MQTT library) can be done prior to or as part of I sounds like that the zigbee sensors as well as the relays should be Chipi items. Regarding question 1: The easiest integration could be done via items that represent/map the sensors/relays. Once the connection between zigbee sensor and Chipi item is established one could use a Items can persist their value and restore that value on startup by having something like this: Items without any bindings are basically just value containers. Once you add a binding you can control what should be done in case the item value changes. For example: But maybe this better be a Of course there can be a more tight zigbee integration as a plugin with zigbee related DSL like the one I did for KNX (https://github.com/mdbergmann/chipi/blob/main/bindings/knx/README.md). Not sure this all answered your questions fully. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a few zigbee leak sensors and a two relays for controlling the valves.
I can already have a lisp code for reading sensors state from MQTT server and relays also will be controlled by publishing values to MQTT.
The questions:
MQTT library uses a cl-async and requires to run a loop in a separate thread. How to integrate such thread into the Chipi's actor system?
How to configure Chipi to act like this?
Beta Was this translation helpful? Give feedback.
All reactions