Git Product home page Git Product logo

Comments (3)

danielolsson100 avatar danielolsson100 commented on June 17, 2024 1

You can for sure add the L1,L2,L3 as individual sensors if you feel for it as a custom sensor with the template functionality

{{state_attr('sensor.ferroamp_grid_current','L1')}}
{{state_attr('sensor.ferroamp_grid_current','L2')}}
{{state_attr('sensor.ferroamp_grid_current','L3')}}

I use it to calculate available grid load in near realtime as an example below to publish it to my kitchen energy display and to feed the data to my Easee charger as a dynamic fuse load logic.

  - platform: mqtt
    state_topic: "extapi/data/ehub"
    unique_id: "ehub/pext"
    name: "Realtime Grid Power"
    unit_of_measurement: "kW"
    value_template: "{{ ((((value_json.pext.L1) | int + (value_json.pext.L2) | int + (value_json.pext.L3) | int)) / 1000) | round(2) }}"

  - platform: template
    sensors:
      available_grid_load:
        value_template: "{{(230*3*16/1000 - (states.sensor.Realtime_Grid_Power.state | float)) | int}}"
        friendly_name: "Available Grid Load"
        unit_of_measurement: "kW"

from ha-ferroamp.

danielolsson100 avatar danielolsson100 commented on June 17, 2024

Hi
If you add this to configuration.yaml and define ACE to 16A (or similar..) then should you be good to go to integrate it to whatever.
You don't need to worry about the phase balancing since the Adaptive Currency equalization (ACE) in the energy hub (EH) is handling that.
I use it to limit the immersion heater within my Nibe 1210-7 with a relay and a esp8266 with esphome.

- platform: template
    sensors:
      grid_overload:
        friendly_name: "Grid Overload"
        #delay_off:
        #  minutes: 5
        delay_on:
          minutes: 5
        value_template: >-
          {{ states('sensor.ferroamp_grid_power') | int < -11040 }}

And if you add this to your automation.yaml the you can use it to send push notice with Tibber as an example.

- id: '123456789'
  alias: Grid Overload
  description: ''
  trigger:
  - platform: state
    entity_id: binary_sensor.grid_overload
    from: 'off'
    to: 'on'
  condition: []
  action:
  - service: notify.tibber
    data:
      message: Grid - Overload
      title: Grid Overload
  mode: single

from ha-ferroamp.

robinostlund avatar robinostlund commented on June 17, 2024

Thanks, got it :) missed that grid_current had those attributes :)

from ha-ferroamp.

Related Issues (20)

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.