mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 06:39:11 +00:00
mqtt2.template: fix zigbee2mqtt lc state
git-svn-id: https://svn.fhem.de/fhem/trunk@26392 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
850b02a035
commit
9a3fc7d8cb
@ -217,7 +217,7 @@ attr DEVICE icon ICON
|
||||
attr DEVICE devStateIcon {zigbee2mqtt_devStateIcon255($name)}
|
||||
attr DEVICE webCmd toggle:on:off:brightness
|
||||
attr DEVICE devicetopic BASE_TOPIC/DEV_ID
|
||||
attr DEVICE readingList $\DEVICETOPIC:.* { my $ret=json2nameValue($EVENT); $ret->{state}=lc($ret->{state}); return $ret }
|
||||
attr DEVICE readingList $\DEVICETOPIC:.* { my $ret=json2nameValue($EVENT); $ret->{state}=lc($ret->{state}) if defined $ret->{state}; return $ret }
|
||||
attr DEVICE setList \
|
||||
on:noArg $\DEVICETOPIC/set {"state":"ON"}\
|
||||
off:noArg $\DEVICETOPIC/set {"state":"OFF"}\
|
||||
@ -225,7 +225,7 @@ attr DEVICE setList \
|
||||
attr DEVICE setStateList on off
|
||||
set DEVICE attrTemplate speechcontrol_type_light_255
|
||||
attr DEVICE model zigbee2mqtt_light_dimmer
|
||||
setreading DEVICE attrTemplateVersion 20220622
|
||||
setreading DEVICE attrTemplateVersion 20220909
|
||||
|
||||
# A dimmable color light connected via zigbee2mqtt
|
||||
name:zigbee2mqtt_light_cct
|
||||
@ -238,7 +238,7 @@ par:ICON;ICON as set, defaults to light_control;{ AttrVal('DEVICE','icon','light
|
||||
attr DEVICE icon ICON
|
||||
attr DEVICE webCmd toggle:on:off:brightness:ct
|
||||
attr DEVICE devicetopic BASE_TOPIC/DEV_ID
|
||||
attr DEVICE readingList $\DEVICETOPIC:.* { my $ret=json2nameValue($EVENT,'',$JSONMAP); $ret->{state}=lc($ret->{state}); return $ret }
|
||||
attr DEVICE readingList $\DEVICETOPIC:.* { my $ret=json2nameValue($EVENT); $ret->{state}=lc($ret->{state}) if defined $ret->{state}; return $ret }
|
||||
attr DEVICE setList \
|
||||
on:noArg $\DEVICETOPIC/set {"state":"ON"}\
|
||||
off:noArg $\DEVICETOPIC/set {"state":"OFF"}\
|
||||
@ -248,7 +248,7 @@ attr DEVICE setList \
|
||||
attr DEVICE jsonMap color_temp:ct color_temp_startup:ct_startup
|
||||
set DEVICE attrTemplate speechcontrol_type_light_255
|
||||
attr DEVICE model zigbee2mqtt_light_cct
|
||||
setreading DEVICE attrTemplateVersion 20220622
|
||||
setreading DEVICE attrTemplateVersion 20220909
|
||||
|
||||
#source post: https://forum.fhem.de/index.php/topic,97303.msg905935.html#msg905935
|
||||
name:zigbee2mqtt_light_rgb_hex
|
||||
@ -262,7 +262,7 @@ attr DEVICE icon ICON
|
||||
attr DEVICE devStateIcon {zigbee2mqtt_devStateIcon255($name)}
|
||||
attr DEVICE webCmd toggle:on:off:brightness:hex
|
||||
attr DEVICE devicetopic BASE_TOPIC/DEV_ID
|
||||
attr DEVICE readingList $\DEVICETOPIC:.* { my $ret=json2nameValue($EVENT); $ret->{state}=lc($ret->{state}); return $ret }
|
||||
attr DEVICE readingList $\DEVICETOPIC:.* { my $ret=json2nameValue($EVENT); $ret->{state}=lc($ret->{state}) if defined $ret->{state}; return $ret }
|
||||
attr DEVICE setList \
|
||||
on:noArg $\DEVICETOPIC/set {"state":"ON"}\
|
||||
off:noArg $\DEVICETOPIC/set {"state":"OFF"}\
|
||||
@ -271,7 +271,7 @@ attr DEVICE setList \
|
||||
attr DEVICE userReadings hex:color_y.* {Color::xyY2hex(ReadingsVal($name,'color_x',0),ReadingsVal($name,'color_y',0),ReadingsVal($name,'brightness',254))}
|
||||
set DEVICE attrTemplate speechcontrol_type_light_255
|
||||
attr DEVICE model zigbee2mqtt_light_rgb_hex
|
||||
setreading DEVICE attrTemplateVersion 20220622
|
||||
setreading DEVICE attrTemplateVersion 20220909
|
||||
|
||||
name:zigbee2mqtt_light_rgb_rgb
|
||||
filter:TYPE=MQTT2_DEVICE:FILTER=CID~zigbee.*
|
||||
@ -284,7 +284,7 @@ attr DEVICE icon ICON
|
||||
attr DEVICE devStateIcon {zigbee2mqtt_devStateIcon255($name)}
|
||||
attr DEVICE webCmd toggle:on:off:brightness:color
|
||||
attr DEVICE devicetopic BASE_TOPIC/DEV_ID
|
||||
attr DEVICE readingList $\DEVICETOPIC:.* { my $ret=json2nameValue($EVENT); $ret->{state}=lc($ret->{state}); return $ret }
|
||||
attr DEVICE readingList $\DEVICETOPIC:.* { my $ret=json2nameValue($EVENT); $ret->{state}=lc($ret->{state}) if defined $ret->{state}; return $ret }
|
||||
attr DEVICE setList \
|
||||
on:noArg $\DEVICETOPIC/set {"state":"ON"}\
|
||||
off:noArg $\DEVICETOPIC/set {"state":"OFF"}\
|
||||
@ -292,7 +292,7 @@ attr DEVICE setList \
|
||||
color:colorpicker,RGB {"$\DEVICETOPIC/set ".zigbee2mqtt_RGB2JSON($EVTPART1)}
|
||||
set DEVICE attrTemplate speechcontrol_type_light_255
|
||||
attr DEVICE model zigbee2mqtt_light_rgb_rgb
|
||||
setreading DEVICE attrTemplateVersion 20220622
|
||||
setreading DEVICE attrTemplateVersion 20220909
|
||||
|
||||
#source post: https://forum.fhem.de/index.php/topic,97303.msg905935.html#msg905935
|
||||
name:zigbee2mqtt_light_rgbw_hex
|
||||
@ -333,7 +333,7 @@ attr DEVICE icon ICON
|
||||
attr DEVICE devStateIcon {zigbee2mqtt_devStateIcon255($name)}
|
||||
attr DEVICE webCmd toggle:on:off:brightness:color:white
|
||||
attr DEVICE devicetopic BASE_TOPIC/DEV_ID
|
||||
attr DEVICE readingList $\DEVICETOPIC:.* { my $ret=json2nameValue($EVENT); $ret->{state}=lc($ret->{state}); return $ret }
|
||||
attr DEVICE readingList $\DEVICETOPIC:.* { my $ret=json2nameValue($EVENT); $ret->{state}=lc($ret->{state}) if defined $ret->{state}; return $ret }
|
||||
attr DEVICE setList \
|
||||
on:noArg $\DEVICETOPIC/set {"state":"ON"}\
|
||||
off:noArg $\DEVICETOPIC/set {"state":"OFF"}\
|
||||
@ -342,7 +342,7 @@ attr DEVICE setList \
|
||||
color:colorpicker,RGB {"$\DEVICETOPIC/set ".zigbee2mqtt_RGB2JSON($EVTPART1)}
|
||||
set DEVICE attrTemplate speechcontrol_type_light_255
|
||||
attr DEVICE model zigbee2mqtt_light_rgbw_rgb
|
||||
setreading DEVICE attrTemplateVersion 20220622
|
||||
setreading DEVICE attrTemplateVersion 20220909
|
||||
|
||||
#source post: https://forum.fhem.de/index.php/topic,96985.msg902627.html#msg902627
|
||||
name:zigbee2mqtt_light_rgbcct_hex
|
||||
@ -510,7 +510,7 @@ par:DEV_ID;name of the device in the zigbee2mqtt bridge;{ AttrVal('DEVICE','devi
|
||||
par:ICON;ICON as set, defaults to message_socket;{ AttrVal('DEVICE','icon','message_socket') }
|
||||
attr DEVICE icon ICON
|
||||
attr DEVICE devicetopic BASE_TOPIC/DEV_ID
|
||||
attr DEVICE readingList $\DEVICETOPIC:.* { my $ret=json2nameValue($EVENT); $ret->{state}=lc($ret->{state}); return $ret }
|
||||
attr DEVICE readingList $\DEVICETOPIC:.* { my $ret=json2nameValue($EVENT); $ret->{state}=lc($ret->{state}) if defined $ret->{state}; return $ret }
|
||||
attr DEVICE setList \
|
||||
on:noArg $\DEVICETOPIC/set {"state":"ON"}\
|
||||
off:noArg $\DEVICETOPIC/set {"state":"OFF"}\
|
||||
@ -518,7 +518,7 @@ attr DEVICE setList \
|
||||
attr DEVICE setStateList on off toggle
|
||||
set DEVICE attrTemplate speechcontrol_type_switch
|
||||
attr DEVICE model zigbee2mqtt_plug
|
||||
setreading DEVICE attrTemplateVersion 20220622
|
||||
setreading DEVICE attrTemplateVersion 20220909
|
||||
|
||||
name:zigbee2mqtt_plug_w_energy_measuring
|
||||
filter:TYPE=MQTT2_DEVICE:FILTER=CID~zigbee.*
|
||||
|
Loading…
Reference in New Issue
Block a user