[TASK] Added README.md to explain the configuration of the script

This commit is contained in:
2024-05-24 22:54:16 +02:00
parent 5fa9fbed2b
commit e9495d8fb7
2 changed files with 62 additions and 1 deletions

View File

@@ -78,7 +78,7 @@ class BoilerControl(hass.Hass):
self.run_at(self.turn_boiler_off, block["end"])
if (self.output_sensor != None):
self.set_state(self.output_sensor, state="on" if currently_on else "off", attributes={"active_blocks": boiler_active_blocks, "merged_blocks": merged_blocks})
self.set_state(self.output_sensor, state="on" if currently_on else "off", attributes={"active_blocks": boiler_active_blocks, "merged_blocks": merged_blocks, "average_price": sum([block["value"] for block in boiler_active_blocks]) / len(boiler_active_blocks)})
def turn_boiler_on(self, cb_args=None):