-
Notifications
You must be signed in to change notification settings - Fork 1
/
example.py
36 lines (30 loc) · 920 Bytes
/
example.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
from daikin_altherma import DaikinAltherma
d = DaikinAltherma('192.168.11.100')
d.print_all_status()
1/0 # XXX the following will erase your schedules
_present_day_schedule = {
'0000': 17,
'0200': 22, # Pre-heat the house because of low-tariff
'0640': 21, # Back to high-tariff
'1400': 22, # low-tariff again
'1640': 18, # high-tariff
'2000': 17, # Shut off heating
}
_away_day_schedule = {
'0000': 17,
'0200': 22, # Pre-heat the house because of low-tariff
'0640': 20, # Back to high-tariff
'1400': 22, # low-tariff again
'1640': 18, # high-tariff
'2000': 17, # Shut off heating
}
schedule = {
'Mo': _away_day_schedule,
'Tu': _away_day_schedule,
'We': _present_day_schedule,
'Th': _present_day_schedule,
'Fr': _present_day_schedule,
'Sa': _present_day_schedule,
'Su': _present_day_schedule,
}
d.set_heating_schedule(schedule)