Request for some simple YAML help

Hi,

I’d like to add one additonal action to change the state of the ‘input_boolean.charge_e_bike_battery’ to ‘0’

Any help in adding this action would be greatly appreciated!

Thanks!

-Philip

alias: Monitor E-Bike Battery Charge
description: ""
trigger:
  - platform: numeric_state
    entity_id:
      - sensor.bike_charger_current_consumption
    for:
      hours: 0
      minutes: 5
      seconds: 0
    above: 0
    below: 5
condition:
  - condition: state
    entity_id: input_boolean.charge_e_bike_battery
    state: "on"
action:
  - type: turn_off
    device_id: ebb671fa27dda3923cb603dbd73ed02c
    entity_id: e96c23bfa27259d7ecf7e51366527fca
    domain: switch
mode: single

action:
  - type: turn_off
    device_id: ebb671fa27dda3923cb603dbd73ed02c
    entity_id: e96c23bfa27259d7ecf7e51366527fca
    domain: switch
  - service: input_boolean.turn_off
    entity_id: input_boolean.charge_e_bike_battery

Huge thanks! - Learning!!

1 Like