Fredde87 / tado

Tado Plugin for Vera / MiOS
BSD 3-Clause "New" or "Revised" License
1 stars 1 forks source link

Q: How often are the settings/variables updated #5

Open RHCPNG opened 4 years ago

RHCPNG commented 4 years ago

Hi @Fredde87,

How are the variables updated/refreshed? Is this polled with a time interval from the Tado api? How often does this happen? Thanks!

RHCPNG commented 3 years ago

Hi @Fredde87 ,

Can you please reply to my question? Is Tado being polled? What is the interval?

Fredde87 commented 3 years ago

Yes, it is polled every 61 seconds (weather is polled every 901 seconds)

RHCPNG commented 3 years ago

Ok, thanks. That’s what I wanted to know!

Op di 27 okt. 2020 om 10:53 schreef Fredde87 notifications@github.com

Yes, it is polled every 61 seconds (weather is polled every 901 seconds)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Fredde87/tado/issues/5#issuecomment-717122636, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFOYMUG6QNZXZTGV77HTILLSM2KCZANCNFSM4KIYGEQQ .

-- Groeten,

Niels

RHCPNG commented 3 years ago

To be sure. Does the home/away status fall in the 61 seconds?

Fredde87 commented 3 years ago

To be sure. Does the home/away status fall in the 61 seconds?

Neither, I dont retrieve it at all. I dont recall it being available back when I wrote this plugin a few years ago. I did a bit of googling though and there is a API call you can use to get this data.

How do you envision using it?

RHCPNG commented 3 years ago

I would like to use it for geofencing. So to run a scene when I'm home (when tadoMode = HOME) or when I'm away.

The variable is already available in your plugin. It's on the different child devices, that's a bit weird, but seems to be on purpose by Tado. And I think it's being updated, but I'm getting some inconsistent behavior.

Fredde87 commented 3 years ago

I would like to use it for geofencing. So to run a scene when I'm home (when tadoMode = HOME) or when I'm away.

The variable is already available in your plugin. It's on the different child devices, that's a bit weird, but seems to be on purpose by Tado. And I think it's being updated, but I'm getting some inconsistent behavior.

Ahh yes you are talking about tadoMode. Yeah that seems to contain the same information. Strange because there seems to be a new API variable called homePresence that seems to do the same thing.

But yeah tadoMode is part of the zone so it gets refreshed every 61 seconds too.

Stupid question, but why not use Vera's own inbuilt geofencing feature to achieve what you want to do?

RHCPNG commented 3 years ago

Because I don't use the Vera app and I already have the Tado app installed. In the end it all depends which app you (want to) use.

And besides that I want to move away from Vera, but not from openluup.

Fredde87 commented 3 years ago

Ok fair enough. What inconsistent errors are you getting?

RHCPNG commented 3 years ago

I haven’t looked for errors yet, probably there aren’t any. I think the problem is with Tado. I have set a scene that sends me a message when tadoMode changes to HOME or AWAY, but I almost never receive a message. So either the value in your plugin isn’t updated or the app is not registering my location correctly. I need to do some further research, but at least I know the poll interval for the variable, that’s short enough.

Maybe you could also test if the variable is updated or not?