diff --git a/fhem/FHEM/lib/AttrTemplate/mqtt2.template b/fhem/FHEM/lib/AttrTemplate/mqtt2.template index 0ac099d11..66ce0803f 100644 --- a/fhem/FHEM/lib/AttrTemplate/mqtt2.template +++ b/fhem/FHEM/lib/AttrTemplate/mqtt2.template @@ -162,10 +162,6 @@ filter:TYPE=MQTT2_DEVICE desc:Applies to Sonoff 1 Channel devices using POWER-topic for relay state set DEVICE attrTemplate A_01a_tasmota_basic_state_power1 attr DEVICE stateFormat POWER -attr DEVICE setList \ - off:noArg COMMAND/POWER 0\ - on:noArg COMMAND/POWER 1\ - toggle:noArg COMMAND/POWER 2 attr DEVICE model A_01_tasmota_basic name:A_01x_tasmota_clear_readings_reset_readingsList_and_reboot @@ -510,6 +506,36 @@ 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 model X_01a_esp_milight_hub_rgb_cct_bulb +#cct-only-bulb +name:X_01b_esp_milight_hub_cct_only_bulb +filter:TYPE=MQTT2_DEVICE +desc:For use with X_01_esp_milight_hub_bridge
NOTE: Development state is experimental!
simple CCT device +par:BASE_ID;BASE_ID typically is milight;{ AttrVal("DEVICE","readingList","") =~ m,([^/]+)[/].*ates/.*:, ? $1 : undef } +par:GROUP_ID;number from 0 to 4 representing one of the channels of an original bridge or remote;{ AttrVal("DEVICE","readingList","") =~ m,[^/]+[/][^/]+[/][^/]+[/]([0-4]):, ? $1 : undef } +par:REMOTE_ID;HEX number representing a specific remote or bridge;{ AttrVal("DEVICE","readingList","") =~ m,([^/]+)[/](0x....)[/].*:, ? $2 : undef } +par:BULB_TYPE;rgbw, cct, rgb_cct, rgb, fut089, ;{ AttrVal("DEVICE","readingList","") =~ m,[^/]+[/][^/]+[/][^/]+[/]([^/]+)[/].*:, ? $1 : undef } +deletereading DEVICE .*_.* +attr DEVICE icon light_control +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 devStateIcon {zigbee2mqtt_devStateIcon255($name)} +attr DEVICE readingList BASE_ID/states/REMOTE_ID/BULB_TYPE/GROUP_ID:.* { json2nameValue($EVENT) }\ + BASE_ID/states/REMOTE_ID/BULB_TYPE/0:.* { json2nameValue($EVENT) }\ + BASE_ID/updates/REMOTE_ID/BULB_TYPE/GROUP_ID:.* { json2nameValue($EVENT) }\ + BASE_ID/updates/REMOTE_ID/BULB_TYPE/0:.* { json2nameValue($EVENT) } +attr DEVICE setList\ + on BASE_ID/REMOTE_ID/BULB_TYPE/GROUP_ID {"status":"ON"}\ + off BASE_ID/REMOTE_ID/BULB_TYPE/GROUP_ID {"status":"OFF"}\ + brightness:colorpicker,BRI,0,15,255 BASE_ID/REMOTE_ID/BULB_TYPE/GROUP_ID {"$EVTPART0":"$EVTPART1"}\ + command:uzsuSelectRadio,Weiss,Nacht BASE_ID/REMOTE_ID/BULB_TYPE/GROUP_ID {"$EVTPART0":"$EVTPART1"}\ + program:uzsuSelectRadio,Mode,Faster,Slower BASE_ID/REMOTE_ID/BULB_TYPE/GROUP_ID {"command":"$EVTPART1"}\ + mode:select,0,1,2,3,4,5,6,7,8 BASE_ID/REMOTE_ID/BULB_TYPE/GROUP_ID {"$EVTPART0":"$EVTPART1"}\ + dim:uzsuSelectRadio,Up,Down BASE_ID/REMOTE_ID/BULB_TYPE/GROUP_ID {"command":"$EVTPART1"} +attr DEVICE webCmd brightness:dim:command:program:mode +attr DEVICE webCmdLabel :dim\ + ::: +attr DEVICE setStateList on off +attr DEVICE model X_01b_esp_milight_hub_cct_only_bulb + #rgbw-bulb name:X_01x_esp_milight_hub_max_features_bulb filter:TYPE=MQTT2_DEVICE