2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 09:16:53 +00:00

mqtt2.template: change speech recogn thermostat template name; other small speech recogn changes

git-svn-id: https://svn.fhem.de/fhem/trunk@21396 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
Beta-User 2020-03-09 11:09:10 +00:00
parent 3a032d357b
commit a8800a30a3
3 changed files with 17 additions and 12 deletions

View File

@ -40,7 +40,7 @@ attr DEVICE debug DEBUG
attr DEVICE actCycle ACT attr DEVICE actCycle ACT
attr DEVICE autosaveConfig CONFIG attr DEVICE autosaveConfig CONFIG
attr DEVICE event-on-change-reading EOCR attr DEVICE event-on-change-reading EOCR
#set DEVICE attrTemplate speech_recognition_type_thermostate set DEVICE attrTemplate speech_recognition_type_thermostat
###################################################################### ######################################################################
###################################################################### ######################################################################
@ -70,7 +70,7 @@ attr DEVICE webCmdLabel Ist<br>:Soll<br>
attr DEVICE widgetOverride temperature:selectnumbers,15,0.1,29,1,lin attr DEVICE widgetOverride temperature:selectnumbers,15,0.1,29,1,lin
attr DEVICE autosaveConfig CONFIG attr DEVICE autosaveConfig CONFIG
attr DEVICE event-on-change-reading EOCR attr DEVICE event-on-change-reading EOCR
#set DEVICE attrTemplate speech_recognition_type_thermostate set DEVICE attrTemplate speech_recognition_type_thermostat
###################################################################### ######################################################################
###################################################################### ######################################################################

View File

@ -2199,7 +2199,7 @@ attr DEVICE setStateList on off
attr DEVICE stateFormat mode\ attr DEVICE stateFormat mode\
desired-temp °C desired-temp °C
attr DEVICE webCmd mode:desired-temp attr DEVICE webCmd mode:desired-temp
set DEVICE attrTemplate speech_recognition_type_thermostate set DEVICE attrTemplate speech_recognition_type_thermostat
attr DEVICE model ems-esp_thermostat_simple attr DEVICE model ems-esp_thermostat_simple
name:ems-esp_thermostat_RC35_type name:ems-esp_thermostat_RC35_type
@ -2213,7 +2213,7 @@ attr DEVICE setList mode:uzsuSelectRadio,auto,manual BASEPATH/thermostat_cmd_mod
daytemp:slider,15.0,0.5,30.0,1 BASEPATH/thermostat_cmd_daytemp1 $EVTPART1\ daytemp:slider,15.0,0.5,30.0,1 BASEPATH/thermostat_cmd_daytemp1 $EVTPART1\
nighttemp:slider,15.0,0.5,30.0,1 BASEPATH/thermostat_cmd_nighttemp1 $EVTPART1\ nighttemp:slider,15.0,0.5,30.0,1 BASEPATH/thermostat_cmd_nighttemp1 $EVTPART1\
holidaytemp:slider,15.0,0.5,30.0,1 BASEPATH/thermostat_cmd_holidayttemp1 $EVTPART1 holidaytemp:slider,15.0,0.5,30.0,1 BASEPATH/thermostat_cmd_holidayttemp1 $EVTPART1
set DEVICE attrTemplate speech_recognition_type_thermostate set DEVICE attrTemplate speech_recognition_type_thermostat
attr DEVICE model ems-esp_thermostat_RC35_type attr DEVICE model ems-esp_thermostat_RC35_type

View File

@ -60,9 +60,9 @@ option:TYPE=gassistant
name:speech_recognition_type_thermostate name:speech_recognition_type_thermostate
filter:NAME=speechrecognTesting filter:NAME=speechrecognTesting
order:100005 order:100005
desc:template to set speech recognition attributes for genericDeviceType thermostate desc:template to set speech recognition attributes for genericDeviceType thermostat
option:{my @devices=devspec2array("TYPE=(siri|alexa|gassistant)");;return 1 if $devices[0];;return 0} option:{my @devices=devspec2array("TYPE=(siri|alexa|gassistant)");;return 1 if $devices[0];;return 0}
attr DEVICE genericDeviceType thermostate attr DEVICE genericDeviceType thermostat
option:TYPE=siri option:TYPE=siri
option:{my @devices=devspec2array("TYPE=(alexa)");; $devices[0] ? return 1 : return 0} option:{my @devices=devspec2array("TYPE=(alexa)");; $devices[0] ? return 1 : return 0}
option:TYPE=gassistant option:TYPE=gassistant
@ -103,13 +103,18 @@ set DEVICE attrTemplate speech_recognition_alaxaName_secondrun ALEXAISNAME=ALEXA
name:speech_recognition_alaxaName_secondrun name:speech_recognition_alaxaName_secondrun
filter:NAME=speechrecognTesting filter:NAME=speechrecognTesting
order:1000020b order:1000020b
desc:generic template to doublecheck alexaName attribute setting to avoid doubletes , call e.g. with set xy attrTemplate speech_recognition_alaxaName_secondrun ALEXAISNAME=myAlexaName desc:generic template to doublecheck alexaName attribute setting to avoid doubletes. Only intented for internal use by speech_recognition_alaxaName_firstrun and -ask_different_name, called e.g. with set xy attrTemplate speech_recognition_alaxaName_secondrun ALEXAISNAME=myAlexaName
option:{my @devices=devspec2array("TYPE=(alexa)");; $devices[0] ? return 1 : return 0} option:{my @devices=devspec2array("TYPE=(alexa)");; $devices[0] ? return 1 : return 0}
par:ALEXAISNAME;Please enter alexaName;{ AttrVal("DEVICE","alexaName",undef) } par:ALEXAISNAME;Please enter alexaName;{ AttrVal("DEVICE","alexaName",undef) }
option:{my @devices=devspec2array("alexaName=ALEXAISNAME");; $devices[1] ? return 1 : return 0} option:{my @devices=devspec2array("alexaName=ALEXAISNAME");; $devices[1] ? return 1 : return 0}
par:ALEXANAME;Please enter alexaName (you may be asked multiple times to avoid already existing names);{undef) } deleteattr DEVICE alexaName
attr DEVICE alexaName ALEXANAME set DEVICE attrTemplate speech_recognition_alaxaName_ask_different_name
name:speech_recognition_alaxaName_ask_different_name
filter:NAME=speechrecognTesting
order:1000020c
desc:generic template to set speech recognition attribute alexaName; only intented for internal use by speech_recognition_alaxaName_secondrun, called e.g. with set xy attrTemplate speech_recognition_alaxaName_ask_different_name ALEXANAME=myAlexaName
option:{my @devices=devspec2array("TYPE=(alexa)");; $devices[0] ? return 1 : return 0} option:{my @devices=devspec2array("TYPE=(alexa)");; $devices[0] ? return 1 : return 0}
#set DEVICE attrTemplate speech_recognition_alaxaName_firstrun par:ALEXANAME;Please enter alexaName (the one provided last time seem to exist already);{undef) }
attr DEVICE alexaName ALEXANAME
set DEVICE attrTemplate speech_recognition_alaxaName_secondrun ALEXAISNAME=ALEXANAME