Paxy / SmartESS-proxy

SmartESS (PowMr) to MQTT proxy
9 stars 4 forks source link

PC connection #5

Open fiatputer opened 1 month ago

fiatputer commented 1 month ago

Should the PC running the program be connected to the inverter via RS232?

Paxy commented 1 month ago

No need. If you have set DNS overide for ESS domain (which probably you are as you are getting other data), then just switch Fake client to false, so it will connect to real ESS cloud and show itseld to ESS app like the module (RS232 to Wifi) is talking to Cloud directly. But you will see all communication in service console.

fiatputer commented 1 month ago

I get this:

2024-05-23 11:19:06.72 - Connected to server 47.242.188.205 2024-05-23 11:19:07.083 - Server: 70980001000AFF011805170913070023 2024-05-23 11:19:07.084 - Waiting for node ... 2024-05-23 11:19:08.977 - MQTT connected

fiatputer commented 1 month ago

you need to manually add the org.eclipse.paho.client.mqtt library?

Paxy commented 1 month ago

Ahh, sorry, ignore my last comment; I thought I am answering some follow-up msg . No you need to make DNS override in your network so your router, instead of sending traffic to ess cloud, sends to this proxy. I can't tell you how to do that, as everyones network is different.

fiatputer commented 1 month ago

Hi, I was able to connect and get this data: pi@emonpi:~/Desktop/SmartESS-proxy-main $ sudo java -Dlog.level=DEBUG -jar SmartESS-proxy.jar 2024-05-24 08:28:29.528 - Connected to server 47.242.188.205 2024-05-24 08:28:29.912 - Server: 61BF0001000AFF01180518061C1D0023 2024-05-24 08:28:29.912 - Waiting for node ... 2024-05-24 08:28:32.275 - Connected node 192.168.178.205 2024-05-24 08:28:32.476 - Node: 61BF01020010FF015130303331323933383034333233 2024-05-24 08:28:32.627 - MQTT connected 2024-05-24 08:28:33.023 - Server: 61C00001000BFF02010204050C191A2241 2024-05-24 08:28:33.224 - Node: 61C001020008FF0200016E756C6C61C001020012FF020002513030333132393338303433323361C001020007FF020004312E3261C00102000BFF020005332E362E362E3661C001020005FF02000C3161C001020006FF020019313261C001020004FF02011A61C00102000EFF020022393630302D382D312D3061C001020004FF020141 2024-05-24 08:28:33.624 - Server: 61C10001000AFF04010300B80001042F 2024-05-24 08:28:34.026 - Node: 61C100010009FF0401030200017984 2024-05-24 08:28:34.427 - Server: 61C20001000AFF040103006400034414 2024-05-24 08:28:34.828 - Node: 61C20001000DFF040103060000000000002175 2024-05-24 08:28:35.229 - Server: 61C30001000AFF0401030068000105D6 2024-05-24 08:28:35.629 - Node: 61C300010009FF040103020000B844 2024-05-24 08:28:36.03 - Server: 61C40001000AFF040103006A0001A416 2024-05-24 08:28:36.431 - Node: 61C400010009FF040103020000B844 2024-05-24 08:28:36.832 - Server: 61C50001000AFF040103006C0003C5D6 2024-05-24 08:28:37.233 - Node: 61C50001000DFF040103060000000000002175 2024-05-24 08:28:37.634 - Server: 61C60001000AFF04010300AB001C35E3 2024-05-24 08:28:38.135 - Node: 61C60001003FFF0401033837000000000000000000000000000000000000000000000000000001000039323633323430323130303139300000000000000000000000006384 2024-05-24 08:28:38.536 - Server: 61C70001000AFF04010300C8001645FA 2024-05-24 08:28:39.037 - Node: 61C700010033FF0401032C9000000208E4138D00A308E3000E138B00C3000008E30013138D016801B0000500000000107805A4000F0000B7B0 2024-05-24 08:28:39.438 - Server: 61C80001000AFF04010300DF000DB5F5 2024-05-24 08:28:39.939 - Node: 61C800010021FF0401031A00E0000000060018001C001800050000004500000000000000001309 2024-05-24 08:28:40.34 - Server: 61C90001000AFF040103012C000C85FA 2024-05-24 08:28:40.741 - Node: 61C90001001FFF0401031800000003000000000000000000010000000100010001000027FB 2024-05-24 08:28:41.142 - Server: 61CA0001000AFF040103013900055438 2024-05-24 08:28:41.542 - Node: 61CA00010011FF0401030A0000FFFFEDFF0000000067D4 2024-05-24 08:28:41.944 - Server: 61CB0001000AFF0401030140001445ED 2024-05-24 08:28:42.444 - Node: 61CB0001002FFF0401032808FC1388000002940234021C000001CC000001A4000000020258012C0248003C0078001E00000000F413 2024-05-24 08:28:42.845 - Server: 61CC0001000AFF040103019400040419 2024-05-24 08:28:43.246 - Node: 61CC0001000FFF040103080003000000000000A6D7

file conf.ini

fakeClient=false mqttServer=192.168.178.190 mqttPort=1883 enableMqttAuth=true mqttUser=homeassistant mqttPass=yooquireihsdjkflsdfjhla9asdfjaksldf67asjdfh mqttTopic=solar/Inverter/ updateFrequency=10

configuration.yaml

sensor:

but I don't see any mqtt data on homeassistant.