2020-04-08 15:10:15 ERROR (Thread-12) [custom_components.sonnenbatterie] {‘status’: {‘IOStates’: {‘’: False, ‘AC_Relais1Closed’: False, ‘AC_Relais2Closed’: False, ‘DC1_RelaisClosed’: False, ‘DC2_RelaisClosed’: False, ‘OpenCollectorOutput1’: False, ‘OpenCollectorOutput2’: False, ‘OpenCollectorOutput3’: False}, ‘fac’: ‘50.02’, ‘iac1’: ‘0.34’, ‘iac2’: ‘0.34’, ‘iac3’: ‘0.33’, ‘ibat’: ‘-0.01’, ‘ipv’: ‘0.00’, ‘ipv2’: ‘0.00’, ‘mode’: ‘connected’, ‘pac1’: ‘-0.46’, ‘pac2’: ‘-0.19’, ‘pac3’: ‘0.17’, ‘pac_microgrid’: ‘0.00’, ‘pac_total’: ‘-5.29’, ‘pbat’: ‘-0.33’, ‘phi’: ‘0.00’, ‘ppv’: ‘0.00’, ‘ppv2’: ‘0.00’, ‘sac1’: ‘80.16’, ‘sac2’: ‘80.23’, ‘sac3’: ‘78.72’, ‘sac_total’: ‘239.11’, ‘status’: {‘’: False, ‘Active Failure’: False, ‘Active P(f) Active’: False, ‘Active Pu Active’: False, ‘BDC Communication Timeout’: False, ‘Checking FI’: False, ‘Checking Grid DC Offset Current’: False, ‘Checking Grid Timing’: False, ‘Checking Isolation Resistance’: False, ‘Checking PU Hardware’: False, ‘Checking Relais’: False, ‘Checking Shutdown’: False, ‘DcInput Config Incomplete’: False, ‘Derating External’: False, ‘Derating Freq too high for connect’: False, ‘Derating Freq too low for connect’: False, ‘Derating Frequency’: False, ‘Derating Hardware Limit’: False, ‘Derating Startup’: False, ‘Derating Thermal’: False, ‘Derating User Limit’: False, ‘FanError Active’: False, ‘Island Mode Active’: False, ‘Island Mode Overload’: False, ‘Island Mode ShortCircuit’: False, ‘Over Temperature’: False, ‘PU Communication Timeout’: False, ‘Reactive Output Control Active’: False, ‘Ready’: True, ‘Self Test Active’: False, ‘Startup OK’: True}, ‘status2’: {‘’: False, ‘FFR_Active_status’: False}, ‘tempbdc’: ‘32.79’, ‘temphmi’: ‘34.00’, ‘temppu’: ‘38.09’, ‘uac1’: ‘240.96’, ‘uac2’: ‘235.21’, ‘uac3’: ‘234.46’, ‘ubat’: ‘50.77’, ‘udc’: ‘645.80’, ‘upv’: ‘0.00’, ‘upv2’: ‘0.00’}, ‘settings’: {‘CommunicationWatchdog’: 60, ‘CountryCode’: 4900, ‘Firmware Version’: {‘BDC Version’: ‘3.26.0’, ‘ENS1 Version’: ‘3.2.0’, ‘ENS2 Version’: ‘3.2.0’, ‘HMI Version’: ‘2.28.0’, ‘PU Version’: ‘11.2.0’, ‘RIO Version’: ‘0.0.0’}, ‘PVsU_Enable’: 0, ‘P_max’: 5500, ‘PassivePvsFConfiguration_t’: {‘Frequency’: 0, ‘Gradient’: 0}, ‘PowerDeratingPermill’: 1000, ‘PvsFConfiguration_t’: {‘ActivationDelay_ms’: 0, ‘ExitDelay_s’: 0, ‘ExitRamp_s’: 0, ‘FrequencyLowerEnd_mHz’: 0, ‘FrequencyLowerEntry_mHz’: 0, ‘FrequencyLowerExit_mHz’: 0, ‘FrequencyUpperEnd_mHz’: 0, ‘FrequencyUpperEntry_mHz’: 0, ‘FrequencyUpperExit_mHz’: 0}, ‘PvsF_Enable’: 0, ‘PvsUConfiguration_t’: {‘ControlResponseTime_s’: 0, ‘Type’: 0, ‘Voltage_LowerEnd_ppt’: 0, ‘Voltage_LowerEntry_ppt’: 0, ‘Voltage_UpperEnd_ppt’: 0, ‘Voltage_UpperEntry_ppt’: 0}, ‘ReactivePowerConfiguration_t’: {‘CalculationBasis’: 0, ‘P_Point1’: 0, ‘P_Point2’: 1000, ‘P_Point3’: 1000, ‘P_Point4’: 1000, ‘P_Point5’: 1000, ‘P_Point6’: 1000, ‘P_Point7’: 1000, ‘P_Point8’: 1000, ‘PowerFactor’: 1000, ‘Reactive_Output_CurvePointsUsed’: 2, ‘dynamic’: 0, ‘phi_Point1’: 1000, ‘phi_Point2’: 1000, ‘phi_Point3’: 1000, ‘phi_Point4’: 1000, ‘phi_Point5’: 1000, ‘phi_Point6’: 1000, ‘phi_Point7’: 1000, ‘phi_Point8’: 1000}, ‘ShutdownPin’: 0, ‘StecaFFRConfiguration_t’: {‘FFR_Enable’: 0, ‘FFR_Test_Enable’: 0, ‘Frequency_FFR_lower_mHz’: 0, ‘Frequency_FFR_test_mHz’: 0, ‘Frequency_FFR_upper_mHz’: 0}, ‘UNIXTimestamp’: 639616530}}
2020-04-08 15:10:17 ERROR (Thread-12) [custom_components.sonnenbatterie] Traceback (most recent call last):
File “/config/custom_components/sonnenbatterie/sensor.py”, line 210, in AddOrUpdateEntities
val=inverter[‘status’][‘factest’]
KeyError: ‘fac’