mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-15 22:26:04 +00:00
10_MAX.pm: add batteryState (Forum #87575)
git-svn-id: https://svn.fhem.de/fhem/trunk@16833 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
ff0d3453cc
commit
6edc179bf5
@ -685,6 +685,7 @@ MAX_Parse($$)
|
||||
|
||||
readingsBulkUpdate($shash, "mode", $ctrl_modes[$mode] );
|
||||
readingsBulkUpdate($shash, "battery", $batterylow ? "low" : "ok");
|
||||
readingsBulkUpdate($shash, "batteryState", $batterylow ? "low" : "ok"); # Forum #87575
|
||||
#The formatting of desiredTemperature must match with in MAX_Set:$templist
|
||||
#Sometime we get an MAX_Parse MAX,1,ThermostatState,01090d,180000000000, where desiredTemperature is 0 - ignore it
|
||||
readingsBulkUpdate($shash, "desiredTemperature", MAX_SerializeTemperature($desiredTemperature)) if($desiredTemperature != 0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user