Giter Club home page Giter Club logo

chargebot's Introduction

chargebot

chargebot for appdaemon

This is chargebot that adds smart charging to any charger that can be controlled using home assistant. (only tested on easee)

Features

  • Create a chargeplan
  • A changeplan is a timeperiod of the cheapest hours to fill your car with energy to the wanted soc before a certain time in the future
  • Loadbalance the energy usage so you don't blow your main fuse.

Integrations in HA that is required.

  • nordpool (to get the energy prices)
  • a sensor that you can get watt usage in real time
  • others are needed to, see the config example for a full list.

Example config

charge_bot:
  module: chargebot
  class: Chargebot

  # On and off button in ha.
  load_balance: input_boolean.car_load_balance
  smart_charging: input_boolean.car_smart_charging

  # Send a notification to something
  # This can be false (all notifications disabled), true (default service)
  # or a str like persistent_notification or smtp etc.
  notify: true


  ### POWER STUFF ###
  power_price_entity: "sensor.nordpool_kwh_krsand_nok_3_10_025"
  power_usage_in_w: "sensor.mqtt_relay_energy_usage"
  # float in atp ex 63.0
  main_fuse: 63.0
  # float
  volt: 230.0
  # float
  phase: 3.0

  ### Charger options ###
  charger_ready_at: "input_datetime.car_ready_at"
  charger_service_start: {"service": "easee/start", "data": {charger_id: "EH385021"}}
  charger_service_end: {"service": "easee/stop", "data": {charger_id: "EH385021"}}
  charger_status_entity: "sensor.easee_charger_eh385021_status"
  charger_status_old: "CONNECTED"
  charger_status_new: "READY_TO_CHARGE"
  charger_status_charging: "CHARGING"
  charger_max_speed_kwh: 11.0 # kwh this

  ### Car options ###
  # optional, default to 0 the state cant be reached
  car_battery_sensor_entity: "sensor.tesla_model_3_battery_sensor"
  car_battery_size_kwh: 72.5 # kwh
  verify_car_connected_and_home: true # Set this to false
  # optional
  car_device_tracker_entity: device_tracker.tesla_model_3_location_tracker
  car_connected_to_charger: "binary_sensor.tesla_model_3_charger_sensor"

chargebot's People

Contributors

hellowlol avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

chargebot's Issues

Todo

  • send the chargeplan using notifications.
  • send notification on start, stop and if chargeing isnt stopped/ started
  • log and notify is we can charge full
  • create a callback for smart input Boolean so chargeplan is canceled and recreated.
  • add proper logging
  • cb for smart charge input so plan are canceled.

KeyError: entity_start_name

Hi. Tried to start charge_bot via AppDaemon4 and got this error. I cannot see what is being wrong or if I missed anything:

2021-09-20 12:45:35.206854 WARNING charge_bot: Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/appdaemon/threading.py", line 903, in worker funcref( File "/config/appdaemon/apps/chargebot.py", line 722, in load_balance_cb self.check_load(new) File "/usr/lib/python3.9/site-packages/appdaemon/adbase.py", line 33, in f_app_lock return f(*args, **kw) File "/config/appdaemon/apps/chargebot.py", line 607, in check_load esn = self.args["entity_start_name"] KeyError: 'entity_start_name' 2021-09-20 12:45:35.207125 WARNING charge_bot: ------------------------------------------------------------

What it is needed for?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.