Start a new topic

Divert only during particular periods of the day?

Hello everyone, Is it possible to have OpenEVSE vary between Eco and Fast Charge depending on the time of day? I'm trying to minimise the power usage during the peak rate (usually from 4pm) - but if my solar production is high during that period I want to use all of that. TIA!

Not sure if you can achieve it solely through the OpenEVSE, but I have Home Assistant controlling the OpenEVSE regarding Eco and Fast Charge, whilst monitoring the production from solar and state of the powerwall.

Any chance you could describe the process you used to integrate HA with OpenEVSE?  I found a page at HA with instructions for integrating, but they must be quite dated as none of the instructions seem to work.  I.m running 8.2.2 and v5.1.0_modified .  Thanks

Bill, probably easiest way is to post some of my automations to give you an idea then you can ask any more questions, just replace the device_id with your id. Not sure how this is going to format my YAML :-) Cheers Alastair


#########################################################################

# Solar Charge On

#########################################################################


- id: solar_charge_on

  alias: solar_charge_on

  trigger:

    - platform: state

      entity_id: input_boolean.hot_water_finished

      to: 'on'

  condition:

    condition: and

    conditions:

      - condition: state

        entity_id: input_boolean.charge_solar

        state: 'on'

      - condition: state

        entity_id: binary_sensor.openevse_vehicle_connected

        state: 'on'

      - condition: numeric_state

        entity_id: sensor.powerwall_charge

        above: '94'

      - condition: state

        entity_id: input_boolean.winter_mode

        state: 'off'

  action:

    - service: switch.turn_on

      entity_id: switch.openevse_solar_pv_divert

    - service: openevse.clear_override

      data: {}

      target:

        device_id: xxxxxxxx


#########################################################################

# Solar Charge Off

#########################################################################


- id: solar_charge_off

  alias: solar_charge_off

  trigger:

    - platform: time

      at: '15:58:00'

  condition:

    condition: and

    conditions:

      - condition: state

        entity_id: input_boolean.charge_solar

        state: 'on'

      - condition: state

        entity_id: binary_sensor.openevse_vehicle_connected

        state: 'on'

      - condition: state

        entity_id: input_boolean.winter_mode

        state: 'off'

  action:

    - service: switch.turn_off

      entity_id: switch.openevse_solar_pv_divert

    - service: openevse.set_override

      data:

        state: disabled

      target:

        device_id: xxxxxxx


#########################################################################

# Solar Charge when plugged in

#########################################################################


- id: solar_charge_when_plugged_in

  alias: solar_charge_when_plugged_in

  trigger:

    - platform: state

      entity_id:

        - binary_sensor.openevse_vehicle_connected

      to: 'on'

  condition:

    condition: and

    conditions:

      - condition: numeric_state

        entity_id: sensor.powerwall_charge

        above: '94'

      - condition: time

        after: '12:00:00'

        before: '15:30:00'

      - condition: state

        entity_id: input_boolean.hot_water_finished

        state: 'on'

      - condition: state

        entity_id: input_boolean.winter_mode

        state: 'off'

  action:

    - service: input_boolean.turn_on

      entity_id: input_boolean.charge_solar

    - service: input_boolean.turn_on

      entity_id: input_boolean.charge_cheap_grid

    - service: switch.turn_on

      entity_id

Login or Signup to post a comment