Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 101645

Template split value_template

$
0
0

@toband wrote:

My plan is to use a Aqara Vibration Sensor to act as a garage door sensor for status Open/Closed.

The idea is to use the orientation. If someone has a better way please share both idea and code please. :slight_smile:

So far I have managed to get a template sensor for the orientation that returns the value: [0, 1, -89]

  - platform: template
    sensors:
      vibration_6_orientation:
        value_template: '{{ states.binary_sensor.vibration_6.attributes.orientation }}'
        friendly_name: 'Vibration Sensor Orientation'

Now I am trying to split the value template and just get -89 back but I can’t seem to get it correct with the syntax.

Any help would be appreciated? :smiley:

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 101645

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>