Dehumidifier condit...
 
Notifications
Clear all

[Solved] Dehumidifier conditional  

  RSS

jpmchitty
(@jpmchitty)
Active Member
Joined: 9 months ago
Posts: 12
October 16, 2019 4:50 pm  

Hi Kyle,

How would I set a conditional to keep an output permanently running until a vpd threshold is reached for a time period and then turn off?

Many thanks


Quote
Kyle Gabriel
(@kylegabriel)
Member Admin
Joined: 5 years ago
Posts: 193
October 18, 2019 1:22 pm  

Hi. This is how I would do it.

  1. Create a Conditional and set the Period to how often you want to check, such as every 10 minutes (600 seconds).
  2. Add a Measurement Condition, and select the VPD you want to monitor from the list.
  3. Add an Output (Duration) Action and select the output, and set to Off. We'll call this Output1.
  4. Add another Output (Duration) Action and select the output, and set to On. We'll call this Output2.
  5. Set the Conditional Statement to the following, changing each ID to the appropriate ID listed below each condition or action:
vpd_measurement = self.condition("{MEASUREMENT ID}")
if vpd_measurement is not None:
if vpd_measurement < 1500:
self.run_action("{OUTPUT1 ID}")
else:
self.run_action("{OUTPUT2 ID}")

Let me know if this is what you had in mind.

Mycodo Developer


ReplyQuote
jpmchitty
(@jpmchitty)
Active Member
Joined: 9 months ago
Posts: 12
October 18, 2019 5:10 pm  

Thank you, will give this a go!


ReplyQuote