- 
                Notifications
    You must be signed in to change notification settings 
- Fork 13
Open
Description
if the temperature of the thermostat is set to MAX, the script runs into a parsing error.
The same happens when the "Window open" button is pressed
the whole behavior is reproducible
Window open
Exporter Log
An error has occurred while serving metrics:
error collecting metric Desc{fqName: "fritzbox_thermostat_goal", help: "Desired temperature (user controlled) in units of 0.1 °C", constLabels: {}, variableLabels: [device_id device_type device_name]}: strconv.ParseFloat: parsing "ON": invalid syntax
Console Log
2024/02/08 08:57:01 Unable to parse goal temperature of "Stube" : strconv.ParseFloat: parsing "ON": invalid syntax
Console Log Debug
Window Open
<device identifier="09995 0456475" id="16" functionbitmask="320" fwversion="05.08" manufacturer="AVM" productname="FRITZ!DECT 301">
		<present>1</present>
		<txbusy>0</txbusy>
		<name>Stube</name>
		<battery>60</battery>
		<batterylow>0</batterylow>
		<temperature>
			<celsius>175</celsius>
			<offset>-45</offset>
		</temperature>
		<hkr>
			<tist>35</tist>
			<tsoll>254</tsoll>
			<absenk>36</absenk>
			<komfort>49</komfort>
			<lock>0</lock>
			<devicelock>0</devicelock>
			<errorcode>0</errorcode>
			<windowopenactiv>1</windowopenactiv>
			<windowopenactiveendtime>1707383371</windowopenactiveendtime>
			<boostactive>0</boostactive>
			<boostactiveendtime>0</boostactiveendtime>
			<batterylow>0</batterylow>
			<battery>60</battery>
			<nextchange>
				<endperiod>1707400800</endperiod>
				<tchange>49</tchange>
			</nextchange>
			<summeractive>0</summeractive>
			<holidayactive>0</holidayactive>
			<adaptiveHeatingActive>1</adaptiveHeatingActive>
			<adaptiveHeatingRunning>0</adaptiveHeatingRunning>
		</hkr>
	</device>
Temp set to max
Exporter Log
An error has occurred while serving metrics:
error collecting metric Desc{fqName: "fritzbox_thermostat_goal", help: "Desired temperature (user controlled) in units of 0.1 °C", constLabels: {}, variableLabels: [device_id device_type device_name]}: strconv.ParseFloat: parsing "ON": invalid syntax
Console Log
2024/02/08 09:36:03 Unable to parse goal temperature of "Stube" : strconv.ParseFloat: parsing "ON": invalid syntax
<device identifier="09995 0456475" id="16" functionbitmask="320" fwversion="05.08" manufacturer="AVM" productname="FRITZ!DECT 301">
		<present>1</present>
		<txbusy>0</txbusy>
		<name>Stube</name>
		<battery>60</battery>
		<batterylow>0</batterylow>
		<temperature>
			<celsius>185</celsius>
			<offset>-45</offset>
		</temperature>
		<hkr>
			<tist>37</tist>
			<tsoll>254</tsoll>
			<absenk>36</absenk>
			<komfort>49</komfort>
			<lock>0</lock>
			<devicelock>0</devicelock>
			<errorcode>0</errorcode>
			<windowopenactiv>0</windowopenactiv>
			<windowopenactiveendtime>0</windowopenactiveendtime>
			<boostactive>0</boostactive>
			<boostactiveendtime>0</boostactiveendtime>
			<batterylow>0</batterylow>
			<battery>60</battery>
			<nextchange>
				<endperiod>1707400800</endperiod>
				<tchange>49</tchange>
			</nextchange>
			<summeractive>0</summeractive>
			<holidayactive>0</holidayactive>
			<adaptiveHeatingActive>1</adaptiveHeatingActive>
			<adaptiveHeatingRunning>0</adaptiveHeatingRunning>
		</hkr>
	</device>
Xameon42
Metadata
Metadata
Assignees
Labels
No labels