You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be great if the Porsche Connect integration exposed individual binary sensors for each of the embedded attributes in the doors and lids sensor.
Since that’s not currently the case, I’ve created these template binary sensors to break them out. Hopefully this helps anyone looking to do the same.
Replace the placeholder YOUR_MODEL with your actual entity name.
You may have more or fewer attributes depending on your vehicle’s configuration.
Cheers!
# ============================================
# Porsche – per-attribute sensors
# ============================================
- binary_sensor:
# Doors
- name: Porsche Driver Door
unique_id: porsche_door_front_left_open
device_class: door
state: >
{{ is_state_attr('binary_sensor.YOUR_MODEL_doors_and_lids',
'OPEN STATE DOOR FRONT LEFT', 'Open') }}
- name: Porsche Passenger Door
unique_id: porsche_door_front_right_open
device_class: door
state: >
{{ is_state_attr('binary_sensor.YOUR_MODEL_doors_and_lids',
'OPEN STATE DOOR FRONT RIGHT', 'Open') }}
# Windows
- name: Porsche Driver Window
unique_id: porsche_window_front_left_open
device_class: window
state: >
{{ is_state_attr('binary_sensor.YOUR_MODEL_doors_and_lids',
'OPEN STATE WINDOW FRONT LEFT', 'Open') }}
- name: Porsche Passenger Window
unique_id: porsche_window_front_right_open
device_class: window
state: >
{{ is_state_attr('binary_sensor.YOUR_MODEL_doors_and_lids',
'OPEN STATE WINDOW FRONT RIGHT', 'Open') }}
# Frunk (front lid)
- name: Porsche Frunk
unique_id: porsche_lid_front_open
device_class: opening
state: >
{{ is_state_attr('binary_sensor.YOUR_MODEL_doors_and_lids',
'OPEN STATE LID FRONT', 'Open') }}
# Sunroof
- name: Porsche Sunroof
unique_id: porsche_sunroof_open
device_class: opening
state: >
{{ is_state_attr('binary_sensor.YOUR_MODEL_doors_and_lids',
'OPEN STATE SUNROOF', 'Open') }}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
It would be great if the Porsche Connect integration exposed individual binary sensors for each of the embedded attributes in the
doors and lidssensor.Since that’s not currently the case, I’ve created these template binary sensors to break them out. Hopefully this helps anyone looking to do the same.
Replace the placeholder YOUR_MODEL with your actual entity name.
You may have more or fewer attributes depending on your vehicle’s configuration.
Cheers!
All reactions