MY9291 Element
The MY9291Element implements the protocol to control the Taiwan Mingyang MY9291 LED driver chip that can be found in some bulbs. It can control 3 or 4 channels of PWM output with a high PWM frequency typically used for RGB and WRGB bulbs.
From the datasheet it can be found that these chips support chaining multiple chips in a row. This feature is not supported by the MY9291 Element.
Element Configuration
The following properties are available for configuration of the element.
value - Is used for color mode to pass a list of colors like
red,blue,green,white
. See Light Element.brightness - The brightness factor can be used to dim the light in general. The brightness value must be in the range 0…100. The default is 50.
datapin - Specifies the output pin that is used for the data signal to the chip.
clockpin - Specifies the output pin that is used for the clock signal to the chip.
enabled - to enable / disable the light without loosing the current value and brightness.
From the base element implementation the following properties are available for configuration:
title – Caption text for the element. Used by the element specific cards on the dash boards.
description – A line of text that gives a short description of the device used in the web UI.
room – The location of the device.
loglevel – This property holds the element specific log level. The default value is LOGGER_LEVEL_ERR == 1.
startup – This property can be used to start the element using a different initialization phase. Possible values are “sys”, “net”, “time”. See The Startup sequence.
Configuration Example
This example shows how to configure this element:
{
"my9291": {
"0": {
"title": "Couch-Lampe",
"datapin": "4",
"clockpin": "5",
"brightness": "50",
"value": "x00008000"
}
}
}
Element State
The following properties are available with the current values at runtime
active - Is set to true when the element is active.
value - Current output value of the element.
Example State
The internal value can be seen in the rotary state but should not directly be used as a value.
{
"my9291/0": {
"active": "true",
"value": "x0011ff33"
}
}