To and from in node red

How would I set this yaml in node red, cause the state_change node (I think) only does the ‘to’ part, but I want the ‘from’ part too. Searched around, but didn’t find anything useful
https://paste.ubuntu.com/p/92d2YmmNcn/

trigger-state node

image

1 Like

Ok, thanks, I’ll give it a try tomorrow.