diff --git a/fhem/FHEM/lib/AttrTemplate/mqtt2.template b/fhem/FHEM/lib/AttrTemplate/mqtt2.template index 44a86d43b..3302b51c5 100644 --- a/fhem/FHEM/lib/AttrTemplate/mqtt2.template +++ b/fhem/FHEM/lib/AttrTemplate/mqtt2.template @@ -4153,33 +4153,34 @@ attr DEVICE icon ICON attr DEVICE devStateIcon set.auto:edit_settings:mode+manual set.manual:edit_settings:mode+auto auto:time_automatic:mode+manual manual:time_manual_mode:mode+auto set.*°C:edit_settings attr DEVICE jsonMap hc1_mode:mode hc1_seltemp:desired-temp hc1_daytemp:daytemp hc1_nighttemp:nighttemp hc1_holidayttemp:holidaytemp attr DEVICE readingList DEV_ID/thermostat_data:.* { json2nameValue($EVENT, '', $JSONMAP) } -attr DEVICE setList mode:uzsuSelectRadio,auto,manual DEV_ID/thermostat_cmd_mode1 $EVTPART1\ - desired-temp:slider,15.0,0.5,30.0,1 DEV_ID/thermostat_cmd_temp1 $EVTPART1 +attr DEVICE setList mode:uzsuSelectRadio,auto,manual DEV_ID/thermostat { "cmd":"hc1_mode","data":"$EVTPART1" }\ + desired-temp:slider,15.0,0.5,30.0,1 DEV_ID/thermostat { "cmd":"hc1_seltemp","data":$EVTPART1 } attr DEVICE setStateList on off attr DEVICE stateFormat mode\ desired-temp °C attr DEVICE webCmd mode:desired-temp set DEVICE attrTemplate speechcontrol_type_thermostat attr DEVICE model ems-esp_thermostat_simple -setreading DEVICE attrTemplateVersion 20221008 +setreading DEVICE attrTemplateVersion 20221009 name:ems-esp_thermostat_RC35_type filter:TYPE=MQTT2_DEVICE desc:To configure a thermostat comparable to RC35 for use with an EMS-ESP with Firmware 2.1.0
.Forum Thread order:E_02c1 par:DEV_ID;ID topic set, default is "ems-esp";{ AttrVal('DEVICE','readingList','') =~ m,[^/:]+/([^/]+), ? $1 : 'ems-esp' } -attr DEVICE readingList DEV_ID/thermostat_data:.* { json2nameValue($EVENT) }\ +attr DEVICE jsonMap hc1_mode:mode hc1_seltemp:desired-temp hc1_daytemp:daytemp hc1_nighttemp:nighttemp hc1_holidayttemp:holidaytemp +attr DEVICE readingList DEV_ID/thermostat_data:.* { json2nameValue($EVENT, '', $JSONMAP) }\ DEV_ID/thermostat_data1:.* { json2nameValue($EVENT, '', $JSONMAP) }\ DEV_ID/thermostat_data_hc1:.* { json2nameValue($EVENT, '', $JSONMAP) } attr DEVICE setList mode:uzsuSelectRadio,auto,manual DEV_ID/thermostat_cmd_mode1 $EVTPART1 \ - desired-temp:slider,15.0,0.5,30.0,1 DEV_ID/thermostat_cmd_temp1 $EVTPART1\ - daytemp:slider,15.0,0.5,30.0,1 DEV_ID/thermostat_cmd_daytemp1 $EVTPART1\ - nighttemp:slider,15.0,0.5,30.0,1 DEV_ID/thermostat_cmd_nighttemp1 $EVTPART1\ - holidaytemp:slider,15.0,0.5,30.0,1 DEV_ID/thermostat_cmd_holidayttemp1 $EVTPART1 + desired-temp:slider,15.0,0.5,30.0,1 DEV_ID/thermostat { "cmd":"hc1_seltemp","data":$EVTPART1 }\ + daytemp:slider,15.0,0.5,30.0,1 DEV_ID/thermostat { "cmd":"hc1_daytemp","data":$EVTPART1 }\ + nighttemp:slider,15.0,0.5,30.0,1 DEV_ID/thermostat { "cmd":"hc1_nighttemp","data":$EVTPART1 }\ + holidaytemp:slider,15.0,0.5,30.0,1 DEV_ID/thermostat { "cmd":"hc1_holidayttemp","data":$EVTPART1 } attr DEVICE model ems-esp_thermostat_RC35_type attr DEVICE stateFormat mode\ seltemp °C -setreading DEVICE attrTemplateVersion 20221008 +setreading DEVICE attrTemplateVersion 20221009 ###############