Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mikey0000/8f76c7c7fe6b06340f9da105b3d6aec1 to your computer and use it in GitHub Desktop.
Save mikey0000/8f76c7c7fe6b06340f9da105b3d6aec1 to your computer and use it in GitHub Desktop.
alias: Turn off Luba when battery >85%
description: ""
triggers:
type: battery_level
device_id: eef057eadf46cf86fe9346924f8207ec
entity_id: a7a8863f20c699b414537c3ad76a83c5
domain: sensor
trigger: device
above: 85
for:
hours: 0
minutes: 0
seconds: 30
conditions:
condition: numeric_state
entity_id: sensor.mowzilla_progress
below: 1
condition: time
after: "17:20:00"
condition: state
entity_id: switch.grasklippare_motorvarmare_plugg
state: "on"
actions:
type: turn_off
device_id: 5ae5ca4d4e3b95083e697ad4424925b4
entity_id: 6e478b727fe23c49398d0eacdf2254b3
domain: switch
delay:
hours: 0
minutes: 1
seconds: 0
milliseconds: 0
type: turn_off
device_id: eef057eadf46cf86fe9346924f8207ec
entity_id: 8fa565dd6d7c6467cf5b2572b4c6ae43
domain: switch
mode: single
# And I turn on the mower ~50min before fisrt taskt to top up the battery to 100% and gain good GPS
# After the delay I turn on the "Turn Updates On/Off"
alias: Turn on mower
description: ""
triggers:
trigger: time
at: "09:10:00"
conditions: []
actions:
type: turn_on
device_id: 5ae5ca4d4e3b95083e697ad4424925b4
entity_id: 6e478b727fe23c49398d0eacdf2254b3
domain: switch
delay:
hours: 0
minutes: 2
seconds: 0
milliseconds: 0
type: turn_on
device_id: eef057eadf46cf86fe9346924f8207ec
entity_id: 8fa565dd6d7c6467cf5b2572b4c6ae43
domain: switch
mode: single
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment