Comments (18)
Thank you for response.
My bad, i connected the rs232 revesed, and ttl side too.
Now is working, only problem i have with temperature meter, its showing 400-700 °C.
from esphome-pipsolar.
I have comma before this section.
now is here :
[14:25:25][D][text_sensor:067]: 'easun last_qpigs': Sending state '(236.0 49.9 228.0 50.0 0091 0091 003 418 28.23 003 100 0680 0008 073.4 28.05 00000 10010110 00 04 00251 100'
from esphome-pipsolar.
And i cannot find where need to write this code :
# Install esphome
pip3 install esphome
# Clone this external component
git clone https://github.com/syssi/esphome-pipsolar.git
cd esphome-pipsolar
# Create a secret.yaml containing some setup specific secrets
cat > secrets.yaml <<EOF
mqtt_host: MY_MQTT_HOST
mqtt_username: MY_MQTT_USERNAME
mqtt_password: MY_MQTT_PASSWORD
wifi_ssid: MY_WIFI_SSID
wifi_password: MY_WIFI_PASSWORD
EOF
# Validate the configuration, create a binary, upload it, and start logs
# If you use a esp8266 run the esp8266-examle.yaml
esphome run esp32-example.yaml
i tried into esp config, HA terminal but nothing works
from esphome-pipsolar.
If you use RX/TX (GPIO1/GPIO3) instead of GPIO4/5 you have to set the baud_rate
of the logger
to 0
:
logger:
baud_rate: 0
level: VERY_VERBOSE
logs:
uart: VERY_VERBOSE
uart.arduino_esp8266: VERY_VERBOSE
The logger is attached to GPIO1/GPIO3 per default.
from esphome-pipsolar.
Please flash this YAML as first step:
https://raw.githubusercontent.com/syssi/esphome-pipsolar/main/tests/esp8266-test-protocols.yaml
Please attach the inverter/rs232 module to GPIO4/GPIO5 and provide the log output. It should show some outgoing and incoming traffic. So we get an idea which protocol version your inverter supports.
from esphome-pipsolar.
Do you know the command (QPIGS, QPIRI?) which returns the temperature? Could you provide an example response containing the temperature?
from esphome-pipsolar.
Do you mean this log ?
[12:44:14][D][pipsolar:836]: Sending polling command : QPIGS with length 5
[12:44:14][D][pipsolar:772]: checking crc on incoming message
[12:44:14][D][pipsolar:775]: CRC OK
[12:44:14][D][pipsolar:448]: Decode QPIGS
[12:44:14][D][sensor:126]: 'easun grid_voltage': Sending state 241.00000 V with 1 decimals of accuracy
[12:44:14][D][sensor:126]: 'easun grid_frequency': Sending state 50.00000 Hz with 1 decimals of accuracy
[12:44:14][D][sensor:126]: 'easun ac_output_voltage': Sending state 228.00000 V with 1 decimals of accuracy
[12:44:14][D][sensor:126]: 'easun ac_output_frequency': Sending state 50.10000 Hz with 1 decimals of accuracy
[12:44:14][D][sensor:126]: 'easun ac_output_apparent_power': Sending state 0.00000 VA with 1 decimals of accuracy
[12:44:14][D][sensor:126]: 'easun ac_output_active_power': Sending state 0.00000 W with 1 decimals of accuracy
[12:44:14][D][sensor:126]: 'easun output_load_percent': Sending state 0.00000 % with 1 decimals of accuracy
[12:44:14][D][sensor:126]: 'easun bus_voltage': Sending state 419.00000 V with 1 decimals of accuracy
[12:44:14][D][sensor:126]: 'easun battery_voltage': Sending state 28.26000 V with 1 decimals of accuracy
[12:44:14][D][sensor:126]: 'easun battery_charging_current': Sending state 12.00000 A with 1 decimals of accuracy
[12:44:14][D][sensor:126]: 'easun battery_capacity_percent': Sending state 100.00000 % with 1 decimals of accuracy
[12:44:14][D][sensor:126]: 'easun inverter_heat_sink_temperature': Sending state 696.00000 °C with 1 decimals of accuracy
[12:44:14][D][sensor:126]: 'easun pv_input_current_for_battery': Sending state 13.00000 A with 1 decimals of accuracy
[12:44:14][D][sensor:126]: 'easun pv_input_voltage': Sending state 73.10000 V with 1 decimals of accuracy
[12:44:14][D][sensor:126]: 'easun battery_voltage_scc': Sending state 28.11000 V with 1 decimals of accuracy
[12:44:14][D][sensor:126]: 'easun battery_discharge_current': Sending state 0.00000 A with 1 decimals of accuracy
[12:44:14][D][sensor:126]: 'easun battery_voltage_offset_for_fans_on': Sending state 0.00000 V with 1 decimals of accuracy
[12:44:14][D][sensor:126]: 'easun pv_charging_power': Sending state 389.00000 W with 1 decimals of accuracy
from esphome-pipsolar.
Not exactly. I'm looking for the value of the text_sensor.last_qpigs
sensor.
from esphome-pipsolar.
I dont see .last_qpigs in my log
[14:14:09][C][wifi:504]: WiFi:
[14:14:09][C][wifi:362]: Local MAC: A0:20:A6:02:56:4C
[14:14:09][C][wifi:363]: SSID: [redacted]
[14:14:09][C][wifi:364]: IP Address: 192.168.1.15
[14:14:09][C][wifi:365]: BSSID: [redacted]
[14:14:09][C][wifi:367]: Hostname: 'easun'
[14:14:09][C][wifi:369]: Signal strength: -90 dB ▂▄▆█
[14:14:09][C][wifi:373]: Channel: 13
[14:14:09][C][wifi:374]: Subnet: 255.255.255.0
[14:14:09][C][wifi:375]: Gateway: 192.168.1.1
[14:14:09][C][wifi:376]: DNS1: 0.0.0.0
[14:14:09][C][wifi:377]: DNS2: 0.0.0.0
[14:14:09][C][logger:293]: Logger:
[14:14:09][C][logger:294]: Level: DEBUG
[14:14:09][C][logger:295]: Log Baud Rate: 0
[14:14:09][C][logger:296]: Hardware UART: UART0
[14:14:09][C][uart.arduino_esp8266:102]: UART Bus:
[14:14:09][C][uart.arduino_esp8266:103]: TX Pin: GPIO3
[14:14:09][C][uart.arduino_esp8266:104]: RX Pin: GPIO1
[14:14:09][C][uart.arduino_esp8266:106]: RX Buffer Size: 256
[14:14:09][C][uart.arduino_esp8266:108]: Baud Rate: 2400 baud
[14:14:09][C][uart.arduino_esp8266:109]: Data Bits: 8
[14:14:09][C][uart.arduino_esp8266:110]: Parity: NONE
[14:14:09][C][uart.arduino_esp8266:111]: Stop bits: 1
[14:14:09][C][uart.arduino_esp8266:115]: Using software serial
[14:14:09][C][pipsolar:860]: Pipsolar:
[14:14:09][C][pipsolar:861]: used commands:
[14:14:09][C][pipsolar:864]: QPIGS
[14:14:09][C][pipsolar:864]: QMOD
[14:14:09][C][pipsolar:864]: QFLAG
[14:14:09][C][pipsolar:864]: QPIRI
[14:14:09][C][pipsolar.switch:076]: Pipsolar Switch 'easun output_source_priority_utility'
[14:14:09][C][pipsolar.switch:078]: Icon: 'mdi:power'
[14:14:09][C][pipsolar.switch:098]: Restore Mode: restore defaults to OFF
[14:14:09][C][pipsolar.switch:076]: Pipsolar Switch 'easun output_source_priority_solar'
[14:14:09][C][pipsolar.switch:078]: Icon: 'mdi:power'
[14:14:09][C][pipsolar.switch:098]: Restore Mode: restore defaults to OFF
[14:14:09][C][pipsolar.switch:076]: Pipsolar Switch 'easun output_source_priority_battery'
[14:14:09][C][pipsolar.switch:078]: Icon: 'mdi:power'
[14:14:09][C][pipsolar.switch:098]: Restore Mode: restore defaults to OFF
[14:14:09][C][pipsolar.switch:076]: Pipsolar Switch 'easun input_voltage_range'
[14:14:09][C][pipsolar.switch:078]: Icon: 'mdi:power'
[14:14:09][C][pipsolar.switch:098]: Restore Mode: restore defaults to OFF
[14:14:09][C][pipsolar.switch:076]: Pipsolar Switch 'easun pv_ok_condition_for_parallel'
[14:14:09][C][pipsolar.switch:078]: Icon: 'mdi:power'
[14:14:09][C][pipsolar.switch:098]: Restore Mode: restore defaults to OFF
[14:14:09][C][pipsolar.switch:076]: Pipsolar Switch 'easun pv_power_balance'
[14:14:09][C][pipsolar.switch:078]: Icon: 'mdi:power'
[14:14:09][C][pipsolar.switch:098]: Restore Mode: restore defaults to OFF
[14:14:10][C][mdns:108]: mDNS:
[14:14:10][C][mdns:109]: Hostname: easun
[14:14:10][C][ota:093]: Over-The-Air Updates:
[14:14:10][C][ota:094]: Address: 192.168.1.15:8266
[14:14:10][C][api:138]: API Server:
[14:14:10][C][api:139]: Address: 192.168.1.15:6053
[14:14:10][C][api:143]: Using noise encryption: NO
[14:14:10][D][pipsolar:836]: Sending polling command : QMOD with length 4
[14:14:10][D][pipsolar:772]: checking crc on incoming message
[14:14:10][D][pipsolar:775]: CRC OK
[14:14:10][D][pipsolar:471]: Decode QMOD
[14:14:10][D][text_sensor:067]: 'easun device_mode': Sending state 'B'
[14:14:10][D][pipsolar:836]: Sending polling command : QFLAG with length 5
[14:14:10][D][pipsolar:772]: checking crc on incoming message
[14:14:10][D][pipsolar:775]: CRC OK
[14:14:10][D][pipsolar:479]: Decode QFLAG
[14:14:11][D][pipsolar:836]: Sending polling command : QPIRI with length 5
[14:14:12][D][pipsolar:772]: checking crc on incoming message
[14:14:12][D][pipsolar:775]: CRC OK
[14:14:12][D][pipsolar:429]: Decode QPIRI
[14:14:12][D][pipsolar:836]: Sending polling command : QPIGS with length 5
[14:14:13][D][pipsolar:772]: checking crc on incoming message
[14:14:13][D][pipsolar:775]: CRC OK
[14:14:13][D][pipsolar:448]: Decode QPIGS
from esphome-pipsolar.
Did you remove this sensor from your YAML?
text_sensor:
- platform: pipsolar
pipsolar_id: inverter0
last_qpigs:
id: inverter0_last_qpigs
name: inverter0_last_qpigs
from esphome-pipsolar.
Do you need log or anything?
from esphome-pipsolar.
No. Could you ask your seller about protocol details of your device? It assume the value/position reported as temperature isn't a temperature at your case.
from esphome-pipsolar.
I wrote for the seller. I will notice you, if i get something.
Thank you for support.
from esphome-pipsolar.
Hi
I got the pdf from seller.
The problem:
temperature
T is an integer ranging from 0 to 9. The units
is ℃(NTC A/D value for Axpert 1~3K)
from esphome-pipsolar.
I must admit I don't understand the protocol description here:
In other words are value between 0000
and 9999
is expected here but a resolution is missing here. Do you have the chance to find out the proper meaning of
[12:44:14][D][sensor:126]: 'easun inverter_heat_sink_temperature': Sending state 696.00000 °C with 1 decimals of accuracy
If we multiply this value by 0.1
the sensor would return 69.9 °C
. Does this match with the reality?
from esphome-pipsolar.
I think is not that simple. https://sparks.gogo.co.nz/ntc_thermistor.html
No, multiplyng not match the reality. I have this inverter in 0-15°C.
from esphome-pipsolar.
This is an example how to transform a ADC voltage into a resistance into a temperature / sensor value:
https://github.com/syssi/esphome-xiaomi-philips-light/blob/main/xiaomi_light.yaml#L41-L69
I cannot help here. The math behind it is black magic for me. ;-)
from esphome-pipsolar.
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.