2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 16:56:54 +00:00

zwave.template: 1st commented version with configByte etc.

git-svn-id: https://svn.fhem.de/fhem/trunk@22932 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
Beta-User 2020-10-07 05:40:57 +00:00
parent ed557f874a
commit 4e315658d9

View File

@ -64,20 +64,20 @@ attr DEVICE eventMap { usr=>{'dim.100'=>'dim 99' } }
attr DEVICE webCmd dim
attr DEVICE cmdIcon stop:fts_shutter_manual
attr DEVICE widgetOverride dim:colorpicker,BRI,0,1,99
set DEVICE configRollerShutterOperatingModes 1RollerBlindModeWithPositioning
set DEVICE configReportsType BlindPositionReportsSentToThe0
set DEVICE configByte 10 1 ##configRollerShutterOperatingModes 1RollerBlindModeWithPositioning
set DEVICE configByte 3 0 ##configReportsType BlindPositionReportsSentToThe0
set DEVICE configByte 14 SWITCHTYPE
option:{ RADIO_SCENES_ACTIVATION }
set DEVICE configScenesAssociationsActivation ScenesActivation
set DEVICE configByte 50 1 ##configScenesAssociationsActivation ScenesActivation
option:{ RADIO_ASSOCIATIONS_ACTIVATION }
set DEVICE configScenesAssociationsActivation AssociationsActivation
set DEVICE configByte 50 0 ##configScenesAssociationsActivation AssociationsActivation
option:{ CALLSPEECHRECOGN }
set DEVICE attrTemplate speechcontrol_type_blind
#closing section
option:{ 1 }
get DEVICE configAll
get DEVICE associationAll
setreading DEVICE attrTemplateVersion FGRM222_Roller_Mode_20200925
setreading DEVICE attrTemplateVersion FGRM222_Roller_Mode_20201007
name:FGRM222_Ventian_Blind_Mode
@ -96,22 +96,22 @@ attr DEVICE webCmd dim
attr DEVICE cmdIcon stop:fts_shutter_manual
attr DEVICE widgetOverride dim:colorpicker,BRI,0,1,99
attr DEVICE devStateIcon { FHEM::attrT_ZWave_Utils::devStateIcon_shutter($name,"FGRM222","venetian") }
set DEVICE configRollerShutterOperatingModes 2VenetianBlindModeWith2
set DEVICE configReportsType BlindPositionReportsSentToThe1
set DEVICE configSetLamellasBackToPrevious13 0LamellasReturnToPreviouslySet0
set DEVICE configByte 10 2 ##configRollerShutterOperatingModes 2VenetianBlindModeWith2
set DEVICE configByte 3 1 ##configReportsType BlindPositionReportsSentToThe1
set DEVICE configByte 13 0 ##configSetLamellasBackToPrevious13 0LamellasReturnToPreviouslySet0
set DEVICE configByte 14 SWITCHTYPE
attr DEVICE userReadings dim:power..0.0.W {my $pos = ReadingsVal($name,"state",0) =~ m,dim, ? ReadingsNum($name,"state",0) : ReadingsNum($name,"dim",0);; my $pos1 = ReadingsNum($name,"position",0);; $pos = $pos1 if ($pos > $pos1 +3 || $pos < $pos1 -3);; return $pos }, positionSlat:power..0.0.W {ReadingsVal($name,"position",0) =~ m,Slat.([0-9]+),?$1:undef}
option:{ RADIO_SCENES_ACTIVATION }
set DEVICE configScenesAssociationsActivation ScenesActivation
set DEVICE configByte 50 1 ##configScenesAssociationsActivation ScenesActivation
option:{ RADIO_ASSOCIATIONS_ACTIVATION }
set DEVICE configScenesAssociationsActivation AssociationsActivation
set DEVICE configByte 50 0 ##configScenesAssociationsActivation AssociationsActivation
option:{ CALLSPEECHRECOGN }
set DEVICE attrTemplate speechcontrol_type_blind
#closing section
option:{ 1 }
get DEVICE configAll
get DEVICE associationAll
setreading DEVICE attrTemplateVersion FGRM222_Ventian_Blind_Mode_20200925
setreading DEVICE attrTemplateVersion FGRM222_Ventian_Blind_Mode_20201007
name:FGRM222_Choice_demo
filter:TYPE=ZWave
@ -166,17 +166,17 @@ attr CHANNEL01 eventMap { usr=>{'dim.100'=>'dim 99' } }
attr CHANNEL01 webCmd dim
attr CHANNEL01 widgetOverride dim:colorpicker,BRI,0,1,99
attr CHANNEL01 userReadings dim:(dim|reportedState).* {$1 =~ /reportedState/ ? ReadingsNum($name,"reportedState",0):ReadingsNum($name,"state",0)}
set MAINCHANNEL configEnergyReportsOnChange 10
set MAINCHANNEL configByte 65 10 ##configEnergyReportsOnChange 10
option:{ RADIO_SCENES_ACTIVATION }
set MAINCHANNEL configS1SwitchScenesSent 15
set MAINCHANNEL configS2SwitchScenesSent 15
set MAINCHANNEL configByte 40 15 ##configS1SwitchScenesSent 15 (=1+2+4+8=all keypress types)
set MAINCHANNEL configByte 41 15 ##configS2SwitchScenesSent 15
option:{ RADIO_ASSOCIATIONS_ACTIVATION }
set MAINCHANNEL configS1SwitchScenesSent 0
set MAINCHANNEL configS2SwitchScenesSent 0
set MAINCHANNEL configByte 40 0 ##configS1SwitchScenesSent 0
set MAINCHANNEL configByte 41 0 ##configS2SwitchScenesSent 0
option:{ 1 }
set MAINCHANNEL configByte 20 SWITCHTYPE
set MAINCHANNEL configOperatingMode RollerBlind
set MAINCHANNEL configForceCalibration ForceDeviceCalibration
set MAINCHANNEL configByte 151 1 ##configOperatingMode RollerBlind
set MAINCHANNEL configByte 150 2 ##configForceCalibration ForceDeviceCalibration
option:{ CALLSPEECHRECOGN }
set CHANNEL01 attrTemplate speechcontrol_type_blind
#closing section
@ -184,7 +184,7 @@ option:{ 1 }
get MAINCHANNEL configAll
get MAINCHANNEL associationAll
{ fhem "trigger $FW_wname JS:location.href='$FW_ME?room=%23devspec%3dMAINCHANNEL,CHANNEL01,CHANNEL02'" if($cl && $cl->{TYPE} eq "FHEMWEB") }
setreading DEVICE attrTemplateVersion FGR223_Roller_Mode_20200930
setreading DEVICE attrTemplateVersion FGR223_Roller_Mode_20201007
name:FGR223_Venetian_Mode
filter:TYPE=ZWave
@ -207,15 +207,15 @@ attr CHANNEL01 widgetOverride dim:colorpicker,BRI,0,1,99
attr CHANNEL01 userReadings dim:(dim|reportedState).* {$1 =~ /reportedState/ ? ReadingsNum($name,"reportedState",0):ReadingsNum($name,"state",0)}
set MAINCHANNEL configEnergyReportsOnChange 10
option:{ RADIO_SCENES_ACTIVATION }
set MAINCHANNEL configS1SwitchScenesSent 15
set MAINCHANNEL configS2SwitchScenesSent 15
set MAINCHANNEL configByte 40 15 ##configS1SwitchScenesSent 15 (=1+2+4+8=all keypress types)
set MAINCHANNEL configByte 41 15 ##configS2SwitchScenesSent 15
option:{ RADIO_ASSOCIATIONS_ACTIVATION }
set MAINCHANNEL configS1SwitchScenesSent 0
set MAINCHANNEL configS2SwitchScenesSent 0
set MAINCHANNEL configByte 40 0 ##configS1SwitchScenesSent 0
set MAINCHANNEL configByte 41 0 ##configS2SwitchScenesSent 0
option:{ 1 }
set MAINCHANNEL configOperatingMode VenetianBlind
set MAINCHANNEL configByte 20 SWITCHTYPE
set MAINCHANNEL configForceCalibration ForceDeviceCalibration
set MAINCHANNEL configByte 151 2 ##configOperatingMode VenetianBlind
set MAINCHANNEL configByte 150 2 ##configForceCalibration ForceDeviceCalibration
option:{ CALLSPEECHRECOGN }
set CHANNEL01 attrTemplate speechcontrol_type_blind
#closing section
@ -223,7 +223,7 @@ option:{ 1 }
get MAINCHANNEL configAll
get MAINCHANNEL associationAll
{ fhem "trigger $FW_wname JS:location.href='$FW_ME?room=%23devspec%3dMAINCHANNEL,CHANNEL01,CHANNEL02'" if($cl && $cl->{TYPE} eq "FHEMWEB") }
setreading DEVICE attrTemplateVersion FGR223_Venetian_Mode_20200930
setreading DEVICE attrTemplateVersion FGR223_Venetian_Mode_20201007
name:----AEOTEC-devices-section--------
@ -265,17 +265,16 @@ desc:Applies to AEON Labs ZW100 MultiSensor 6 when battery powered.<br>NOTE: ear
par:RADIO_REPORT_UV;Send also UV values;{ undef }
par:RADIO_NO_UV_REPORT;Do not send UV values;{ undef }
set DEVICE configGroup1Interval 3600
set DEVICE configByte 40 0
#configReportOnlyOnThresholds Disabled
set DEVICE configByte 40 0 ##configReportOnlyOnThresholds Disabled
option:{ RADIO_REPORT_UV}
set DEVICE configGroup1Reports 241
set DEVICE configLong 101 241 ##configGroup1Reports 241 (1+16+32+64+128)
option:{ RADIO_NO_UV_REPORT }
set DEVICE configGroup1Reports 113
set DEVICE configLong 101 225 ##configGroup1Reports 225 (1+32+64+128)
option:{ 1 }
get DEVICE configGroup1Interval
get DEVICE configReportOnlyOnThresholds
get DEVICE configGroup1Reports
setreading DEVICE attrTemplateVersion ZW100_Multisensor_Battery_20201006
get DEVICE config 111 ##configGroup1Interval
get DEVICE config 40 ##configReportOnlyOnThresholds
get DEVICE config 101 ##configGroup1Reports
setreading DEVICE attrTemplateVersion ZW100_Multisensor_Battery_20201007
name:ZW100_Multisensor_USB
@ -285,14 +284,14 @@ desc:Applies to AEON Labs ZW100 MultiSensor 6 when powered over USB.<br>NOTE: ea
par:RADIO_REPORT_UV;Send also UV values;{ undef }
par:RADIO_NO_UV_REPORT;Do not send UV values;{ undef }
set DEVICE configGroup1Interval 30
set DEVICE configByte 40 1
set DEVICE configByte 40 1 ##configReportOnlyOnThresholds Enabled
#configReportOnlyOnThresholds Enabled
option:{ RADIO_REPORT_UV}
set DEVICE configGroup1Reports 240
set DEVICE configLong 101 240 ##configGroup1Reports 240 (16+32+64+128)
option:{ RADIO_NO_UV_REPORT }
set DEVICE configGroup1Reports 112
set DEVICE configLong 101 224 ##configGroup1Reports 224 (32+64+128)
#closing section
option:{ 1 }
get DEVICE configAll
setreading DEVICE attrTemplateVersion ZW100_Multisensor_USB_20201006
setreading DEVICE attrTemplateVersion ZW100_Multisensor_USB_20201007