syssi / esphome-dps

ESPHome component to monitor and control the RDTech DPS series
Apache License 2.0
14 stars 4 forks source link

Add XY6020 support #20

Open syssi opened 8 months ago

syssi commented 8 months ago

https://github.com/kbs3056/XY6015L_pyGUI https://github.com/syssi/esphome-dps/discussions/19#discussioncomment-7357252

Baud rate: 115200

[18:30:22][I][dps:063]: Status frame received
[18:30:22][D][text_sensor:064]: 'dps device model': Sending state 'DPS21'
[18:30:22][D][sensor:094]: 'dps voltage setting': Sending state 25.00000 V with 2 decimals of accuracy
[18:30:22][D][number:012]: 'dps voltage setting': Sending state 25.000000
[18:30:22][D][sensor:094]: 'dps current setting': Sending state 0.20900 A with 3 decimals of accuracy
[18:30:22][D][number:012]: 'dps current setting': Sending state 0.209000
[18:30:22][D][sensor:094]: 'dps output voltage': Sending state 25.00000 V with 2 decimals of accuracy
[18:30:22][D][sensor:094]: 'dps output current': Sending state 0.00100 A with 3 decimals of accuracy
[18:30:22][D][sensor:094]: 'dps output power': Sending state 0.02000 W with 2 decimals of accuracy
[18:30:22][D][sensor:094]: 'dps input voltage': Sending state 48.26000 V with 2 decimals of accuracy
[18:30:22][D][text_sensor:064]: 'dps protection status': Sending state 'Normal'
[18:30:22][D][sensor:094]: 'dps backlight brightness': Sending state 20.00000 % with 0 decimals of accuracy
[18:30:22][D][sensor:094]: 'dps firmware version': Sending state 1.50000 with 1 decimals of accuracy
[18:30:22][W][component:214]: Component modbus took a long time for an operation (0.14 s).
[18:30:22][W][component:215]: Components should block for at most 20-30ms.
[18:30:22][D][uart_debug:158]: <<< "\x01\x03\x1A\t\xC4\x00\xD1\t\xC4\x00\x01\x00\x02\x12\xDA\x00\f\x00\x00\x00\xFA\x00\x00\x00\x01\x00\x15\x00\x0F\x91}"

Not working:

Different contents of the status frames:

XY6020: https://github.com/kbs3056/XY6015L_pyGUI/blob/master/source_files/dps_modbus.py#L135-L147 DPS5005: https://github.com/lambcutlet/DPS5005_pyGUI/blob/master/source_files/dps_modbus.py#L135C1-L145

Different registers:

XY6020: https://github.com/kbs3056/XY6015L_pyGUI/blob/master/source_files/dps_modbus.py#L67C1-L104 DPS5005: https://github.com/lambcutlet/DPS5005_pyGUI/blob/master/source_files/dps_modbus.py#L67-L133

@creepystefan

syssi commented 8 months ago

Fork: https://github.com/creepystefan/esphome-XY6020

creepystefan commented 1 month ago

https://github.com/creepystefan/ESPhome-Sinilink-WF-POW

hey also mein xy6020 Batterie Lader funktioniert sehr gut. danke nochmals für das anschuppsen des Projektes. habe dir noch einen Link geschickt für eine nette spielerei, falls es dich interresiert.

Ist das Original Wifi Modul von Sinilink für das XY6020 Grüße

syssi commented 1 month ago

Cool!

Tiese commented 3 weeks ago

Hallo @creepystefan,

kann das WiFi-Modul über Web-API oder direkt über URL abgefragt werden? Oder muss man die Sinilink-App benutzen?

Vielen Dank für deine Hilfe!

Schöne Grüße Tiese

creepystefan commented 3 weeks ago

Hey @Tiese Das sinilink wifi Modul kann wie ein normaler ESP benutzt werden. Am besten schaust du auf meiner Seite. Dort habe ich die GPIOs Und programmieranschlüsse angezeigt. In meinem Beispiel wird das Modul mit ESPHome bespielt. Und kann alles gemacht werden. Allerdings muss ich noch den Code für das sinilink mit dem XY6020 anpassen. Momentan ist es für einen ESP32 angepasst. Bitte schreibe mir doch direkt auf meiner GitHub Seite. API wird über ESPhome benutzt Auch eine Web Oberfläche. Das Sinilink Portal wird nicht gebraucht.