Node-RED state change question

I have an automation that should turn off my receiver when the Chromecast is nog playing any audio anymore. The situation is that the Chromecast can be in a multitude of states, e.g. off, paused and maybe some others.

So to detect this if have a state change node. I assume I have to put the If State to “in” and then provide an array with states (off, paused). But what exactly should this value be? {off, paused} or [off, paused],…?

In order to catch everything except playing i simply use: Is not playing. Works very well :slight_smile:

1 Like

off, paused should work. Otherwise just add a switch node after I guess.