pimatic-mqtt-ext
v0.9.8
Published
MQTT extension support for Pimatic
Downloads
10
Maintainers
Readme
pimatic-mqtt-ext
Pimatic-mqtt extensions
This plugin is an extension of pimatic-mqtt. The plugin provides a MQTT RGB device for the Shelly RGBW2. Its largely based on the mqtt device from iMarvinS pimatic-led-light and is adapted for the ShellyRGBW2.
Configuration
The MqttRGB device requires the pimatic-mqtt plugin to be installed so that it can connect to a broker. The brokerId is coming from pimatic-mqtt configuration.
{
"brokerId": "default"
"deviceId": "Shelly deviceId"
"onoffTopic": "myOnOffTopic"
"effectOn": [0,1,2,3,4] default 2
"effectOff": [0,1,2,3,4] default 0
"colorTopic": "myColorSetTopic"
"onoffStateTopic": "myOnOffStateTopic"
"colorStateTopic": "myColorStateTopic"
"onMessage": "ON"
"offMessage": "OFF"
}
You need to provide the deviceId of the ShellyRGBW2. For the 6 topic/message fields the default values can be used for the ShellyRGBW2.
Actions
The action syntax
shelly <MqttRGB device> to [<hex color code> | <color name>]