Skip to content

Commit aa1f04c

Browse files
Copilotliudger
andcommitted
Update examples to show DHW time switch usage
Co-authored-by: liudger <4112111+liudger@users.noreply.github.com>
1 parent 595840b commit aa1f04c

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

examples/control.py

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,27 @@ async def print_hot_water_state(hot_water_state: HotWaterState) -> None:
157157
"Current Temperature": await get_attribute(
158158
hot_water_state.dhw_actual_value_top_temperature, "value", "N/A"
159159
),
160+
"Time Program Monday": await get_attribute(
161+
hot_water_state.dhw_time_program_monday, "value", "N/A"
162+
),
163+
"Time Program Tuesday": await get_attribute(
164+
hot_water_state.dhw_time_program_tuesday, "value", "N/A"
165+
),
166+
"Time Program Wednesday": await get_attribute(
167+
hot_water_state.dhw_time_program_wednesday, "value", "N/A"
168+
),
169+
"Time Program Thursday": await get_attribute(
170+
hot_water_state.dhw_time_program_thursday, "value", "N/A"
171+
),
172+
"Time Program Friday": await get_attribute(
173+
hot_water_state.dhw_time_program_friday, "value", "N/A"
174+
),
175+
"Time Program Saturday": await get_attribute(
176+
hot_water_state.dhw_time_program_saturday, "value", "N/A"
177+
),
178+
"Time Program Sunday": await get_attribute(
179+
hot_water_state.dhw_time_program_sunday, "value", "N/A"
180+
),
160181
}
161182
print_attributes("Hot Water State", attributes)
162183

@@ -201,6 +222,10 @@ async def main() -> None:
201222
# Get hot water state
202223
hot_water_state: HotWaterState = await bsblan.hot_water_state()
203224
await print_hot_water_state(hot_water_state)
225+
226+
# Example: Set DHW time program for Monday
227+
print("\nSetting DHW time program for Monday to 13:00-14:00")
228+
await bsblan.set_hot_water(dhw_time_program_monday="13:00-14:00 ##:##-##:## ##:##-##:##")
204229

205230

206231
if __name__ == "__main__":

0 commit comments

Comments
 (0)