panhans / HomeAssistant

Home Asisstant related stuff like blueprints for automations and scripts.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ignore Scheduler if device is online

achmet9948 opened this issue · comments

Is it possible to ignore the scheduler, if an specific device is online?

Example:
If one specific person is at home, which is working from home, is a specific device online.
If this device is online, the scheduler should be ignore.
If a second person at home, the scheduler is working normally.

Hey, I have a similar situation here. I solved it like this:

I am working from home but the heating of the living room is mainly controlled by a scheduler combined with presence of persons (me and my wife) and I don't want to heat it up until afternoon. But my wife worked in shifts and sometimes she's home at noon sometimes in the evening.

So the scheduler is programmed to only heat up the living room in the afternoon starting at 3pm if someone of us i at home. To make heating also happen if my wife arrives at home earlier I've created a binary template sensor which only checks if my wife is home. Something like this:

{{ states('person.my_wife') == 'home' }}

I've selected this template sensor as presence sensor and I also setup a scheduler for presence detection for this time.
So heating only starts between morning and afternoon if my wife is home using this fake presence sensor.

So you can also setup a template based presence sensor in helper section that checks the state of your device.

I will add more options in heating plan feature to enable scheduler only for a specific person for a specific duration. But that still needs some work.

//EDIT: but what I can do is to allow multiple instances of presence sensors / boolean entities and a custom condition where you can add you individual condition. So there is no need anymore to go the way using a helper sensor.

Thanks a lot!