Fix template for seperate valve entity in Homematic (#15280)

Old version didn't work, so i asked on Reddit and got an working answer, so here is the change.
Mentioned reddit thread: https://www.reddit.com/r/homeassistant/comments/jce8y2/make_valve_postiotion_its_own_entity/
This commit is contained in:
bromosky 2020-10-17 12:24:21 +02:00 committed by GitHub
parent 21f7774428
commit 3593e1a1b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -210,7 +210,7 @@ sensor:
- platform: template
sensors:
bedroom_valve:
value_template: '{% raw %}{{ state_attr('climate.leq123456', 'Valve') }}{% endraw %}'
value_template: "{% raw %}{{ state_attr('climate.leq123456', 'valve') }}{% endraw %}"
entity_id: climate.leq123456
friendly_name: 'Bedroom valve'
```