mirror of
https://github.com/esphome/esphome.git
synced 2024-11-22 11:47:30 +01:00
Add output source priority "hybrid" (#7322)
This commit is contained in:
parent
da72bae94a
commit
68272c39c0
@ -136,6 +136,9 @@ void Pipsolar::loop() {
|
||||
if (this->output_source_priority_battery_switch_) {
|
||||
this->output_source_priority_battery_switch_->publish_state(value_output_source_priority_ == 2);
|
||||
}
|
||||
if (this->output_source_priority_hybrid_switch_) {
|
||||
this->output_source_priority_hybrid_switch_->publish_state(value_output_source_priority_ == 3);
|
||||
}
|
||||
if (this->charger_source_priority_) {
|
||||
this->charger_source_priority_->publish_state(value_charger_source_priority_);
|
||||
}
|
||||
|
@ -174,6 +174,7 @@ class Pipsolar : public uart::UARTDevice, public PollingComponent {
|
||||
PIPSOLAR_SWITCH(output_source_priority_utility_switch, QPIRI)
|
||||
PIPSOLAR_SWITCH(output_source_priority_solar_switch, QPIRI)
|
||||
PIPSOLAR_SWITCH(output_source_priority_battery_switch, QPIRI)
|
||||
PIPSOLAR_SWITCH(output_source_priority_hybrid_switch, QPIRI)
|
||||
PIPSOLAR_SWITCH(input_voltage_range_switch, QPIRI)
|
||||
PIPSOLAR_SWITCH(pv_ok_condition_for_parallel_switch, QPIRI)
|
||||
PIPSOLAR_SWITCH(pv_power_balance_switch, QPIRI)
|
||||
|
@ -9,6 +9,7 @@ DEPENDENCIES = ["uart"]
|
||||
CONF_OUTPUT_SOURCE_PRIORITY_UTILITY = "output_source_priority_utility"
|
||||
CONF_OUTPUT_SOURCE_PRIORITY_SOLAR = "output_source_priority_solar"
|
||||
CONF_OUTPUT_SOURCE_PRIORITY_BATTERY = "output_source_priority_battery"
|
||||
CONF_OUTPUT_SOURCE_PRIORITY_HYBRID = "output_source_priority_hybrid"
|
||||
CONF_INPUT_VOLTAGE_RANGE = "input_voltage_range"
|
||||
CONF_PV_OK_CONDITION_FOR_PARALLEL = "pv_ok_condition_for_parallel"
|
||||
CONF_PV_POWER_BALANCE = "pv_power_balance"
|
||||
@ -17,6 +18,7 @@ TYPES = {
|
||||
CONF_OUTPUT_SOURCE_PRIORITY_UTILITY: ("POP00", None),
|
||||
CONF_OUTPUT_SOURCE_PRIORITY_SOLAR: ("POP01", None),
|
||||
CONF_OUTPUT_SOURCE_PRIORITY_BATTERY: ("POP02", None),
|
||||
CONF_OUTPUT_SOURCE_PRIORITY_HYBRID: ("POP03", None),
|
||||
CONF_INPUT_VOLTAGE_RANGE: ("PGR01", "PGR00"),
|
||||
CONF_PV_OK_CONDITION_FOR_PARALLEL: ("PPVOKC1", "PPVOKC0"),
|
||||
CONF_PV_POWER_BALANCE: ("PSPB1", "PSPB0"),
|
||||
|
@ -220,6 +220,8 @@ switch:
|
||||
name: inverter0_output_source_priority_solar
|
||||
output_source_priority_battery:
|
||||
name: inverter0_output_source_priority_battery
|
||||
output_source_priority_hybrid:
|
||||
name: inverter0_output_source_priority_hybrid
|
||||
input_voltage_range:
|
||||
name: inverter0_input_voltage_range
|
||||
pv_ok_condition_for_parallel:
|
||||
|
@ -220,6 +220,8 @@ switch:
|
||||
name: inverter0_output_source_priority_solar
|
||||
output_source_priority_battery:
|
||||
name: inverter0_output_source_priority_battery
|
||||
output_source_priority_hybrid:
|
||||
name: inverter0_output_source_priority_hybrid
|
||||
input_voltage_range:
|
||||
name: inverter0_input_voltage_range
|
||||
pv_ok_condition_for_parallel:
|
||||
|
@ -220,6 +220,8 @@ switch:
|
||||
name: inverter0_output_source_priority_solar
|
||||
output_source_priority_battery:
|
||||
name: inverter0_output_source_priority_battery
|
||||
output_source_priority_hybrid:
|
||||
name: inverter0_output_source_priority_hybrid
|
||||
input_voltage_range:
|
||||
name: inverter0_input_voltage_range
|
||||
pv_ok_condition_for_parallel:
|
||||
|
@ -220,6 +220,8 @@ switch:
|
||||
name: inverter0_output_source_priority_solar
|
||||
output_source_priority_battery:
|
||||
name: inverter0_output_source_priority_battery
|
||||
output_source_priority_hybrid:
|
||||
name: inverter0_output_source_priority_hybrid
|
||||
input_voltage_range:
|
||||
name: inverter0_input_voltage_range
|
||||
pv_ok_condition_for_parallel:
|
||||
|
@ -220,6 +220,8 @@ switch:
|
||||
name: inverter0_output_source_priority_solar
|
||||
output_source_priority_battery:
|
||||
name: inverter0_output_source_priority_battery
|
||||
output_source_priority_hybrid:
|
||||
name: inverter0_output_source_priority_hybrid
|
||||
input_voltage_range:
|
||||
name: inverter0_input_voltage_range
|
||||
pv_ok_condition_for_parallel:
|
||||
|
@ -220,6 +220,8 @@ switch:
|
||||
name: inverter0_output_source_priority_solar
|
||||
output_source_priority_battery:
|
||||
name: inverter0_output_source_priority_battery
|
||||
output_source_priority_hybrid:
|
||||
name: inverter0_output_source_priority_hybrid
|
||||
input_voltage_range:
|
||||
name: inverter0_input_voltage_range
|
||||
pv_ok_condition_for_parallel:
|
||||
|
Loading…
Reference in New Issue
Block a user