Hey everyone so I finally got my zwave usb stick so the grand migration of all of my devices has begun including adding a zwave thermostat.
So I wrote this app for the thermostat. This is only my first rendition of it as I need to put in door checks so in case a kid leaves a door open for too long to shut off the AC/Heat.
https://github.com/TheFuzz4/HomeAssistant/blob/master/appdaemon/apps/thermostat_control.py
But its throwing this error when attempting to compare the current set point to where it should be
2018-06-11 10:30:17.403465 WARNING AppDaemon: ------------------------------------------------------------
2018-06-11 10:30:17.405487 WARNING AppDaemon: Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/appdaemon/appdaemon.py", line 581, in worker
funcref(self.sanitize_timer_kwargs(app, args["kwargs"]))
File "/config/appdaemon/apps/thermostat_control.py", line 20, in whole_house_thermost_control_cb
if self.get_state(self.thermostat_ac, attribute="temperature") != self.kwargs["ACTempID"]:
AttributeError: 'thermostat_control' object has no attribute 'kwargs'
2018-06-11 10:30:17.406212 WARNING AppDaemon: ------------------------------------------------------------
I’ve tried putting the kwargs in () and without the () but I must be missing something super simple here. Thank you all for your assistance.