Skip to content
Discussion options

You must be logged in to vote

It seems you need to defer the fetching of the state variable value from trigger creation to trigger running. The easiest way would be to make condition a string (eg, "input_boolean.martin_volets_soir"), and use state.get() inside the inner trigger function to get its current value (ie, replacecondition with state.get(condition)).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by wsw70
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