Stop charging below xx Watt, then reset for new session

Hello,

Usecase: I have an electric scooter with a charger that uses 17W when not charging. I don’t like this so I bought a Shelly plug S. I can of course set a count down timer for lets say 3 hours but I hope there will be a more elegant way to do this. Sometimes I only need to charge for 30 minutes, and sometimes I need the full 3 hours.

I would like to keep my Shelly plug-S plugged in the socket, and start letting electricity flow once I plug the charger in the Shelly. If it gets below 50W it should shut off, maybe do a reset? The next morning I unplug the charger and use the scooter. Later that day I return and plug it back in at home. It is charging and when it falls below 50W it should turn off again → repeat cycle

Is this possible?

Sincerely,

Moby

Hi Moby, I saw you message on tweakers.
That is indeed possible and easy. But of course you need to be able to read the power from your plug.
I use a similar solution here with a shely. Here is how my automation looks like.

alias: "Segway: turn off charger when charge finishes"
description: Turn off the charger when power drops below 30W
trigger:
  - below: "30"
    entity_id: sensor.segway_charger_power
    for: "00:02:00"
    platform: numeric_state
condition: []
action:
  - data: {}
    entity_id: switch.segway_charger
    service: switch.turn_off
mode: single

You just need to replace the segway_charger and segway_charger_power by your respective entities.
I hope this can help you.
Cheers.
Alex.