2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-15 22:26:04 +00:00

mqtt2.template: update ems-esp templates

git-svn-id: https://svn.fhem.de/fhem/trunk@26510 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
Beta-User 2022-10-09 09:05:10 +00:00
parent da9d15ec03
commit 8e4a9f4b7c

View File

@ -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 <a href="https://github.com/proddy/EMS-ESP">EMS-ESP</a> with Firmware 2.1.0<br>.<a href="https://forum.fhem.de/index.php/topic,104968.0.html">Forum Thread</a>
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
###############