mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
Visually separated the list of control values from the example. (#552)
* Visually separated the list of control values from the example. This will aid people who are quickly skimming the readme. There wasn't anything wrong in the doc. Everything would be clear if the reader is reading thoughtfully. But if they're skimming and looking for what to supply to the node for the first time, their eye is drawn to the JSON example. Since many nodes accept JSON input, and supplying `{"state": "off"}`, `{"state": 0}`, or `{"state": 1}` works, it might take them awhile to realize their oversight. * Clarification * Update README.md * Update README.md
This commit is contained in:
parent
8cf3c8b990
commit
d9ea55d3b2
@ -19,12 +19,18 @@ The output node switches a socket, a light or group of lights on or off
|
||||
This should be backward compatible with the pervious version of this node but will benefit
|
||||
from opening the config dialog and selecting the node you want.
|
||||
|
||||
The node accecpts the following inputs
|
||||
The node accepts the following `msg.payload` inputs
|
||||
|
||||
* Strings on/off
|
||||
* integers 1/0
|
||||
* boolean true/false
|
||||
* an Object like this (lights only & color control is still work in the progress)
|
||||
* A single value
|
||||
* Accepted values:
|
||||
* Strings `on`/`off`
|
||||
* Integers `1`/`0`
|
||||
* Boolean `true`/`false`
|
||||
* Example:
|
||||
```
|
||||
off
|
||||
```
|
||||
* A JSON Object like this (lights only & color control is still work in the progress)
|
||||
```
|
||||
{
|
||||
state: 1,
|
||||
|
Loading…
Reference in New Issue
Block a user