Skip to content

Soil moisture level in irrigation controller #5

Answered by brianhanifin
Klarstein asked this question in Q&A
Discussion options

You must be logged in to vote

Very cool addition! It sounds like you are on the right track. You need add an "and" to your if statement. It would be something like:

if (scheduled_runtime(id(irrigation_zone1_next).state.c_str()) and irrigation_zone1_soil_moisture.state < 2) {
   id(irrigation_zone1).turn_on();
}

P.S. Sorry for the late answer. I hope you figured out the solution already.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Klarstein
Comment options

@Klarstein
Comment options

Answer selected by Klarstein
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants