MySensors
3 minute read
MySensors is an open source hardware and software community focusing on do-it-yourself home automation and Internet of Things. To know more about MySensors network follow this link
Provider Specific key points
- In a network MySensors can have maximum of 254 nodes
- node id
0is always a gateway node - node id
1to254can be allocatable to any node - Supported features in MyController
OTAfeatures / Firmware updatereboota nodereseta node- get a node info
- discover nodes
Heartbeatrequest- Response to internal message like
I_TIME,I_CONFIG,I_ID_REQUEST - Assigns NodeId if nodeId set as
AUTOon a node
Not implemented / supported features (that is supported on MyController 1.x)
- Handle sleeping nodes
- There is no node alive check
Common Configuration
-
Form view

-
YAML View
provider: type: mysensors_v2 # (1) enableInternalMessageAck: true # (2) enableStreamMessageAck: false # (3) retryCount: 3 # (4) timeout: 1s # (5)typeshould be selected asmysensors_v2enableInternalMessageAckenable acknowledgement for internal messagesenableStreamMessageAckenable acknowledgement for streaming messages. ie: OTA/firmware messagesretryCount- if do not receive the acknowledgement on the specifiedtimeout, keeps resend the message till it reaches the retryCounttimeout- wait for the acknowledgement till this timeout
Protocols
MySensors gateway supports the following protocols
Protocol Configuration - MQTT
-
Form view

-
YAML View
provider: protocol: type: mqtt # (1) transmitPreDelay: 15ms # (2) broker: tcp://192.168.1.21:1883 # (3) insecureSkipVerify: false # (4) username: '' # (5) password: '' # (6) subscribe: out_rfm69/# # (7) publish: in_rfm69 # (8) qos: 0 # (9)typetype of the protocol. here it should bemqtttransmitPreDelay- wait till this time to avoid collision and sends the data to provider networkbrokermqtt broker urlinsecureSkipVerifyif you want to skip the insecure ssl, enable this optionusernameusername of the mqtt broker. if it isanonymousleave it as a blankpasswordif username supplied, password should be supplied. otherwise leave it as a blanksubscribetopic to be subscribed to get messages from MySensors gatewaypublishtopic to be used to post data from MyController to MySensors networkqosMQTT qos
Note
It is important to include/# at the end of subscription topic to receive from all the nodes. example: out_rfm69/#
Protocol Configuration - Serial
-
Form view

-
YAML View
provider: protocol: type: serial # (1) transmitPreDelay: 15ms # (2) portname: /dev/ttyUSB0 # (3) baudrate: 115200 # (4)typeof the protocol. here it should beserialtransmitPreDelay- wait till this time to avoid collision and sends the data to provider networkportnamename of the serial portbaudratebaud rate of the serial port
Protocol Configuration - Ethernet
-
Form view

-
YAML View
provider: protocol: type: ethernet # (1) transmitPreDelay: 15ms # (2) server: tcp://192.168.1.42:5000 # (3) insecureSkipVerify: false # (4)typeof the protocol. here it should beethernettransmitPreDelay- wait till this time to avoid collision and sends the data to provider networkserverethernet server address with portinsecureSkipVerifyif you want to skip the insecure ssl, enable this option
Last modified May 11, 2021: doc update (82361ce)