Git Product home page Git Product logo

Comments (5)

reflexsa avatar reflexsa commented on September 24, 2024

Managed to solve this using a lambda filter. Perhaps there is a way to use the other text sensor filters and more efficient code but this seemed to work.
On the ESP:

text_sensor:
  - platform: pipsolar
    pipsolar_id: inverter0
    last_qpigs:
      id: inverter0_last_qpigs
      name: inverter0_battery_discharge_current_qpigs
      filters:
        - lambda: |-
            return x.substr(78,4);

In the configuration.yaml:

#convert battery discharge current from to float
  - sensor:
      - name: "inverter0_battery_discharge_qpigs"
        unit_of_measurement: "A"
        availability: >
          {{states('sensor.inverter0_battery_discharge_current_qpigs') not in ['unavailable', 'unknown']}}
        state: >
          {{states('sensor.inverter0_battery_discharge_current_qpigs') | float(0)}}

from esphome-pipsolar.

syssi avatar syssi commented on September 24, 2024

Do you use the official esphome component or one of the feature branches?

from esphome-pipsolar.

syssi avatar syssi commented on September 24, 2024

Could you provide a QPIGS response example / the value of the last_qpigs sensor?

from esphome-pipsolar.

reflexsa avatar reflexsa commented on September 24, 2024

As far as I know the official version. From what I remember I just included the below in the .yaml in ESPHome:

pipsolar:
  - uart_id: uart_bus
    id: inverter0

qpigs response:

[text_sensor:067]: 'inverter0_battery_discharge_current_qpigs': Sending state '(235.7 50.0 235.7 50.0 0000 0000 000 431 13.80 000 100 0036 00.0 000.0 00.00 00000 00010101 00 00 00000 110

from esphome-pipsolar.

abdulmannan avatar abdulmannan commented on September 24, 2024

I am having similar issue. 'battery_discharge_current' is always 0 and it never gets updated.

inverter0_battery_discharge_current      0.0 A
25 minutes ago

here is the output of last_qpigs

(000.0 00.0 219.7 50.0 0109 0077 003 344 24.90 000 067 0039 00.0 000.0 00.00 00004 00010000 00 00 00000 010

this output clearly shows that '00004' is the battery discharge current.

I am new to ESPHome. can anyone help me resolving this issue.

from esphome-pipsolar.

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.