i in process of implementing home automation system consist on multiple hardware "nodes" publishing values central mqtt server , acting on value changes of topic node subscribed to... standard mqtt stuff!
however, problem finding technology/language/package/etc.. subscribe topic, , when value changes perform bit of logic , change values on other topics..
as example:
node 1 detects movement -> updates topic value "true" -> script performs logic event true , sets 4 other topics "true" - node 3,4,5,6 act on performing action such switch on light..
now know within c#! looking more... simple scripting solution can add new modules when new nodes come online , create/update new topics. within c# case of adding new functionality , recompiling, deploying.. need can knock quick 10-15 min script , functionality in place!
i hope makes sense... i'm finding hard explain...
node.js?
there nice mqtt library use (https://www.npmjs.com/package/mqtt)
or may have @ node-red quick/simple way wire flows this.
Comments
Post a Comment