twrecked / hass-aarlo

Asynchronous Arlo Component for Home Assistant
GNU Lesser General Public License v3.0
399 stars 79 forks source link

schedule mode #487

Open grangoni opened 3 years ago

grangoni commented 3 years ago

Hello, I cannot manage to get and set the "schedule" mode. Is there a way to interact with the schedule mode or are interactions limited to default home, away, night, disarmed and user-defined "static" mode, excluding arlo's schedule (and probably geofencing) modes Thank you, Gab

twrecked commented 3 years ago

You should be able to use the aarlo.alarm_set_mode service.

To set it, use schedule.1 as the mode parameter.

grangoni commented 3 years ago

thanks a lot. It works for me. I had not found out information about the the ".1" required in 'schedule.1" I am also able to retreive whether the station is in schedule mode using its on_schedule attribute. However there might be a small issue here: When switching between a static mode and the schedule mode it seems the on_schedule attribute is only updated when the change causes a static mode change. I'll explain: if the station in on schedule mode at a time when the home_mode is active, switching manually to the static home mode will not set the on_schedule attribute to false. Same behavior the other way round. All works fine if I manually set the mode the away for instance. Then on_schedule is set to false. and it is set to true when switching back to the schedule mode (which actives the home mode) Is the is the expected behavior or a bug? In the first case, is there another way to find out whether the station in on schedule mode or not then?

twrecked commented 3 years ago

That sounds like a bug, I'll play around with it here and see what I can do.