Works perfectly, thanks. Super reliable so far when creating automations based on it.
I’m confused then how to make a device tracker in HA based on this input boolean.
Could I have help on how to create a device tracker template based on it? I think it would be a binary sensor with a device class, right?
Update: Never mind, I got it:
in binary_sensor.yaml:
- platform: template sensors: hk_presence_josee: friendly_name: "Présence Josée (HK)" device_class: presence value_template: >- {{ is_state('input_boolean.josee_presence_hk', 'on') }} - platform: template sensors: hk_presence_sylvain: friendly_name: "Présence Sylvain (HK)" device_class: presence value_template: >- {{ is_state('input_boolean.sylvain_presence_hk', 'on') }}
Then I added those binary sensors back in HK as presence sensors visible in HK (and not switchable manually)
Most reliable presence tracker so far.
After few tests, I only had less than a minute delay to trigger…