-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathPartial_Cover.yaml
41 lines (38 loc) · 1.61 KB
/
Partial_Cover.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
## this goes in the "homeassistant:" section at the top of your configuration.yaml
customize: ##if you already have a "customize" section, then just add the "cover.double" and the rest to that section.
cover.double:
device_class: garage
friendly_name: Garage 1 #change this to whatever you want the door called in your HA UI "wife's door", "my side", etc.
cover.single: ##if you only have one door you can delete this second entry
device_class: garage
friendly_name: Garage 2 #change this to whatever you want the door called in your HA UI "wife's door", "my side", etc.
#mqtt: ##if you already have mqtt setup you don't need this section
# broker: your.mqtt.HA.pi
# port: 1883
# client_id: home-assistant-1
# username: yourmqttname
# password: yourmqttpw
cover: ## this makes the garage door card appear in HA
- platform: mqtt
name: "double"
state_topic: "sensor/garage/state1"
command_topic: "sensor/garage/action1"
payload_open: "OPEN"
payload_close: "OPEN"
payload_stop: "OPEN"
state_open: "open"
state_closed: "closed"
optomistic: false
retain: false
- platform: mqtt ##if you only have one door you can delete this second entry
name: "single"
state_topic: "sensor/garage/state2"
command_topic: "sensor/garage/action2"
payload_open: "OPEN"
payload_close: "OPEN"
payload_stop: "OPEN"
state_open: "open"
state_closed: "closed"
optomistic: false
retain: false
group: !include groups.yaml ## this will reference "groups.yaml" for this project we'll add an entry to change the name from "cover" to "Garage Doors"