Giter Site home page Giter Site logo

Comments (11)

RustyDust avatar RustyDust commented on August 27, 2024

What would you like to see? A numerical representation of the operating mode or a textual one, e.g either "1", "2", "10", ... or "Self consumption", "Auto", "Time of Use" ... ?
Should be fairly easy to add. Now, if you could provide some spare time ... ;)

from ha_sonnenbatterie.

whistlebare avatar whistlebare commented on August 27, 2024

from ha_sonnenbatterie.

sebeichholz avatar sebeichholz commented on August 27, 2024

Perhaps this helps? I am using this as a template sensor:

- sensor:
  - name: Sonnebatterie - Betriebsmodus
    unique_id: pv_sonnen_betriebsmodus
    state: >
      {% set x = states('sensor.sonnen_status_operatingmode') | int(0) %}
      {{ {1: 'Manuell',
          2: 'Automatisch (Eigenverbrauch)',
          6: 'Modul-Erweiterung',
          10: 'Time-of-use'}.get(x, 'Unknown state') }}`

from ha_sonnenbatterie.

RustyDust avatar RustyDust commented on August 27, 2024
  {% set x = states('sensor.sonnen_status_operatingmode') | int(0) %}

Where do you get that from, I can't find that sensor in my HA. What version of the Sonnenbatterie integration are you using?

from ha_sonnenbatterie.

RustyDust avatar RustyDust commented on August 27, 2024

Something like that ok:

sb_operatingmode

?

from ha_sonnenbatterie.

sebeichholz avatar sebeichholz commented on August 27, 2024

Sorry I guess this is my own REST sensor :-). I can post the config for that later

from ha_sonnenbatterie.

RustyDust avatar RustyDust commented on August 27, 2024

@whistlebare -> #47

from ha_sonnenbatterie.

RustyDust avatar RustyDust commented on August 27, 2024

Sorry I guess this is my own REST sensor :-). I can post the config for that later

Won't help much since the current version of the integration doesn't provide the operating mode. So there's no way to convert it using your nifty template ;)

from ha_sonnenbatterie.

RustyDust avatar RustyDust commented on August 27, 2024

Closed by #47

from ha_sonnenbatterie.

whistlebare avatar whistlebare commented on August 27, 2024

from ha_sonnenbatterie.

sebeichholz avatar sebeichholz commented on August 27, 2024

Well thank you for your effort. But I think 1 ist not "self consumption", this is 2.
1 is "manual" which means you can/must control charge/discharge manually with the REST API via /api/v2/setpoint/discharge or charge.

from ha_sonnenbatterie.

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.