forked from pilot1981/control-Roomba-ESP01-using-MQTT-and-HA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlovelace_custom_button-card.yaml
97 lines (97 loc) · 2.85 KB
/
lovelace_custom_button-card.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
type: custom:stack-in-card
keep:
margin: false
box_shadow: false
background: false
cards:
- type: custom:mushroom-template-card
primary: Roomba Steuerung
secondary: 'Status: {{ states(''sensor.roomba_status'') }}'
icon: mdi:robot-vacuum
icon_color: '#9ba5a8'
- type: conditional
conditions:
- entity: sensor.roomba_status
state_not: Laden
card:
entities:
- color: '#00c6d7'
entity: sensor.roomba_batterie
name: Cyan
positions:
icon: 'off'
name: 'off'
max: 100
min: 0
padding: 2px
type: custom:bar-card
unit_of_measurement: '%'
title: null
severity:
- color: '#ff3c41'
from: 0
to: 10
- color: '#ffb900'
from: 11
to: 35
- color: '#3be8b0'
from: 36
to: 100
style: |-
bar-card-value {
margin-right: auto;
font-size: 13px;
font-weight: bold;
text-shadow: 1px 2px #0003;
color: #ffffff
}
- type: horizontal-stack
cards:
- type: custom:mushroom-entity-card
entity: button.dock
icon: mdi:home
icon_color: '#00acee'
secondary_info: none
tap_action:
action: call-service
service: script.1660164062078
data: {}
style: |
ha-card {
border: solid 1px rgba(100,100,100,0.1);
border-radius: 10px !important;
box-shadow: var( --ha-card-box-shadow, 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12) ) !important;
margin: 0px 10px;
}
- type: custom:mushroom-entity-card
entity: button.suchen
icon: mdi:map-marker
icon_color: '#ffcc2f'
secondary_info: none
tap_action:
action: call-service
service: script.1660164080061
data: {}
style: |
ha-card {
border: solid 1px rgba(100,100,100,0.1);
border-radius: 10px !important;
box-shadow: var( --ha-card-box-shadow, 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12) ) !important;
margin: 0px 10px;
}
- type: custom:mushroom-entity-card
entity: button.start_stop
icon: mdi:play
icon_color: '#2baf2b'
secondary_info: none
tap_action:
action: call-service
service: script.script_roomba_start_stop
data: {}
style: |
ha-card {
border: solid 1px rgba(100,100,100,0.1);
border-radius: 10px !important;
box-shadow: var( --ha-card-box-shadow, 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12) ) !important;
margin: 10px;
}