Trigger on state Change OR get state in one node?

You can construct the output of most HA nodes. This should get you started, if you get stuck please export your flow vs taking screen shots.