From 8e4a9f4b7cca679d8d473126a6be602b7338df14 Mon Sep 17 00:00:00 2001
From: Beta-User <>
Date: Sun, 9 Oct 2022 09:05:10 +0000
Subject: [PATCH] mqtt2.template: update ems-esp templates
git-svn-id: https://svn.fhem.de/fhem/trunk@26510 2b470e98-0d58-463d-a4d8-8e2adae1ed80
---
fhem/FHEM/lib/AttrTemplate/mqtt2.template | 19 ++++++++++---------
1 file changed, 10 insertions(+), 9 deletions(-)
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
###############