Page 1 of 1

Python access to the Forecast device

PostPosted: Fri Mar 22, 2024 6:01 am
by pnm
I've created a day zero forecast device called WeatherToday which appears to be working. I can't get the syntax right to get the max temperature in a script.

I would have thought it would be indigo.devices["WeatherToday"].tempmax but its not.

What is the correct syntax?

Re: Python access to the Forecast device

PostPosted: Fri Mar 22, 2024 10:21 am
by racarter
Code: Select all
weather = indigo.devices[12345678]
value_you_want = weather.states["tempmax"]

Re: Python access to the Forecast device

PostPosted: Fri Mar 22, 2024 11:40 am
by pnm
Thanks

Re: Python access to the Forecast device

PostPosted: Sat May 11, 2024 11:54 am
by pnm
I've setup two triggers on the Maximum Temperature so set and unset a boolean variable, but they don't appear to be firing even though tempmax is over 20c.

Have I done something wrong?