Comments (19)
Yes! Please flash the
2424mse1
branch another time. The chance is high it's working out of the box now.
from esphome-pipsolar.
Hmm.. I will have another look tomorrow.
from esphome-pipsolar.
Feel free to ask more questions but could you create a new issue first? Thanks in advance!
from esphome-pipsolar.
Could you double check the setting dummy_receiver
is turned off (false
)?
uart:
id: uart0
baud_rate: 2400
tx_pin: GPIO1
rx_pin: GPIO3
debug:
direction: BOTH
dummy_receiver: false
after:
delimiter: "\r"
sequence:
- lambda: UARTDebug::log_string(direction, bytes);
from esphome-pipsolar.
Yes, I checked it three times :)
tx_pin: GPIO3
rx_pin: GPIO1
# most devices use 2400 as baud_rate
baud_rate: 2400
debug:
direction: BOTH
dummy_receiver: false
after:
delimiter: "\r"
sequence:
- lambda: UARTDebug::log_string(direction, bytes);
from esphome-pipsolar.
Yes. It looks like the response payload of your device isn't supported yet. Could you provide a longer log capture? I'm a bit confused because of these responses:
(230.0 47.8 230.0 50.0 47.8 11000 11000 48.0 46.0 44.0 56.8 55.7 2 010 150 0 0 2 9 01 0 0 54.0 0 1 480 0 000qO\r
(201.6 50.0 201.6 50.0 03749 03724 034 435 55.60 001 100 0046 00.0 000.0 00.00 00000 00010101 00 00 00000 110<\xAD\r
from esphome-pipsolar.
[00:09:53][D][pipsolar:822]: timeout command to poll: QPIGS
[00:09:53][D][uart_debug:158]: >>> "QPIGS2h-\r"
[00:09:53][D][pipsolar:905]: Sending polling command : QPIGS2 with length 6
[00:09:53][D][uart_debug:158]: <<< "(00.0 000.0 00000 E\x93\r"
[00:09:53][D][pipsolar:839]: checking crc on incoming message
[00:09:53][D][pipsolar:842]: CRC OK
[00:09:53][D][pipsolar:503]: Decode QPIGS2
[00:09:53][V][sensor:076]: 'pipsolar pv2_input_current': Received new state 0.000000
[00:09:53][D][sensor:127]: 'pipsolar pv2_input_current': Sending state 0.00000 A with 1 decimals of accuracy
[00:09:53][V][json:031]: Attempting to allocate 512 bytes for JSON serialization
[00:09:53][V][json:051]: Size after shrink 88 bytes
[00:09:53][V][sensor:076]: 'pipsolar pv2_input_voltage': Received new state 0.000000
[00:09:53][D][sensor:127]: 'pipsolar pv2_input_voltage': Sending state 0.00000 V with 1 decimals of accuracy
[00:09:53][V][json:031]: Attempting to allocate 512 bytes for JSON serialization
[00:09:53][V][json:051]: Size after shrink 88 bytes
[00:09:53][V][sensor:076]: 'pipsolar pv2_charging_power': Received new state 0.000000
[00:09:53][D][sensor:127]: 'pipsolar pv2_charging_power': Sending state 0.00000 W with 1 decimals of accuracy
[00:09:53][V][json:031]: Attempting to allocate 512 bytes for JSON serialization
[00:09:53][V][json:051]: Size after shrink 92 bytes
[00:09:53][V][component:200]: Component esphome.coroutine took a long time for an operation (0.06 s).
[00:09:53][V][component:201]: Components should block for at most 20-30ms.
[00:09:54][D][uart_debug:158]: >>> "QMODI\xC1\r"
[00:09:54][D][pipsolar:905]: Sending polling command : QMOD with length 4
[00:09:54][D][uart_debug:158]: <<< "(L\x06\a\r"
[00:09:54][D][pipsolar:839]: checking crc on incoming message
[00:09:54][D][pipsolar:842]: CRC OK
[00:09:54][D][pipsolar:514]: Decode QMOD
[00:09:54][V][text_sensor:016]: 'pipsolar device_mode': Received new state L
[00:09:54][D][text_sensor:067]: 'pipsolar device_mode': Sending state 'L'
[00:09:54][V][json:031]: Attempting to allocate 512 bytes for JSON serialization
[00:09:54][V][json:051]: Size after shrink 84 bytes
[00:09:55][D][uart_debug:158]: >>> "QFLAG\x98t\r"
[00:09:55][D][pipsolar:905]: Sending polling command : QFLAG with length 5
[00:09:55][D][uart_debug:158]: <<< "(EbuvxzDajky\xC6\x00\r"
[00:09:55][D][pipsolar:839]: checking crc on incoming message
[00:09:55][D][pipsolar:842]: CRC OK
[00:09:55][D][pipsolar:522]: Decode QFLAG
[00:09:56][D][uart_debug:158]: >>> "QPIRI\xF8T\r"
[00:09:56][D][pipsolar:905]: Sending polling command : QPIRI with length 5
[00:09:57][D][uart_debug:158]: <<< "(230.0 47.8 230.0 50.0 47.8 11000 11000 48.0 46.0 44.0 56.8 55.7 2 010 150 0 0 2 9 01 0 0 54.0 0 1 480 0 000qO\r"
[00:09:57][D][pipsolar:839]: checking crc on incoming message
[00:09:57][D][pipsolar:849]: CRC NOK expected: BF AA but got: 0 0
[00:09:57][D][uart_debug:158]: >>> "QBATCD\xAA&\r"
[00:09:57][D][pipsolar:905]: Sending polling command : QBATCD with length 6
[00:09:57][D][uart_debug:158]: <<< "(NAKss\r"
[00:09:57][D][pipsolar:839]: checking crc on incoming message
[00:09:57][D][pipsolar:842]: CRC OK
[00:09:58][D][uart_debug:158]: >>> "QPIGS\xB7\xA9\r"
[00:09:58][D][pipsolar:905]: Sending polling command : QPIGS with length 5
[00:09:59][D][uart_debug:158]: <<< "(201.4 49.9 201.4 49.9 03927 03919 035 436 55.60 001 100 0046 00.0 000.0 00.00 00000 00010101 00 00 00000 110nR\r"
from esphome-pipsolar.
Just for illustration: The decoder expects a very specific pattern of numbers:
QPIRI: https://github.com/syssi/esphome-pipsolar/blob/2424mse1/components/pipsolar/pipsolar.cpp#L430-L441
QPIGS: QPIRI: https://github.com/syssi/esphome-pipsolar/blob/2424mse1/components/pipsolar/pipsolar.cpp#L449-L517
226.7 49.9 226.7 49.9 0498 0479 016 427 27.00 005 100 0035 01.9 255.1 00.00 00000 10010110 00 00 00510 110 # QPIGS response examples of the PIP 2424MSE1
232.6 50.0 229.9 49.9 0391 0312 007 402 54.40 042 072 0066 0042 284.6 00.00 00000 00010010 00 00 02901 010 # QPIGS response example of a PIP-5048Mg FW71.85
201.4 49.9 201.4 49.9 03927 03919 035 436 55.60 001 100 0046 00.0 000.0 00.00 00000 00010101 00 00 00000 110 # QPIGS response of your device
^^^^ the parser fails here probably
Please switch to this branch and give it another try:
external_components:
- source: github://syssi/esphome-pipsolar@2424mse1
refresh: 0s
from esphome-pipsolar.
Please switch to this branch and give it another try:
external_components: - source: github://syssi/esphome-pipsolar@2424mse1 refresh: 0s
Previously I used config for pip8048, what config can I use for this branch?
from esphome-pipsolar.
There is a config at the branch with some less entities/features.
from esphome-pipsolar.
external_components:
- source: github://syssi/esphome-pipsolar@2424mse1
refresh: 0s
The result is the same (
[00:31:03][D][uart_debug:158]: >>> "QPIRI\xF8T\r"
[00:31:03][D][pipsolar:891]: Sending polling command : QPIRI with length 5
[00:31:03][D][uart_debug:158]: <<< "(230.0 47.8 230.0 50.0 47.8 11000 11000 48.0 46.0 44.0 56.8 55.7 2 010 150 0 0 2 9 01 0 0 54.0 0 1 480 0 000qO\r"
[00:31:03][D][pipsolar:825]: checking crc on incoming message
[00:31:03][D][pipsolar:835]: CRC NOK expected: 93 F but got: 0 0
[00:31:04][D][uart_debug:158]: >>> "QPIGS\xB7\xA9\r"
[00:31:04][D][pipsolar:891]: Sending polling command : QPIGS with length 5
[00:31:04][D][uart_debug:158]: <<< "(204.3 49.9 204.3 49.9 03697 03668 033 435 55.60 001 100 0046 00.0 000.0 00.00 00000 00010101 00 00 00000 110_\xC2\r"
from esphome-pipsolar.
Could you ask your seller about some protocol details or software to control the inverter via rs232?
from esphome-pipsolar.
Could you ask your seller about some protocol details or software to control the inverter via rs232?
I asked, but it is unlikely that the seller will respond.
Perhaps this document contains the necessary information
https://forum.arduino.cc/uploads/short-url/9Fe8Tfap7KgZOveeQrtgJhSRmAR.pdf
from esphome-pipsolar.
Hello,
i have the same trouble with Apert max 2 10 kw.
I read your documentation we can see the response of some command is not the same of others inverter.
but does as a impact on the CRC?
from esphome-pipsolar.
Hello @syssi have any news for me? :)
from esphome-pipsolar.
Yes! Please flash the 2424mse1
branch another time. The chance is high it's working out of the box now.
from esphome-pipsolar.
What am I doing wrong? :(
In file included from src/esphome/components/pipsolar/output/pipsolar_output.h:3,
from src/esphome/components/pipsolar/output/pipsolar_output.cpp:1:
src/esphome/components/pipsolar/output/../pipsolar.h:7:10: fatal error: esphome/components/pipsolar/select/pipsolar_select.h: No such file or directory
#include "esphome/components/pipsolar/select/pipsolar_select.h"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
*** [/data/solar-inverter/.pioenvs/solar-inverter/src/esphome/components/pipsolar/output/pipsolar_output.cpp.o] Error 1
In file included from src/esphome/components/pipsolar/pipsolar.cpp:1:
src/esphome/components/pipsolar/pipsolar.h:7:10: fatal error: esphome/components/pipsolar/select/pipsolar_select.h: No such file or directory
#include "esphome/components/pipsolar/select/pipsolar_select.h"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
*** [/data/solar-inverter/.pioenvs/solar-inverter/src/esphome/components/pipsolar/pipsolar.cpp.o] Error 1
from esphome-pipsolar.
Please use the example YAML from the branch. You have to add one select
entity at minimum to your YAML.
from esphome-pipsolar.
Thank you for your work!
May I ask a couple more questions?
Is it possible to get data on pv2 (Voltage, current, etc.)?
And is it possible to get the data of solar energy production for the day that is stored in the inverter?
from esphome-pipsolar.
Related Issues (20)
- 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
- 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
- Fronus PV7200 - CRC NOK expected HOT 13
- Axpert_KSMKSV_RS232_Protocol HOT 8
- PIP 8048 zero values HOT 4
- WKS evo cirlce HOT 2
- Eps8266 board NodeMCU V3 can working? HOT 6
- Cannot flash with select battery redischarge, recharge, float HOT 9
- Too many measurment sent to Home Assistant HOT 1
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.