I can easily use different entities based on data passed into the script but I don’t seem to be able to get the state of those entities. For example, I call a script:
I was thinking along the right lines, that’s why I showed how I passed cycle.
I wondered if it were because it was an integer and I had even tried a couple of (made up ) ways to convert it.
My main struggle is finding stuff documented. My first port of call is usually http://jinja.pocoo.org/docs/dev/templates/ but it’s far from perfect if you don’t already know what you’re looking for.
It takes some time learning API’s, especially because jinja isn’t documented heavily. If you familiarize yourself with python, jinja comes very naturally. It’s the only reason I know jinja.
Well…
I am afaid that didn’t work. cycle is indeed a string already (I had forgotten it got passed along from a previous script - sorry about that but at least I learnt some new things).
doesn’t work? It sits there forever and I have confirmed with persistant notifications that timer.cycle1_zone_duration does change to ‘idle’ and cycle is 1
What can I say?
Thank you so much. That is perfect. I am sure I tried something along those lines when you showed me ‘set’ earlier on, but obviously I had something wrong.
Once again, thank you. I hope one day to be able to replay all the goodwill I have had from this forum since I joined a few weeks ago.