mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-09 20:57:11 +00:00
mqtt2.template: measured-temp => temperature and other zigbee-thermostat related stuff
git-svn-id: https://svn.fhem.de/fhem/trunk@23720 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
40e5b52d45
commit
73e3e20597
@ -814,18 +814,18 @@ attr DEVICE setList \
|
||||
window_open:true,false $\DEVICETOPIC/set {"eurotronic_host_flags": {"window_open": $EVTPART1 }}\
|
||||
boost:true,false $\DEVICETOPIC/set {"eurotronic_host_flags": {"boost": $EVTPART1 }}\
|
||||
x_mirror_display:true,false $\DEVICETOPIC/set {"eurotronic_host_flags": {"mirror_display": $EVTPART1 }}
|
||||
attr DEVICE stateFormat Measured: measured-temp Battery: battery %
|
||||
attr DEVICE stateFormat Measured: temperature Battery: battery %
|
||||
attr DEVICE webCmd desired-temp
|
||||
attr DEVICE widgetOverride desired-temp:knob,min:5,max:30,angleArc:180,width:40,height:40,fgColor:#FF9900,bgColor:#CCCCCC,step:0.5,lineCap:round,angleOffset:225
|
||||
attr DEVICE jsonMap occupied_heating_setpoint:daytemp unoccupied_heating_setpoint:nighttemp child_protection:btnLock current_heating_setpoint:desired-temp local_temperature:measured-temp
|
||||
attr DEVICE jsonMap occupied_heating_setpoint:daytemp unoccupied_heating_setpoint:nighttemp child_protection:btnLock current_heating_setpoint:desired-temp local_temperature:temperature
|
||||
attr DEVICE setStateList on off
|
||||
attr DEVICE model zigbee2mqtt_eurotronic_spirit
|
||||
set DEVICE attrTemplate speechcontrol_type_thermostat
|
||||
deletereading -q DEVICE (?!associatedWith).*
|
||||
setreading DEVICE attrTemplateVersion 20201218
|
||||
setreading DEVICE attrTemplateVersion 20210211
|
||||
|
||||
name:zigbee2mqtt_thermostat_with_weekrofile
|
||||
desc: stub of a version for <a href="https://zigbee.blakadder.com/Moes_HY368-ZB.html">Model HY368-ZB manufactured by Moes</a> via zigbee2mqtt <br>Not yet tested... <br>To contribute, participate in <a href="https://forum.fhem.de/index.php/topic,116535.0.html">Forum Thread</a>
|
||||
desc: Developed for <a href="https://zigbee.blakadder.com/Moes_HY368-ZB.html">Model HY368-ZB manufactured by Moes</a> via zigbee2mqtt <br>Might not completely work for all firmware versions and also some commands seem not yet to be fully integrated on the zigbee2mqtt side... <br>To contribute, participate in <a href="https://forum.fhem.de/index.php/topic,116535.0.html">Forum Thread</a>
|
||||
filter:TYPE=MQTT2_DEVICE:FILTER=CID~zigbee.*
|
||||
order:L_17a
|
||||
par:BASE_TOPIC;base topic set in configuration.yaml of the zigbee2mqtt bridge;{ AttrVal("DEVICE","devicetopic",AttrVal("DEVICE","readingList","")) =~ m,[\b]?([^/:]+)[/].+, ? $1 : undef }
|
||||
@ -843,28 +843,29 @@ attr DEVICE readingList $\DEVICETOPIC:.* { my %h; my $temp = $EVENT; $temp =~ s/
|
||||
attr DEVICE setList \
|
||||
desired-temp:slider,5.0,0.5,30.0,1 $\DEVICETOPIC/set {"current_heating_setpoint": $EVTPART1 }\
|
||||
btnLock:LOCK,UNLOCK $\DEVICETOPIC/set {"child_lock": "$EVTPART1"}\
|
||||
boost:noArg $\DEVICETOPIC/set {"preset": "boost"}\
|
||||
mode:schedule,manual,boost,complex,comfort,eco $\DEVICETOPIC/set {"preset": "$EVTPART1"}\
|
||||
preset:schedule,manual,boost,complex,comfort,eco $\DEVICETOPIC/set {"preset": "$EVTPART1"}\
|
||||
mode:heat,auto,off $DEVICETOPIC/set {"system_mode": "$EVTPART1"}\
|
||||
holidays $\DEVICETOPIC/set/schedule { "holidays":[$EVTPART1] }\
|
||||
workdays $\DEVICETOPIC/set/schedule { "workdays":[$EVTPART1] }\
|
||||
week:5+2,6+1,7 $\DEVICETOPIC/set $EVTPART1\
|
||||
weekprofile { FHEM::attrT_z2m_thermostat_Utils::z2t_send_weekprofile($NAME, $EVTPART1, $EVTPART2) }\
|
||||
x_send_set_payload:textField { my $payload = $EVENT;$payload =~ s/$EVTPART0 //; qq($\DEVICETOPIC/set $payload)}
|
||||
attr DEVICE getList desired-temp:noArg desired-temp $\DEVICETOPIC/get {"current_heating_setpoint": ""}\
|
||||
measured-temp:noArg measured-temp $\DEVICETOPIC/get {"local_temperature": ""}\
|
||||
mode:noArg mode $\DEVICETOPIC/get {"preset": ""}
|
||||
attr DEVICE periodicCmd measured-temp:55
|
||||
temperature:noArg temperature $\DEVICETOPIC/get {"local_temperature": ""}\
|
||||
preset:noArg preset $\DEVICETOPIC/get {"preset": ""}
|
||||
attr DEVICE periodicCmd temperature:55
|
||||
attr DEVICE stateFormat btnLock\
|
||||
Measured: measured-temp Battery: batteryPercent %
|
||||
Measured: temperature Battery: batteryPercent %
|
||||
attr DEVICE devStateIcon LOCKED:secur_lock:btnLock+UNLOCK UNLOCKED:secur_open:btnLock+LOCK
|
||||
attr DEVICE webCmd desired-temp
|
||||
attr DEVICE widgetOverride desired-temp:knob,min:5,max:30,angleArc:180,width:40,height:40,fgColor:#FF9900,bgColor:#CCCCCC,step:0.5,lineCap:round,angleOffset:225
|
||||
attr DEVICE jsonMap current_heating_setpoint:desired-temp local_temperature:measured-temp Battery:batteryPercent preset:mode
|
||||
attr DEVICE jsonMap current_heating_setpoint:desired-temp local_temperature:temperature Battery:batteryPercent system_mode:mode
|
||||
attr DEVICE setStateList on off
|
||||
attr DEVICE userReadings batteryState:battery_low.* {ReadingsVal($name,'battery_low','false') eq 'false'?'ok':'low'}
|
||||
attr DEVICE model zigbee2mqtt_thermostat_with_weekrofile
|
||||
set DEVICE attrTemplate speechcontrol_type_thermostat
|
||||
deletereading -q DEVICE (?!associatedWith).*
|
||||
setreading DEVICE attrTemplateVersion 20201218
|
||||
setreading DEVICE attrTemplateVersion 20210211
|
||||
|
||||
|
||||
###########################################
|
||||
@ -2155,15 +2156,15 @@ attr DEVICE jsonMap Device:0 Battery:0 BatteryPercentage:batteryPercent BatteryV
|
||||
deletereading -q DEVICE (?!associatedWith).*
|
||||
attr DEVICE setList desired-temp:slider,5.0,0.5,30.0,1 CMNDTOPIC/ZbSend {"device":"0xDEV_ID","Write":{"OccupiedHeatingSetpoint": $EVTPART1}}\
|
||||
temp-offset:slider,-10.0,0.5,10.0,1 CMNDTOPIC/ZbSend {"device":"0xDEV_ID","Write":{"LocalTemperatureCalibration":$EVTPART1}}
|
||||
attr DEVICE stateFormat Measured: measured-temp Battery: batteryPercent %
|
||||
attr DEVICE stateFormat Measured: temperature Battery: batteryPercent %
|
||||
attr DEVICE webCmd desired-temp
|
||||
attr DEVICE widgetOverride desired-temp:knob,min:5,max:30,angleArc:180,width:40,height:40,fgColor:#FF9900,bgColor:#CCCCCC,step:0.5,lineCap:round,angleOffset:225
|
||||
attr DEVICE setStateList on off
|
||||
attr DEVICE jsonMap Battery:0 Device:0 BatteryPercentage:batteryPercent LocalTemperature:measured-temp OccupiedHeatingSetpoint:dayTemp UnoccupiedHeatingSetpoint:nightTemp CurrentTemperatureSetPoint:desired-temp PIHeatingDemand:valve
|
||||
attr DEVICE jsonMap Battery:0 Device:0 BatteryPercentage:batteryPercent LocalTemperature:temperature OccupiedHeatingSetpoint:dayTemp UnoccupiedHeatingSetpoint:nightTemp CurrentTemperatureSetPoint:desired-temp PIHeatingDemand:valve
|
||||
option:{ CALLSPEECHRECOGN }
|
||||
set DEVICE attrTemplate speechcontrol_type_thermostat
|
||||
option:global
|
||||
setreading DEVICE attrTemplateVersion 20201202
|
||||
setreading DEVICE attrTemplateVersion 20210211
|
||||
|
||||
###########################################
|
||||
# SHELLY
|
||||
|
Loading…
x
Reference in New Issue
Block a user