Added the horstmann thermostat temperature sensor to the automation above as required by pyhton file (eventually read the top of that file!)
Worked in 0.81.6
Updated to 0.82 and my log is showing the following
2018-11-10 20:12:56 ERROR (SyncWorker_3) [homeassistant.components.python_script.heating_thermostat_update.py] Error executing script: ‘NoneType’ object is not callable
Traceback (most recent call last):
File “/usr/src/app/homeassistant/components/python_script.py”, line 166, in execute
exec(compiled.code, restricted_globals, local)
File “heating_thermostat_update.py”, line 51, in
TypeError: ‘NoneType’ object is not callable
2018-11-10 20:12:56 ERROR (SyncWorker_9) [homeassistant.components.python_script.heating_thermostat_update.py] Error executing script: ‘NoneType’ object is not callable
Traceback (most recent call last):
File “/usr/src/app/homeassistant/components/python_script.py”, line 166, in execute
exec(compiled.code, restricted_globals, local)
File “heating_thermostat_update.py”, line 51, in
TypeError: ‘NoneType’ object is not callable
@fergalom If your thermostat has a temperature sensor, you don’t need to pass the temperature to it. You have to use this version of the scipt to change state of the termostat.
Thanks @Bieniu, replaced the python with your linked code and also removed the sensor from the automation but still getting the same error in the log.
2018-11-14 11:18:03 ERROR (SyncWorker_3) [homeassistant.components.python_script.heating_thermostat_update.py] Error executing script: ‘NoneType’ object is not callable
Traceback (most recent call last):
File “/usr/src/app/homeassistant/components/python_script.py”, line 166, in execute
exec(compiled.code, restricted_globals, local)
File “heating_thermostat_update.py”, line 72, in
TypeError: ‘NoneType’ object is not callable
2018-11-14 11:20:01 ERROR (SyncWorker_10) [homeassistant.components.python_script.heating_thermostat_update.py] Error executing script: ‘NoneType’ object is not callable
Traceback (most recent call last):
File “/usr/src/app/homeassistant/components/python_script.py”, line 166, in execute
exec(compiled.code, restricted_globals, local)
File “heating_thermostat_update.py”, line 72, in
TypeError: ‘NoneType’ object is not callable
This is after using script? Thermostat has state. My script has 18 lines but error in your log is in line 51. Do you correctly installed script file? Please remove script from automation, restart HA and show me thermostat’s entity after that.
With python script (18 lines) / automation added back in
2018-11-14 12:39:40 ERROR (SyncWorker_14) [homeassistant.components.python_script.heating_thermostat_update.py] Error executing script: 'NoneType' object is not callable
Traceback (most recent call last):
File "/usr/src/app/homeassistant/components/python_script.py", line 166, in execute
exec(compiled.code, restricted_globals, local)
File "heating_thermostat_update.py", line 8, in <module>
TypeError: 'NoneType' object is not callable