mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +00:00
mqtt2.template: repair tasmota_basic setList; add Milight cct_only template
git-svn-id: https://svn.fhem.de/fhem/trunk@18105 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
e0f336d9b1
commit
b2a7ba5bf8
@ -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 <br>NOTE: Development state is experimental! <br>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
|
||||
|
Loading…
Reference in New Issue
Block a user