ScratMan / HASmartThermostat

Smart Thermostat with PID controller for HomeAssistant
336 stars 48 forks source link

could not convert string to float: 'off' #178

Closed Hood-fr closed 4 months ago

Hood-fr commented 8 months ago

in climate.py, line 974 : return float(self.hass.states.get(self.heater_or_cooler_entity).state) > 0

I get the recurrent error which fails the integration of HASmartThermostat : could not convert string to float: 'off'

Integration on a docker container within a Synology NAS.

Chupaka commented 8 months ago

What's your config? Have you set pwm parameter?

Hood-fr commented 8 months ago

Pwm set to 0 as recommended by documentation for heater entity with direct input

Chupaka commented 8 months ago

If a valve is used, pwm parameter should be set to 0.

You mean this part? But valve's state should be numeric, 0-100. Your 'off' value says it's more switch than valve...

Hood-fr commented 8 months ago

OK got it, thanks.