Thanks, you set me on the right track, but had to resort to digging through the code.
The states are it seems ‘home’ and ‘not_home’
I had assumed it would be Home and Away (as the front end displays) as that seems logical, admit I hadn’t thought about being case sensitive.
Working now.