From 15d117991ce80d5ebd44c24219fb4ab67c3c9365 Mon Sep 17 00:00:00 2001 From: Beta-User <> Date: Sat, 22 Jun 2019 16:02:00 +0000 Subject: [PATCH] mqtt2.template: milight - add comment to explain how to switch device on when changing brightness git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@19685 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- FHEM/lib/AttrTemplate/mqtt2.template | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/FHEM/lib/AttrTemplate/mqtt2.template b/FHEM/lib/AttrTemplate/mqtt2.template index 5b67df9d2..f80574b18 100644 --- a/FHEM/lib/AttrTemplate/mqtt2.template +++ b/FHEM/lib/AttrTemplate/mqtt2.template @@ -1230,6 +1230,7 @@ attr DEVICE setList\ command:uzsuSelectRadio,Weiss,Nacht BASE_ID/REMOTE_ID/BULB_TYPE/GROUP_ID {"$EVTPART0":"$EVTPART1"} attr DEVICE userReadings hex:color_r.* {Color::rgb2hex(ReadingsVal($name,"color_r",255),ReadingsVal($name,"color_g",255),ReadingsVal($name,"color_b",255))}, hue:bulb_mode.*white {"0"} attr DEVICE setStateList on off +attr DEVICE comment To switch device also on when changing brightness, change payload pattern to {"status":"ON","$EVTPART0":"$EVTPART1"} or add a new element to setList, similar to brightness, e.g.brightness_on and change payload pattern as described. attr DEVICE setExtensionsEvent 1 attr DEVICE model X_01_esp_milight_hub_rgbw_bulb @@ -1296,6 +1297,7 @@ attr DEVICE webCmdLabel brightness:dim\ :saturation:mode attr DEVICE setStateList on off # computed_color will send RGB = 255,255,255 when in white mode. This is useful for HomeAssistant where it always expects the color to be set. +attr DEVICE comment To switch device also on when changing brightness, change payload pattern to {"status":"ON","$EVTPART0":"$EVTPART1"} or add a new element to setList, similar to brightness, e.g.brightness_on and change payload pattern as described. attr DEVICE model X_01a_esp_milight_hub_rgb_cct_bulb #cct-only-bulb @@ -1327,6 +1329,7 @@ attr DEVICE webCmd brightness:dim:command:program:mode attr DEVICE webCmdLabel :dim\ ::: attr DEVICE setStateList on off +attr DEVICE comment To switch device also on when changing brightness, change payload pattern to {"status":"ON","$EVTPART0":"$EVTPART1"} or add a new element to setList, similar to brightness, e.g.brightness_on and change payload pattern as described. attr DEVICE model X_01b_esp_milight_hub_cct_only_bulb #rgbw-bulb @@ -1365,5 +1368,6 @@ attr DEVICE webCmdLabel An:Aus\ :Farb-Temp:Programm\ :Sättigung:Modus attr DEVICE eventMap /set_white:Weiss/night_mode:Nacht/white_mode:white/on:on/off:off/ON:on/OFF:off/next_mode:Mode/mode_speed_up:Faster/mode_speed_down:Slower/level_up:Up/level_down:Down/ +attr DEVICE comment To switch device also on when changing brightness, change payload pattern to {"status":"ON","$EVTPART0":"$EVTPART1"} or add a new element to setList, similar to brightness, e.g.brightness_on and change payload pattern as described. attr DEVICE model X_01x_esp_milight_hub_max_features_bulb