roleoroleo / 4-noks_ha_integration

Home Assistant custom integration for 4-NOKS Elios4you devices
GNU General Public License v3.0
6 stars 2 forks source link

Smart Plug RC ? #8

Open DJJL opened 7 months ago

DJJL commented 7 months ago

Hi, thank you for this module which allows me to recover the values ​​of the E4U. The refresh seems a little slow, but maybe that's normal? Another question, I have a Smart Plug RC connected to the E4U via the Smart Pro. I can't find the consumption information in the list. Is it possible to recover it? It is visible in the 4-Noks application Thank you so much

roleoroleo commented 7 months ago

I'm sorry but I no longer have the device. If you are able to sniff the network messages at the ethernet port, maybe I can try...

DJJL commented 7 months ago

Ok, which screen send you ? I see that, it's right ? image after 1 hour image

roleoroleo commented 7 months ago

If this device works with SNMP, I can't add the support in this integration.

I don't know what's Smart Pro. Is it a serial connection? Proprietary bus? Or it use an ehternet connection.. Try again. Start the capture and use the app to request the data. Then, send me the pcap file filtered with the ip of the device.

DJJL commented 7 months ago

ah ok, thank you

here is the link to the Smart Pro documentation : https://www.4-noks.com/download/fogli-istruzioni-4-noks/fotovoltaico/+05N002010R3.0_Pro-Smart_Instruction-manual_IT-EN-FR-DE_20180709.pdf

there is no application on pc for E4U, so I used Putty so that Wireshark sees the data received

image

roleoroleo commented 7 months ago

Can you see Smart Plug RC values in the list above? Or the list contains just E4U variables? Maybe there is another command to show these values. You should use an old hub or a switch with monitor port to capture the traffic on your E4U. I know, it's not easy...

DJJL commented 7 months ago

yes, I just checked, when the Smart pro is OFF or ON, there is a change on the DEVHAO line DEVHA0;1;0;15;1;0;0;875526;-58;81;;; to DEVHA0;1;0;15;1;1;1;875526;-58;81;;; and...

image

image

I see also a difference about the numbers : ;DEVHA0;1;1;15;1;0;0;877874;-55;81;;; 875526 (before total "Energy" ?) > 87874 (new total "Energy") = 2 348 ("Wh" I suppose ?) it's difference of the "Energy" on 5 days)

another, it's strange for me : -55;88;;; > -55;81;;;