you are missing the configuration key for the data type you are supplying.
You need quotes around 0 in your if, because states are always strings and a string can’t be == to an integer. However, it is better to use the is_state() function.
(In an earlier version I had used |int(0) in the if part, so I was testing for a numerical; after hours of fiddling, I took it back to a basic outline.) I’ll go back to that, haven’t used is_state much but I’ll experiment.
You say:
though I don’t know what this means, unless you’re referring to the
data:
value: >
part, which if so, is new to me, I haven’t seen it in my hunt for information. If that’s not what you mean, you haven’t added anything I didn’t have (or pointed to a missing entity) so I’m at a loss.
Thanks, everything else is a great help. But still not working…
If neither version works for you then we will need to see the entire automation to understand what triggers the automation containing this service call.