Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When Temp is set to Max or Window Open - error Unable to parse goal temperature #17

Open
Kwa5ir opened this issue Feb 8, 2024 · 0 comments

Comments

@Kwa5ir
Copy link

Kwa5ir commented Feb 8, 2024

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant