From: Giorgio Ravera Date: Fri, 7 Jun 2019 10:42:29 +0000 (+0200) Subject: testing windows sensors X-Git-Url: http://git.giorgioravera.it/?a=commitdiff_plain;h=d445586fb31f652d702f40e23791435be1fafe0d;p=homeassistant.git testing windows sensors --- diff --git a/binary_sensor/car.yaml b/binary_sensor/car.yaml index b29af2f8..e24943ae 100644 --- a/binary_sensor/car.yaml +++ b/binary_sensor/car.yaml @@ -135,6 +135,7 @@ value_template: >- {{ not is_state_attr('binary_sensor.ff590mr_windows_closed', 'windowstatusfrontleft', 'CLOSED') }} icon_template: mdi:car-window + device_class: opening ###################################################################### # Binary Sensor: Window Front Right @@ -148,6 +149,7 @@ value_template: >- {{ not is_state_attr('binary_sensor.ff590mr_windows_closed', 'windowstatusfrontright', 'CLOSED') }} icon_template: mdi:car-window + device_class: opening ###################################################################### # Binary Sensor: Window Rear Left @@ -158,9 +160,10 @@ ff590mr_window_rear_left: friendly_name: Posteriore Sinistro entity_id: binary_sensor.ff590mr_windows_closed - value_template: >- + value_template: >- {{ not is_state_attr('binary_sensor.ff590mr_windows_closed', 'windowstatusrearleft', 'CLOSED') }} icon_template: mdi:car-window + device_class: opening ###################################################################### # Binary Sensor: Window Rear Right @@ -172,8 +175,9 @@ friendly_name: Posteriore Destro entity_id: binary_sensor.ff590mr_windows_closed value_template: >- - {{ not (is_state_attr('binary_sensor.ff590mr_windows_closed', 'windowstatusrearright', 'CLOSED') }} + {{ not is_state_attr('binary_sensor.ff590mr_windows_closed', 'windowstatusrearright', 'CLOSED') }} icon_template: mdi:car-window + device_class: opening ###################################################################### # Binary Sensor: Warning Brake fluid