Comments (5)
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.
Do you use the official esphome component or one of the feature branches?
from esphome-pipsolar.
Could you provide a QPIGS response example / the value of the last_qpigs
sensor?
from esphome-pipsolar.
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.
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)
- pipsolar + jk_bms HOT 1
- esphome reports "unknown" when inverter shuts down or on its own sometimes HOT 1
- Pooling command for P18 wrong HOT 1
- Question regarding ttl RS485 adapter HOT 4
- set_level action expects a percentage and clips values above 1.0 HOT 4
- Qoltec 6KW (PI30) - timeout QPIGS other works HOT 3
- Adding external componen not found HOT 4
- MPI 10k integration
- pipsolar ac_output_active_power HOT 1
- Effecta AX-P1 whit USB2.0 typ B COM port HOT 11
- Apiconnectionerror HOT 2
- Inverter Log HOT 1
- Component jk_modbus took a long time for an operation.... and cause esp to halt after sometime HOT 2
- Pipsolar inverter pv1 and pv2 HOT 1
- Hybrid Solar inverter 8.2kw/10.2KW HOT 31
- Change value on QFLAGS status
- New sensors and custom settings on mi invertor Effekta AX- Series HOT 3
- Fronus PV7200 - CRC NOK expected HOT 13
- Axpert_KSMKSV_RS232_Protocol HOT 8
- PIP 8048 zero values HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esphome-pipsolar.