I am trying to make a flow so lights dim when Plex changes to playing, but only for movies. I am pulling my hair out trying to figure out how get it to work.
I am using the 'current state node for testing, but plan to use state change node for production.
It aways processes false regardless of anything.
My flow:
[{"id":"3b22a2fc5c40b416","type":"debug","z":"fd48519939a70b11","name":"IF TRUE DIM LIGHTS","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":640,"y":1240,"wires":[]},{"id":"338e5e96313e679c","type":"inject","z":"fd48519939a70b11","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":120,"y":1280,"wires":[["52bb7394c2d56475"]]},{"id":"52bb7394c2d56475","type":"api-current-state","z":"fd48519939a70b11","name":"If Living Room Roku Plex = Movie","server":"58bff01.29ea91","version":3,"outputs":2,"halt_if":"$entity().data.attributes.media_content_type = \"tvshow\"","halt_if_type":"jsonata","halt_if_compare":"jsonata","entity_id":"media_player.plex_plex_for_roku_roku_living_room","state_type":"habool","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entity"}],"for":"0","forType":"num","forUnits":"seconds","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":360,"y":1280,"wires":[["3b22a2fc5c40b416"],[]]},{"id":"58bff01.29ea91","type":"server","name":"Home Assistant","addon":true}]