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 update
- reboota node
- reseta 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 as- mysensors_v2
- enableInternalMessageAckenable acknowledgement for internal messages
- enableStreamMessageAckenable acknowledgement for streaming messages. ie: OTA/firmware messages
- retryCount- if do not receive the acknowledgement on the specified- timeout, keeps resend the message till it reaches the retryCount
- timeout- 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 be- mqtt
- transmitPreDelay- wait till this time to avoid collision and sends the data to provider network
- brokermqtt broker url
- insecureSkipVerifyif you want to skip the insecure ssl, enable this option
- usernameusername of the mqtt broker. if it is- anonymousleave it as a blank
- passwordif username supplied, password should be supplied. otherwise leave it as a blank
- subscribetopic to be subscribed to get messages from MySensors gateway
- publishtopic to be used to post data from MyController to MySensors network
- qosMQTT 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 be- serial
- transmitPreDelay- wait till this time to avoid collision and sends the data to provider network
- portnamename of the serial port
- baudratebaud 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 be- ethernet
- transmitPreDelay- wait till this time to avoid collision and sends the data to provider network
- serverethernet server address with port
- insecureSkipVerifyif you want to skip the insecure ssl, enable this option
 
  Last modified May 11, 2021: doc update (82361ce)