1
0
ansible-home-assistant/configuration/automations/bathroom-weight.yaml

18 lines
480 B
YAML

- id: bathroom_weight_measured
alias: "[Bathroom] Weight measured"
mode: single
trigger:
- platform: state
entity_id:
- sensor.mi_smart_scale_6f96_mass
condition: [ ]
action:
- service: notify.mobile_app_iphone
data:
title: "Weight has changed"
message: >
Measured weight: {{ states('sensor.mi_smart_scale_6f96_mass') }}, tap to log into Apple Health
data:
shortcut:
name: "Log Weight"