| 1234567891011 |
- from hth_sdk import HTH, Control
- with HTH.mock() as hth:
- for state in hth.watch(period=0.05, count=3):
- action = Control(
- fans=[20] * 4,
- heaters=[30] * 4,
- doors={"x": 0, "y": 0, "z": 0},
- )
- result = hth.set(action)
- print(max(t for t in state.temperatures_c if t is not None), result.ok)
|