You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Update required message types and add v2.0 ex.
Changed wording of section listing required message types to make more clear the necessity of sending V_STATUS messages along with V_PERCENTAGE or V_RGB messages. Also, added a MySensors v2.x example sketch which is substantially different from v.1.x. Example sketch taken from MySensors github repo with some comments removed.
* Updated example sketch
Simplified and style corrected.
* V_LIGHT changed to V_STATUS ...
Updated to use non-deprecated types. Also updated library link.
* Updated wording of type description
Updated description of which type messages to send in response to events. This is a hard requirement to fully explain, but hopefully the example sketches will provide guidance.
Copy file name to clipboardExpand all lines: source/_components/light.mysensors.markdown
+135-3Lines changed: 135 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -30,11 +30,11 @@ S_TYPE | V_TYPE
30
30
S_DIMMER | [V_DIMMER\* or V_PERCENTAGE\*], [V_LIGHT\* or V_STATUS\*]
31
31
S_RGB_LIGHT | V_RGB*, [V_LIGHT\* or V_STATUS\*], [V_DIMMER or V_PERCENTAGE]
32
32
33
-
V_TYPES with a star (\*) denotes required V_TYPES. Use either V_LIGHT or V_STATUS and either V_DIMMER or V_PERCENTAGE for an applicable actuator.
33
+
V_TYPES with a star (\*) denote V_TYPES that should be sent at sketch startup. For an S_DIMMER, send both a V_DIMMER/V_PERCENTAGE and a V_LIGHT/V_STATUS message. For an S_RGB_LIGHT, send both a V_RGB and a V_LIGHT/V_STATUS message with a V_DIMMER/V_PERCENTAGE message being optional. Sketch should acknowledge a command sent from controller with the same type. If command invokes a change to off state (including a V_PERCENTAGE or V_RGB message of zero), only a V_STATUS of zero message should be sent. See sketches below for examples.
34
34
35
35
For more information, visit the [serial api] of MySensors.
36
36
37
-
### {% linkable_title Example sketch %}
37
+
### {% linkable_title MySensors 1.x example sketch %}
0 commit comments