[userMODULE] ClimateControl (Updated Dec 17, 2014)
Posted: 06 Aug 2014 01:20
Ok, so this one was fun to put together; especially since I wrote most of it from scratch and only referred to other modules for references.
This module allows you to set your thermostat mode to heat, cool, auto or off modes depending on the time of year and based on the current temperature outside. I don't use auto mode on my thermostat because some parts of the year either though it may be cold outside I can deal without the heat in the house, thus saving more energy and $$$.
When configuring this module, it will ask you for the City and Country you live in. This will allow the module to retrieve the current temperature outside just like the OpenWeather module does. It also asks which units the measurement should be in, either Celsius or Fahrenheit. The mode to set the thermostat to and the month to change the mode.
Currently, you will have to enter the actual device node Id of your thermostat because I'm unable to list it as a device like all the other modules do with the switches, dimmers and sensors. This field requires to be an integer, for example; my thermostat id is 2, so I would enter the number "2" in this field (which is already present as a placeholder and as an example). You can look up your node Id of your thermostat in the Expert UI screen.
I also list your desired Target Temp, this is used to calculate whether to set your thermostat mode at your selected month. For instance, if you select the heat mode and the temperature outside falls below your desired temperature and you've entered and you've selected October as your month your thermostat will be set to heat mode. The opposite holds true to "Cool" mode. If you select "Off" or "Auto", the thermostat will just be set to those modes. The 'Target Temp' is optional so you don't have to enter any values and will only appear once one of the modes is selected.
Known Bugs / Issues:
***None known ***
Misc:
More testing and different scenarios still need to be performed. Basic functionality works.
To-Do:
1. Enhancement such as setting the temp on the thermostat.
2. Add an array type structure in the json file so that one can add multiple instances in the module instead of adding multiple modules. (COMPLETE - now in version 1.0.1 and renamed from ThermostatRules to ClimateControl)
This module allows you to set your thermostat mode to heat, cool, auto or off modes depending on the time of year and based on the current temperature outside. I don't use auto mode on my thermostat because some parts of the year either though it may be cold outside I can deal without the heat in the house, thus saving more energy and $$$.
When configuring this module, it will ask you for the City and Country you live in. This will allow the module to retrieve the current temperature outside just like the OpenWeather module does. It also asks which units the measurement should be in, either Celsius or Fahrenheit. The mode to set the thermostat to and the month to change the mode.
Currently, you will have to enter the actual device node Id of your thermostat because I'm unable to list it as a device like all the other modules do with the switches, dimmers and sensors. This field requires to be an integer, for example; my thermostat id is 2, so I would enter the number "2" in this field (which is already present as a placeholder and as an example). You can look up your node Id of your thermostat in the Expert UI screen.
I also list your desired Target Temp, this is used to calculate whether to set your thermostat mode at your selected month. For instance, if you select the heat mode and the temperature outside falls below your desired temperature and you've entered and you've selected October as your month your thermostat will be set to heat mode. The opposite holds true to "Cool" mode. If you select "Off" or "Auto", the thermostat will just be set to those modes. The 'Target Temp' is optional so you don't have to enter any values and will only appear once one of the modes is selected.
Known Bugs / Issues:
***None known ***
Misc:
More testing and different scenarios still need to be performed. Basic functionality works.
To-Do:
1. Enhancement such as setting the temp on the thermostat.
2. Add an array type structure in the json file so that one can add multiple instances in the module instead of adding multiple modules. (COMPLETE - now in version 1.0.1 and renamed from ThermostatRules to ClimateControl)