mirror of
				https://github.com/thejeffreystone/home-assistant-configuration.git
				synced 2025-11-04 04:55:01 +00:00 
			
		
		
		
	Tweaking garage door sensor
This commit is contained in:
		@@ -1,6 +1,10 @@
 | 
			
		||||
- platform: mqtt
 | 
			
		||||
  name: "Garage Door"
 | 
			
		||||
  state_topic: "smartthings/Garage Door/contact"
 | 
			
		||||
  qos: 0
 | 
			
		||||
  unit_of_measurement: ""
 | 
			
		||||
  value_template: '{{ value.x }}'
 | 
			
		||||
- platform: template
 | 
			
		||||
  sensors:
 | 
			
		||||
    garage_door:
 | 
			
		||||
      unit_of_measurement: '%'
 | 
			
		||||
      value_template: >-
 | 
			
		||||
          {%- if states.cover.garage_door }
 | 
			
		||||
              {{ states.cover.garage_door }}
 | 
			
		||||
          {% else %}
 | 
			
		||||
              {{ states.sensor.garage_door.state }}
 | 
			
		||||
          {%- endif %}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user