rcasula / kostalpiko-homeassistant

19 stars 15 forks source link

Entity values are "Unknown" #16

Closed axyaxyfr closed 1 year ago

axyaxyfr commented 1 year ago

I'm unsure what to put in my kostal.yaml... I currently have:

host: 192.168.1.165 username: pvserver password: pvwr monitored_conditions:

current_power
total_energy
daily_energy
string1_voltage
string1_current
string2_voltage
string2_current
l1_voltage
l1_power
status

I'll attach a screenshot. It can see that it's a piko 3.6 so something must be right...

kostal3

Why are the values unknown?

tvanoirschot commented 1 year ago

exactly the same over here, even on a clean install Home Assistant 2022.8.6 Supervisor 2022.08.3 Operating System 8.5

rcasula commented 1 year ago

Hi, can I have the complete config file?

in the meantime you can try this example config file:

kostal:
  host: XXX.XXX.XXX.XXX
  username: xxxxx
  password: xxxxx
  monitored_conditions:
    - current_power
    - total_energy
    - daily_energy
    - status
axyaxyfr commented 1 year ago

I just tried your suggestion. First of all, I had to add http:// before the ip. It still doesn't work. Now there are just more "Unavailable" instead of "Unknown"

rcasula commented 1 year ago

Could you please post the config.yaml and the source code of the inverter page?

axyaxyfr commented 1 year ago

I can't access the HA through SSH, so it'll have to be a screenshot.

Source from kostal:

<!DOCtype HTML PUBLIC "-//W3C//Dtd HTML 4.0 Transitional//EN">

PV Webserver
PIKO 3.6
VS7 (255)
Logo

AC power   energy
current 2336   W total energy 33523   kWh  
      daily energy 11.71   kWh  
status supply MPP  

PV generator   output power    
String 1     L1      
voltage 338   V voltage 236   V  
  current 3.88   A power 2336   W  
String 2          
voltage 336   V    
  current 3.97   A    
         
     
       

RS485 communication
inverter 

history       info page settings

kostal6

axyaxyfr commented 1 year ago

Aaah, it's being formated. I'll attach a file :- kostalhtml.txt )

axyaxyfr commented 1 year ago

Config screenshot looks like it's not opladed. I'll try again... kostal6

rcasula commented 1 year ago

Looks like you put the kostal config in a separate file. Could you please try to put the config in the main config.yaml ?

rcasula commented 1 year ago

@axyaxyfr @tvanoirschot I've found the problem. The case with 2 strings and only one phase was not handled. Now I've updated the library and it should work as expected. Please let me know.

axyaxyfr commented 1 year ago

So cool. It works now. Thanks a bunch... kostal7

axyaxyfr commented 1 year ago

Works with latest version...

tvanoirschot commented 1 year ago

Works with latest version indeed! Thanks a lot!