@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.
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?
Posts: 1
Participants: 1