-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathexample_time.yml
48 lines (43 loc) · 951 Bytes
/
example_time.yml
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
36
37
38
39
40
41
42
43
44
45
46
47
48
esphome:
name: timesync-demo
external_components:
- source: components
components: [zigbee]
esp32:
board: esp32-c6-devkitc-1
variant: esp32c6
flash_size: 8MB
partitions: partitions_zb.csv
framework:
type: esp-idf
sdkconfig_options:
CONFIG_ESPTOOLPY_FLASHSIZE_8MB: y
logger:
zigbee:
id: "zb"
endpoints:
# We need at least one endpoint defined
- device_type: TEMPERATURE_SENSOR
num: 1
clusters:
- id: TEMP_MEASUREMENT
attributes:
- attribute_id: 0x0
type: S16
report: true
id: zb_temp
value: 0
on_join:
then:
- logger.log: "Joined network"
time:
- platform: zigbee
id: the_time
timezone: Europe/London
on_time_sync:
then:
- logger.log: "Synchronized system clock"
on_time:
- seconds: /10
then:
- logger.log: "Tick-tock, every 10 seconds"