[TASK] Added README.md to explain the configuration of the script
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user