Open gamer123 opened 8 months ago
There should be a service set_ventilation_fan_stage
that you can call. Let me know if that works, or not. It's not very well tested, I don't have a recovair in my setup.
I tried, but I don't get it :D I tried to set the FAN status to 5. According to the APP, 1-5 should be possible. According to my understanding it must be data:{5} or data:{'5'} ? Please let me know if this is correct. Thank you very much ! @signalkraft
@signalkraft there is missing a GUI input function, but i dont know how to add :| It is working this is the used command:
service: mypyllant.set_ventilation_fan_stage target: entity_id:
DAY is normal mode NIGHT is reduced mode
I have the VAR 260 and also have the problem, that i can´t change die Fan Level via Home Assistant. I updated the HACS Component to the latest Version 0.8.3, but it still doesn´t work.
@gamer123 If i use your code, i still get an error. Any idea?
This works for me. Var 360 It changes the value for the day.
action: mypyllant.set_ventilation_fan_stage
entity_id: climate.zuhause_ventilation_var_360_4_climate
data:
maximum_fan_stage: 2
fan_stage_type: "DAY"
I also added
@property
def extra_state_attributes(self) -> Mapping[str, Any] | None:
attr = {
"time_program_ventilation": self.ventilation.time_program_ventilation,
"maximum_night_fan_stage": self.maximum_night_fan_stage,
"maximum_day_fan_stage": self.maximum_day_fan_stage
}
return attr
@property
def maximum_night_fan_stage(self) -> int | None:
return self.ventilation.maximum_night_fan_stage
@property
def maximum_day_fan_stage(self) -> int | None:
return self.ventilation.maximum_day_fan_stage
Then you can see the Values in Homeassistant.
But I'm not good enough in Python that i can make a PR where the values are written into the entity.
I tried to add it like this in the number.py:
for ventilation_index, ventilation in enumerate(system.ventilation):
sensors.append(
lambda: MaximumFanStageDaySensor(
index, ventilation_index, coordinator
)
)
sensors.append(
lambda: MaximumFanStageNightSensor(
index, ventilation_index, coordinator
)
)
class MaximumFanStageDaySensor(
VentilationClimate, NumberEntity
):
_attr_native_max_value = 6
_attr_native_min_value = 1
_attr_step = 1
async def async_set_native_value(self, value: int) -> None:
await self.set_ventilation_fan_stage(value, fan_stage_type=VentilationFanStageType.DAY)
@property
def name(self):
return f"{self.name_prefix} Maximum Fan Stage Day"
@property
def native_value(self) -> int:
return self.ventilation.maximum_day_fan_stage
@property
def unique_id(self) -> str:
return f"{self.system.id}_ventilation_{self.ventilation_index}_maximum_fan_stage_day"
class MaximumFanStageNightSensor(
VentilationClimate, NumberEntity
):
_attr_native_max_value = 6
_attr_native_min_value = 1
_attr_step = 1
async def async_set_native_value(self, value: int) -> None:
await self.set_ventilation_fan_stage(value, fan_stage_type=VentilationFanStageType.NIGHT)
@property
def name(self):
return f"{self.name_prefix} Maximum Fan Stage Night"
@property
def native_value(self) -> int:
return self.ventilation.maximum_night_fan_stage
@property
def unique_id(self) -> str:
return f"{self.system.id}_ventilation_{self.ventilation_index}_maximum_fan_stage_night"
But my Problem is the Status is fixed. Its always "auto" and I can't override it because of the ClimateEntity. As I said. I'm not good in Python.
Maybe someone can help
It would then look like this:
(Btw. changing the number works and it changes the Value in MyVailant)
@signalkraft Maybe you could implement it. If I get a Branch I could test it. Or you can teach me how to do it :)
Hi @signalkraft and @Roadis
Nice start definitely. I'm also interested in this function but have the same problem in python as @signalkraft:) Did you maybe were able to solve this? Thanks for the great work and help. Regards
Before requesting a new feature / a new sensor
Describe the feature you want
For Recovair 260 and 360 it is possible in APP to selcet the fan level. In homeassistant right now i only can select normal mode or reduced mode. I would like to use fan levels 1-5 relateted to a CO2 Sensor .
Screenshot
Export data