Joshua Rutschmann 6 years ago
parent
commit
414d557a72

+ 0
- 0
README.md View File


+ 15
- 1
config/automations.yaml View File

@@ -1,4 +1,4 @@
1
-- alias: "Welcome Home"
1
+- alias: "Welcome Josh if he gets home"
2 2
   condition: []
3 3
   trigger:
4 4
   - entity_id: device_tracker.josh
@@ -12,6 +12,20 @@
12 12
       data:
13 13
         subtitle: "What can I do for you?"
14 14
 
15
+- alias: "Send notification if Margit gets home"
16
+  condition: []
17
+  trigger:
18
+  - entity_id: device_tracker.margit
19
+    from: not_home
20
+    platform: state
21
+    to: home
22
+  action:
23
+    service: notify.ios_jphone
24
+    data:
25
+      message: "Margit arrived at home."
26
+      data:
27
+        subtitle: "No problem!"
28
+
15 29
 - alias: "Hass Startup Notification"
16 30
   trigger:
17 31
     - platform: homeassistant

+ 11
- 1
config/configuration.yaml View File

@@ -93,7 +93,15 @@ mqtt:
93 93
   password: Mindabew1
94 94
 
95 95
 sensor:
96
-  - platform: cpuspeed
96
+  - platform: netdata
97
+    host: 5.45.105.15
98
+    resources:
99
+      load:
100
+        data_group: system.load
101
+        element: load15
102
+      cpu:
103
+        data_group: system.cpu
104
+        element: system
97 105
   - platform: dht
98 106
     sensor: DHT22
99 107
     pin: 18
@@ -161,6 +169,8 @@ light:
161 169
     devices:
162 170
       192.168.1.185:
163 171
         name: Led Strip
172
+      192.168.1.131:
173
+        name: Led Strip Bed
164 174
   - platform: template
165 175
     lights:
166 176
       hdmi:

+ 0
- 0
config/customize.yaml View File


+ 0
- 0
config/groups.yaml View File


+ 12
- 4
config/known_devices.yaml View File

@@ -1,9 +1,9 @@
1
-
2 1
 josh:
3 2
   hide_if_away: false
4 3
   icon:
5 4
   mac: F0:98:9D:7B:2B:4A
6 5
   name: Joshua
6
+  gravatar: joshua@rutschmann.tech
7 7
   picture:
8 8
   track: true
9 9
 
@@ -12,7 +12,7 @@ david:
12 12
   icon:
13 13
   mac: 18:65:90:91:22:CF
14 14
   name: David
15
-  picture:
15
+  picture: /local/david.jpg
16 16
   track: true
17 17
   
18 18
 meinrad:
@@ -20,7 +20,7 @@ meinrad:
20 20
   icon:
21 21
   mac: 38:53:9C:B8:AC:4C
22 22
   name: Meinrad
23
-  picture:
23
+  picture: /local/meinrad.jpg
24 24
   track: true
25 25
 
26 26
 margit:
@@ -28,7 +28,7 @@ margit:
28 28
   icon:
29 29
   mac: 38:CA:DA:53:D6:56
30 30
   name: Margit
31
-  picture:
31
+  picture: /local/margit.jpg
32 32
   track: true
33 33
 
34 34
 007147f55e0a:
@@ -358,3 +358,11 @@ d0a637864f63:
358 358
   name: d0a637864f63
359 359
   picture:
360 360
   track: false
361
+
362
+600194b39ebb:
363
+  hide_if_away: false
364
+  icon:
365
+  mac: 60:01:94:B3:9E:BB
366
+  name: 600194b39ebb
367
+  picture:
368
+  track: false

+ 0
- 0
config/midnight.yaml View File


+ 0
- 0
config/scripts.yaml View File


+ 0
- 0
config/secrets.yaml View File


+ 56
- 36
config/ui-lovelace.yaml View File

@@ -1,5 +1,11 @@
1 1
 title: Tannenhof
2 2
 
3
+resources:
4
+  - url: /local/circle-sensor-card.js?v=0
5
+    type: module
6
+  - url: /local/surveillance-card.js?v=0
7
+    type: module
8
+
3 9
 views:
4 10
     # View tab title.
5 11
   - title: Home
@@ -27,34 +33,21 @@ views:
27 33
         # The markdown card will render markdown text.
28 34
       - type: horizontal-stack
29 35
         cards:
30
-          - type: conditional
31
-            conditions:
32
-              - entity: device_tracker.david
33
-                state: "home"
34
-            card:
35
-                type: entity-button
36
-                entity: device_tracker.david
37
-          - type: conditional
38
-            conditions:
39
-              - entity: device_tracker.josh
40
-                state: "home"
41
-            card:
42
-                type: entity-button
43
-                entity: device_tracker.josh
44
-          - type: conditional
45
-            conditions:
46
-              - entity: device_tracker.margit
47
-                state: "home"
48
-            card:
49
-                type: entity-button
50
-                entity: device_tracker.margit
51
-          - type: conditional
52
-            conditions:
53
-              - entity: device_tracker.meinrad
54
-                state: "home"
55
-            card:
56
-                type: entity-button
57
-                entity: device_tracker.meinrad
36
+          - type: history-graph
37
+            title: 'My Graph'
38
+            entities:
39
+              - device_tracker.josh
40
+              - device_tracker.david
41
+              - device_tracker.margit
42
+              - device_tracker.meinrad
43
+          - type: entity-filter
44
+            entities:
45
+              - device_tracker.josh
46
+              - device_tracker.david
47
+              - device_tracker.margit
48
+              - device_tracker.meinrad
49
+            state_filter:
50
+              - "home"
58 51
       - type: horizontal-stack
59 52
         cards:
60 53
         - type: light
@@ -66,6 +59,16 @@ views:
66 59
         name: Temperature
67 60
         height: 75
68 61
         line_color: "#3498db"
62
+      - type: horizontal-stack
63
+        cards:
64
+          - type: sensor
65
+            entity: sensor.netdata_cpu
66
+            name: Server CPU
67
+            height: 75
68
+            line_color: "#B90000"
69
+          - type: gauge
70
+            title: Server CPU
71
+            entity: sensor.netdata_cpu
69 72
       - type: conditional
70 73
         conditions:
71 74
           - entity: light.bed_light
@@ -94,13 +97,30 @@ views:
94 97
     # Each view can have a different theme applied. Theme should be defined in the frontend.
95 98
     theme: dark-mode
96 99
     cards:
97
-      - type: horizontal-stack
98
-        cards:
99
-          - type: iframe
100
-            url: https://www.rainviewer.com/map.html?loc=47.6739,9.1983,10&oFa=0&oC=1&oU=0&oCS=1&oF=0&oAP=0&rmt=4&c=1&o=70&lm=1&th=1
101
-            aspect_ratio: 100%
102
-          - type: iframe
103
-            url: https://earth.nullschool.net/#current/wind/surface/level/equirectangular=-354.86,46.31,1647/loc=9.198,47.673
104
-            aspect_ratio: 100%
100
+      - type: iframe
101
+        url: https://www.rainviewer.com/map.html?loc=47.6739,9.1983,10&oFa=0&oC=1&oU=0&oCS=1&oF=0&oAP=0&rmt=4&c=1&o=70&lm=1&th=1
102
+        aspect_ratio: 100%
103
+      - type: iframe
104
+        url: https://earth.nullschool.net/#current/wind/surface/level/equirectangular=-354.86,46.31,1647/loc=9.198,47.673
105
+
106
+  - title: Automations
107
+    id: automations
108
+    # Optional background (overwrites the global background).
109
+    background: radial-gradient(crimson, skyblue)
110
+    # Each view can have a different theme applied. Theme should be defined in the frontend.
111
+    theme: dark-mode
112
+    cards:  
113
+      - type: entities
114
+        title: Automations
115
+        entities:
116
+          - automation.enable_subwoofer_if_desktop_plays_music_from_spotify
117
+          - automation.hass_startup_notification
118
+          - automation.notify_about_phone_state
119
+          - automation.send_notification_if_margit_gets_home
120
+          - automation.turn_off_light_10_minutes_after_last_movement
121
+          - automation.turn_off_subwoofer_when_pc_is_off
122
+          - automation.turn_on_light_when_there_is_movement
123
+          - automation.update_available_notifications
124
+          - automation.welcome_josh_if_he_gets_home
105 125
 
106 126
 

+ 0
- 0
docker-compose.yml View File


Loading…
Cancel
Save