LED Widget
Last updated
Last updated
General Setting
User can change following things in LED widget:
Name for widget which will be used data referenceFor Example, if widget name is 'LED', then data of widget is referenced as LED.data
Show title - User can show/hide widget title
Title Color
Background Color
Widget Setting
In Widget Setting option, user can change following parameters:
Key - key parameter of JSON Object which will define state of LED.
LED Style - Select one from available options of LED
User can manage state of LED using MQTT or Actions. To change state of LED, user need to send data in following format.
User can select a source mode as MQTT or Action.
Using MQTT
Here, to change state of LED user can publish JSON object on given data MQTT topic. No need to provide <account_id> while providing the MQTT topic. The JSON object will be as below.
Using Action
Here, to change state of LED, output of the action should contain key-value pair with 'dataKey' key. User can also update the widget either onLoad or periodically by providing refresh interval.
LED widget does not support any event.
If we configure LED Widget as below:
key - testWidgetKey
and set source type for widget as MQTT and topic configured is 'data'. And if we publish following JSON Object over 'data' topic then LED Widget will look as shown in image.