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 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 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.
-
hello @arendst ,
Does it work on MySensors API 2.0 as well?
I'm interested to use it ;)thanks!!
Simon
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login