MQTT Client using MySensors Serial Gateway
-
I wrote a python script acting as a MQTT Client using the standard MySensors Serial Gateway:
https://github.com/arendst/mqtt-mysensors
It is based on the MQTT Ethernet gateway as provided with the MySensors package. It supports the same message structure as
<topic_prefix>/<nodeid>/<childid>/<variable_type> [<value>]Depending of the presence of <value> a C_SET or C_REQ message is send to the gateway. It recognizes ON and OFF for V_LIGHT. So publishing 'mysensors/0/0/V_LIGHT ON' will turn the light on for node 0 and child 0.
Before use please update the user configuration values according to your environment at the beginning of the script.
-
I have this gateway running on my Raspberry PI2, but I noticed that it not giving out node ID's... Is this something your going to add??
Thanks
-
-
@arendst I'm also interested of you MQTT client is capable of assinging nodes. At this point it's the only reason why I still connect everything through Domoticz. Would be awesome to separate MySensors and Domoticz.
-
Seems to work well! I'll test it a little bit
Suggested Topics
-
Arduino Celebrates 10 years (Malmö/Sweden)
Announcements • 29 Mar 2014, 17:08 • hek 29 Mar 2014, 17:08 -
MQTT-Help me understand about the MQTT Gateway.
Development • 2 Mar 2025, 01:44 • dpcons 12 Mar 2025, 23:39 -
PJON and Minicore not working
Development • 28 days ago • Trand 28 days ago -
Gateway without a radio
Development • 12 Jan 2025, 23:19 • OldSurferDude 14 Jan 2025, 22:07 -
Saving last known good state, but not in EEPROM
Development • 30 Jan 2024, 18:46 • OldSurferDude 15 Jan 2025, 08:51 -
Radio waking up for no reason.
Development • 4 Jul 2020, 21:09 • Sasquatch 15 Jan 2025, 08:33