Coder Social home page Coder Social logo

homeassist-automations's Introduction

Charge Tesla on Excess Solar ☀️

Overview

This Home Assistant automation triggers the charging of your Tesla when there is excess solar energy and stops charging when the solar production is low. It operates under specific conditions, ensuring efficient use of your solar energy between March and October.

Automation Breakdown

Trigger

  • Time Pattern: Checks conditions every 5 minutes.

Conditions

  • Sun: Only between sunrise and sunset.
  • Tesla Vehicle Connection: Only when a vehicle is connected to the Tesla wall connector.
  • Month: Only operates between March and October.
  • Battery & Charge Limit: The absolute difference between the current battery level and charge limit is more than 1.

Actions

  1. Enable Charging

    • When the energy production exceeds the usage by more than 3500W and the Tesla is not charging.
    • Notification: "Tesla charging triggered, excess solar above 4KW ☀️".
  2. Disable Charging

    • When the energy production is less than 500W below energy usage, the Tesla has been charging for at least 15 minutes, the battery level is at or above 25%, and the estimated time until the charge is complete is 10 minutes or more.
    • Notification: "Tesla charging disabled, solar production is low ⛅".

Entity IDs

  • binary_sensor.tesla_wall_connector_vehicle_connected
  • binary_sensor.denis_tesla_charging
  • sensor.denis_tesla_battery
  • number.denis_tesla_charge_limit
  • sensor.energy_production
  • sensor.energy_usage
  • sensor.denis_tesla_time_charge_complete
  • switch.denis_tesla_charger

Notifications

  • Service: notify.notify

Feel free to contribute and suggest improvements to this automation! 💫

homeassist-automations's People

Contributors

denislemire avatar

Watchers

 avatar

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.