forked from SebastianKelly/smartNespresso
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfiguration.yaml
68 lines (54 loc) · 1.2 KB
/
configuration.yaml
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#this is what to enter in your configuration file for HomeAssistant
#make sure you have these in your home assistant
mqtt:
broker: yourbroker_address
username: !secret mqtt_username
password: !secret mqtt_password
sensor:
- platform: template
sensors:
alarm_time:
friendly_name: 'Time'
value_template: '{{ "%0.02d:%0.02d" | format(states("input_slider.alarmhour") | int, states("input_slider.alarmminutes") | int) }}'
- platform: time_date
display_options:
- 'time'
- 'date'
- 'date_time'
- 'time_date'
- 'time_utc'
switch:
- platform: mqtt
name: "Coffee Machine"
state_topic: "dev/coffeeMachine"
command_topic: "dev/coffeeMachine"
qos: 0
payload_on: "onn"
input_slider:
alarmhour:
name: Hour
icon: mdi:timer
initial: 9
min: 0
max: 23
step: 1
alarmminutes:
name: Minutes
icon: mdi:timer
initial: 0
min: 0
max: 59
step: 5
input_boolean:
alarmstatus:
name: Alarm Status
initial: off
icon: mdi:timer
alarmweekday:
name: Weekdays Only
initial: off
icon: mdi:calendar
morningcoffee:
name: Coffee
initial: off
icon: mdi:coffee-outline