Well ok, so no requesting regular staus updates then.
I havent hooked up a Wemos to my panel yet, so not sure how the status page will look like if connected. I figure the enroled_zones attribute will give me all zones. Is there also a way to see thecurrent state of those zones, so i can use it to set a start-up state? I will use a REST sensor for this, just need it to not poll again every few seconds after the initial boot. But that shouldnt be a problem.
Updating sensors needs a certain body and specific headers:
x-ha-access: contains password (I guess this is what you already added)
Content-Type: application/json (alrady the case in your code)
Format of JSON (extracted from a GET):
Actually the only thing that matters for me is the state, since this is used to trigger anything. This can be any string. Other attributes, like type would be nice to have.
You don’t need to update your code for this, I’ll try to compile these changes myself. I’ll have a look at the code, and might need some syntax help