Re: [V 3.0 IP 5.1] publish array möglich in MQTT JSON?
Verfasst: Mi Feb 16, 2022 7:14 am
Wahrscheinlich nicht alle aber wenn Ich z.B.: nur blue 255 sende tut sich nichts
Da ist die Beschreibung https://shelly-api-docs.shelly.cloud/ge ... -rgbw-mqtt
To control the bulb with a simple on-off switch functionality, use:
shellies/shellycolorbulb-<deviceid>/color/0/command accepts on and off payloads
For controlling other parameters of the LED channels publish to:
shellies/shellycolorbulb-<deviceid>/color/0/set
The device expects a JSON payload on this topic, with the following sample contents:
{
"mode": "color", /* "color" or "white" */
"red": 0, /* red brightness, 0..255, applies in mode="color" */
"green": 0, /* green brightness, 0..255, applies in mode="color" */
"blue": 255, /* blue brightness, 0..255, applies in mode="color" */
"gain": 100, /* gain for all channels, 0..100, applies in mode="color" */
"brightness": 100, /* brightness, 0..100, applies in mode="white" */
"white": 0, /* white brightness, 0..255, applies in mode="color" */
"temp": 4750, /* color temperature in K, 3000..6500, applies in mode="white" */
"effect": 0, /* applies an effect when set */
"turn": "on", /* "on", "off" or "toggle" */
"transition": 500 /* One-shot transition, `0..5000` [ms] */
}
Da ist die Beschreibung https://shelly-api-docs.shelly.cloud/ge ... -rgbw-mqtt
To control the bulb with a simple on-off switch functionality, use:
shellies/shellycolorbulb-<deviceid>/color/0/command accepts on and off payloads
For controlling other parameters of the LED channels publish to:
shellies/shellycolorbulb-<deviceid>/color/0/set
The device expects a JSON payload on this topic, with the following sample contents:
{
"mode": "color", /* "color" or "white" */
"red": 0, /* red brightness, 0..255, applies in mode="color" */
"green": 0, /* green brightness, 0..255, applies in mode="color" */
"blue": 255, /* blue brightness, 0..255, applies in mode="color" */
"gain": 100, /* gain for all channels, 0..100, applies in mode="color" */
"brightness": 100, /* brightness, 0..100, applies in mode="white" */
"white": 0, /* white brightness, 0..255, applies in mode="color" */
"temp": 4750, /* color temperature in K, 3000..6500, applies in mode="white" */
"effect": 0, /* applies an effect when set */
"turn": "on", /* "on", "off" or "toggle" */
"transition": 500 /* One-shot transition, `0..5000` [ms] */
}