{
"power":{
"power_info":"powermeter data",
"L_usage":{"val":0, "unit":"W", "factor":1, "min":-32768, "max":32767},
"L_pv_total":{"val":0, "unit":"W", "factor":1},
"L_pv_1":{"val":0, "unit":"W", "factor":1},
"L_pv_2":{"val":0, "unit":"W", "factor":1},
"L_from_grid":{"val":0, "unit":"W", "factor":1, "min":-32768, "max":32767},
"L_to_grid":{"val":0, "unit":"W", "factor":1, "min":-32768, "max":32767},
"L_p1":{"val":0 "unit":"W", "factor":1, "min":-32768, "max":32767},
"L_p2":{"val":0, "unit":"W", "factor":1, "min":-32768, "max":32767},
"L_p3":{"val":-0, "unit":"W", "factor":1, "min":-32768, "max":32767},
"L_batt_in":{"val":0, "unit":"W", "factor":1, "min":-32768, "max":32767},
"L_batt_out":{"val":0, "unit":"W", "factor":1, "min":-32768, "max":32767},
"L_batt_chg":{"val":0, "unit":"%", "factor":1, "min":-32768, "max":32767},
"L_batt_enabled":{"val":0, "format":"0:Inaktiv|1:Aktiv"},
"L_pwr_out_per":{"val":0, "unit":"%", "factor":1, "min":0, "max":100},
"L_pwr_out":{"val":0, "unit":"W", "factor":1, "min":-32768, "max":32767},
"L_power2car":{"val":0, "unit":"W", "factor":1, "min":-32768, "max":32767},
"L_today_total":{"val":0, "unit":"kWh", "factor":1.0E-4},
"L_today_in":{"val":0, "unit":"kWh", "factor":1.0E-4},
"L_today_out":{"val":0, "unit":"kWh", "factor":1.0E-4},
"L_state":{"val":0, "factor":1},
"L_total":{"val":0, "factor":1},
"L_yesterday":{"val":0, "unit":"kWh", "factor":1.0E-4},
"L_total_tyristor":{"val":0, "unit":"kWh", "factor":1.0E-4},
"L_yesterday_tyristor":{"val":0, "unit":"kWh", "factor":1.0E-4},
"L_total_car":{"val":0, "unit":"kWh", "factor":1.0E-4},
"L_yesterday_car":{"val":0, "unit":"kWh", "factor":1.0E-4},
"L_total_pv":{"val":0, "unit":"kWh", "factor":1.0E-4},
"L_yesterday_pv":{"val":0, "unit":"kWh", "factor":1.0E-4},
"L_today_batt_in":{"val":0, "factor":1},
"L_today_batt_out":{"val":0, "factor":1},
"L_yesterday_batt_in":{"val":0, "factor":1},
"L_yesterday_batt_out":{"val":0, "factor":1},
"L_output_mode":{"val":0, "format":"0:Aus|1:Ein"},
"L_range":{"val":0, "unit":"W", "factor":1, "min":500, "max":10000},
"L_offset":{"val":0, "unit":"W", "factor":1, "min":0, "max":10000},
"L_total_in":{"val":0, "factor":1},
"L_total_out":{"val":0, "factor":1},
"L_yesterday_in":{"val":0, "unit":"kWh", "factor":1.0E-4},
"L_yesterday_out":{"val":0, "unit":"kWh", "factor":1.0E-4},
"offtemp":{"val":0, "unit":"°C", "factor":0.1, "min":300, "max":900}
}
}
I'd be very happy to assist with implementing these sensors, but didn't fully understand your code. I think I should add the values to const.py, how do you import that in the configuration during creation? Maybe another switch with "Use SmartPV" would be nice as this seems to be a niche Ökofen add-on that is relatively unusual. Any help is very appreciated for my fist commit on github ;-)
Hi @dominikamann and first of all: Thank you very much for your HACS integration for Ökofen. It works out of the box but I'm missing the values from the SmartPV feature (that features basically a power meter for your power flow direction [buy or sell] and an electric heating element in the water storage tank).
I'd prefer to contribute with a pull request but I'm probably the worst programmer in the world. The values are stored in the $.power domain and are basically
I'd be very happy to assist with implementing these sensors, but didn't fully understand your code. I think I should add the values to const.py, how do you import that in the configuration during creation? Maybe another switch with "Use SmartPV" would be nice as this seems to be a niche Ökofen add-on that is relatively unusual. Any help is very appreciated for my fist commit on github ;-)