Stationeers

Stationeers

Not enough ratings
Wall Cooler Automation with Power Saving Feature
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
136.566 KB
1 Jun, 2022 @ 2:23am
1 Change Note ( view )

Subscribe to download
Wall Cooler Automation with Power Saving Feature

Description
​This code requires:
- indoor gas sensor.
- as many wall coolers as you want.
- one station battery.

When the temperature goes above 25C, the wall coolers will turn on, and if it goes below 15C, they will turn off.

Before the wall coolers are allowed to turn on, the code also checks the current charge on the battery, and if it is below 1MW, the wall coolers will not be allowed to turn on (and turn off if they are already on) to conserve power.

All these values can be adjusted to personal preference in the code.

The max temp can be set in line 8 (default 298.15K (25C)).
The min temp can be set in line 9 (default 288.15K (15C)).
The battery charge threshold can be set in line 14 (default 1000000 (1MW)).
5 Comments
Hmuda  [author] 26 Jun, 2022 @ 11:00pm 
Glad it got sorted. :)

Yes, the wall coolers are recognised automatically. The only devices you need to set are the gas sensor and the battery.
supertony51 26 Jun, 2022 @ 12:04pm 
yeah so, im a idiot, when i connected the data systems together, i connected the battery data to the cooling system AND THE AIRLOCK system. it was getting conflicting readings. took me stepping away to clean up the kitchen and think about it to realize lol. Also, thank you for taking the time to respond.

im assuming you don't have to assign any pins to the wallcoolers right, its all automatic?
Hmuda  [author] 26 Jun, 2022 @ 11:27am 
To be honest, I'm stumped on this. I never encountered that error message before.

Are you sure you set the screws on the housing correctly? Maybe it's trying to read the Charge variable from the incorrect device.

Pretty much all I can think of.
supertony51 26 Jun, 2022 @ 10:34am 
also....if i add a second battery to the greenhouse and connect it to the network, will it make a difference?
supertony51 26 Jun, 2022 @ 10:33am 
Hey Hmuda, I'm using your code to keep consistent temps in my greenhouse. Thank you for taking the time to write the code.

I'm having one issue, i keep getting an error for "incorrect logic type at line 13"

this of course reading the charge on the battery. I'm not sure why it would be giving me this issue, do you have any insight? Do i need to rename the battery from station battery to battery? im new at the whole coding thing. Thanks for any help!