Tellstick DUO - message bus integration
Posted: Fri Mar 17, 2023 9:45 am
Hi,
I've had the "old" Tellstick for a few years now, and have just ordered the DUO in order to read various sensors as well as capture physical button pushes.
I've previously used pakerfeldt's python-based remotestick https://github.com/pakerfeldt/remotestick-server for a simple web ui and rest interface to control my devices, but with the DUO's added capabilities (receving data) I am looking at a more advanced integration.
Basically I need an abstraction layer for the low level C libraries and was wondering if anyone as integrated the DUO with some kind of message bus with publish/subscribe capabilities. I'm thinking that the DUO would publish any events (sensors, button presses, etc) to the appropriate channels on the message bus, and subscribe to some other channels in order to control devices.
My applications could then subscribe to appropriate channels in order to receive data (1), and publish to other channels to control devices (2):
1:
sensor update/physical button press -> RF -> Tellstick DUO -> message bus -> my application(s) -> do something with data
2:
my application(s) sends a command -> message bus -> Tellstick DUO -> RF -> device on/off/dim
I'm hoping to get some positive feedback, but if not I'm considering implementing support for MQTT or something similar.
Anyone?
I've had the "old" Tellstick for a few years now, and have just ordered the DUO in order to read various sensors as well as capture physical button pushes.
I've previously used pakerfeldt's python-based remotestick https://github.com/pakerfeldt/remotestick-server for a simple web ui and rest interface to control my devices, but with the DUO's added capabilities (receving data) I am looking at a more advanced integration.
Basically I need an abstraction layer for the low level C libraries and was wondering if anyone as integrated the DUO with some kind of message bus with publish/subscribe capabilities. I'm thinking that the DUO would publish any events (sensors, button presses, etc) to the appropriate channels on the message bus, and subscribe to some other channels in order to control devices.
My applications could then subscribe to appropriate channels in order to receive data (1), and publish to other channels to control devices (2):
1:
sensor update/physical button press -> RF -> Tellstick DUO -> message bus -> my application(s) -> do something with data
2:
my application(s) sends a command -> message bus -> Tellstick DUO -> RF -> device on/off/dim
I'm hoping to get some positive feedback, but if not I'm considering implementing support for MQTT or something similar.
Anyone?