Skip to content

Instantly share code, notes, and snippets.

@skydivingpt
Last active December 26, 2021 21:50
Show Gist options
  • Save skydivingpt/b7ae6b116cd14d562b23be31c6c71d9b to your computer and use it in GitHub Desktop.
Save skydivingpt/b7ae6b116cd14d562b23be31c6c71d9b to your computer and use it in GitHub Desktop.
RZoe_Stop80
blueprint:
name: RZoe_Stop80
description: Desliga o carregamento quando chega aos 80% bateria e notifica via TLM/APP
source_url: https://gist.github.com/sbyx/xxxxxxxxxxxxxxxxxxxxx
domain: automation
input:
battery_level:
name: Renaut
description: componente Renaut, sensor "is_battery_level"
selector:
entity:
domain: sensor
nivel_maximo:
name: Nivel maximo de bateria
description: Nivel percentual da carga da bateria a que é parado o carregamento
default: 80
selector:
number:
min: 5.0
max: 100.0
unit_of_measurement: '%'
mode: slider
step: 1.0
dijuntor_shelly:
name: Renaut
description: Dijuntor ou similar, eventualmente Shelly Pro 1 ou similar
selector:
entity:
domain: switch
notify_device:
name: Telemovel ou aparelho a notificar
description: Notificação via APP
selector:
device:
integration: mobile_app
time:
name: Horario de verificação
description: de quanto em quanto tempo é efectuada a verificação do nivel de bateria do carro
default: /30
selector:
number:
min: 1
max: 3600
unit_of_measurement: minutes
mode: slider
step: 1
trigger:
- platform: state
entity_id: !input battery_level
above: 80
actions:
- device_id: !input dijuntor_shelly
type: turn_off
domain: switch
- device_id: !input notify_device
domain: mobile_app
type: notify
title: 'RZoe - CARREGAMENTO 80%'
message: 'RZoe carregamento chegou ao 80%, parei o carregamento ! '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment