Untitled

mail@pastecode.io avatar
unknown
yaml
13 days ago
1.0 kB
2
Indexable
Never
alias: Pixel 8 - Needs charge
description: ""
trigger:
  - type: battery_level
    platform: device
    device_id: 4d21cb7cfd299c3cffa72fdc1cf20b12
    entity_id: 1e03a76910e5d768cfdbed2c9f64c195
    domain: sensor
    below: 50
  - platform: device
    device_id: 4d21cb7cfd299c3cffa72fdc1cf20b12
    domain: device_tracker
    entity_id: cff2a650852c588d245c34d6e01a7683
    type: enters
    zone: zone.home
condition:
  - condition: state
    state: discharging
    entity_id: sensor.pixel_8_pro_battery_state
  - condition: device
    device_id: 4d21cb7cfd299c3cffa72fdc1cf20b12
    domain: device_tracker
    entity_id: cff2a650852c588d245c34d6e01a7683
    type: is_home
  - type: is_battery_level
    condition: device
    device_id: 4d21cb7cfd299c3cffa72fdc1cf20b12
    entity_id: 1e03a76910e5d768cfdbed2c9f64c195
    domain: sensor
    below: 50
action:
  - service: light.turn_on
    metadata: {}
    data:
      rgb_color:
        - 235
        - 77
        - 61
    target:
      device_id: 411070bf8ebc0e4245cbef20f23450f2
mode: single
Leave a Comment