Git Product home page Git Product logo

Comments (18)

Warloo93 avatar Warloo93 commented on September 23, 2024 1

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.

Warloo93 avatar Warloo93 commented on September 23, 2024 1

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.

Warloo93 avatar Warloo93 commented on September 23, 2024

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.

syssi avatar syssi commented on September 23, 2024

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.

syssi avatar syssi commented on September 23, 2024

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.

syssi avatar syssi commented on September 23, 2024

Do you know the command (QPIGS, QPIRI?) which returns the temperature? Could you provide an example response containing the temperature?

from esphome-pipsolar.

Warloo93 avatar Warloo93 commented on September 23, 2024

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.

syssi avatar syssi commented on September 23, 2024

Not exactly. I'm looking for the value of the text_sensor.last_qpigs sensor.

from esphome-pipsolar.

Warloo93 avatar Warloo93 commented on September 23, 2024

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.

syssi avatar syssi commented on September 23, 2024

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.

Warloo93 avatar Warloo93 commented on September 23, 2024

Do you need log or anything?

from esphome-pipsolar.

syssi avatar syssi commented on September 23, 2024

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.

Warloo93 avatar Warloo93 commented on September 23, 2024

I wrote for the seller. I will notice you, if i get something.
Thank you for support.

from esphome-pipsolar.

Warloo93 avatar Warloo93 commented on September 23, 2024

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)

Limk

from esphome-pipsolar.

syssi avatar syssi commented on September 23, 2024

I must admit I don't understand the protocol description here:

temp

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.

Warloo93 avatar Warloo93 commented on September 23, 2024

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.

syssi avatar syssi commented on September 23, 2024

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.

avion23 avatar avion23 commented on September 23, 2024

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.