]> git.giorgioravera.it Git - homeassistant.git/commitdiff
testing windows sensors
authorGiorgio Ravera <giorgio.ravera@gmail.com>
Fri, 7 Jun 2019 10:42:29 +0000 (12:42 +0200)
committerGiorgio Ravera <giorgio.ravera@gmail.com>
Fri, 7 Jun 2019 10:42:29 +0000 (12:42 +0200)
binary_sensor/car.yaml

index b29af2f8dcd203516286e5eca895d013239865af..e24943aea2bea7a16a3b8e1392a337b6ccbfea31 100644 (file)
       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
       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
     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
       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