Hello,
I have several HomeKit BLE window sensors, that I want to get into Home Assistant. As I don’t want to unpair with HomeKit and get all the hassle with BLE pairing, I did a common trick, to create dummy input_boolean in HASS via helpers and exported these via HomeKit Integration. In Apple Home I made automations, that switch that dummy input_boolean accordingly. So input_bolean is on if window is opened. That works super good and I have now all window sensor states in HASS. However Alarmo only allows binary sensors as inputs. So I wanted to convert the input_boolean to binary sensor of type window.
This is what I put into config.yaml
binary_sensor:
- platform: template
sensors:
alarmo_fenster_esstisch:
value_template: "{{ is_state('input_boolean.dummy_fenster_esstisch', 'on') }}"
friendly_name: Alarmo_Sensor_Esstisch
device_class: window
However, it doesn’t seem to work. If I open that window that input boolean switches immediately to “on”, but the binary_sensor stays on “closed”. What am I doing wrong?