I have a node red flow that checks if the payload CONTAINS the word ‘Game’ to continue the flow if found. However, the sensor attached to it will report different results (for example, it will say Game (Playstation) or Game (Steam)). Now, in the Events: State node it says Ignore if current state equals previous state. Will those 2 options stated above trigger a state change? Even if the switch node specifies ‘Contains’? Because the keyword that the flow is looking for is the same (Game), but the string afterwards changes. I do not want it to trigger a change based on the 2nd part of the string.
Flow attached for clarification:
[{"id":"afcb7ac9e2cc828a","type":"switch","z":"9bc82eaf8e96bc0d","name":"Options","property":"payload","propertyType":"msg","rules":[{"t":"cont","v":"TV/HDMI","vt":"str"},{"t":"cont","v":"MiniPC","vt":"str"},{"t":"cont","v":"Nvidia Shield","vt":"str"},{"t":"cont","v":"Game","vt":"str"},{"t":"else"}],"checkall":"true","repair":false,"outputs":5,"x":740,"y":300,"wires":[["687d30e28f011a4f"],[],["7c86942b88e75b43"],["cd6d1c4a88f31d22"],[]]},{"id":"27e5560a3cca5bb4","type":"server-state-changed","z":"9bc82eaf8e96bc0d","name":"Samsung Frame TV Source","server":"b3afb4a3.474b18","version":5,"outputs":1,"exposeAsEntityConfig":"","entityId":"sensor.samsung_frame_tv_dynamic_source","entityIdType":"exact","outputInitially":false,"stateType":"str","ifState":"","ifStateType":"str","ifStateOperator":"is","outputOnlyOnStateChange":true,"for":"0","forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"audiomode","propertyType":"msg","value":"","valueType":"str"}],"x":240,"y":300,"wires":[["afcb7ac9e2cc828a","7b89f5a8f03cfcf7"]]},{"id":"b3afb4a3.474b18","type":"server","name":"Home Assistant","addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"","connectionDelay":true,"cacheJson":true,"heartbeat":false,"heartbeatInterval":"25","areaSelector":"friendlyName","deviceSelector":"friendlyName","entitySelector":"id","statusSeparator":"","statusYear":"hidden","statusMonth":"hidden","statusDay":"numeric","statusHourCycle":"h12","statusTimeFormat":"h:m","enableGlobalContextStore":true}]