TheMultiplexer 6 anni fa
parent
commit
cf263d13f0
5 ha cambiato i file con 59 aggiunte e 156 eliminazioni
  1. 6
    0
      config/configuration.yaml
  2. 48
    0
      config/known_devices.yaml
  3. 4
    29
      config/scripts.yaml
  4. 0
    126
      config/ui-lovelace.yaml
  5. 1
    1
      docker-compose.yml

+ 6
- 0
config/configuration.yaml Vedi File

@@ -90,6 +90,12 @@ mqtt:
90 90
   password: Mindabew1
91 91
 
92 92
 sensor:
93
+  - platform: command_line
94
+    name: CPU Temperature
95
+    command: "cat /sys/class/thermal/thermal_zone0/temp"
96
+    # If errors occur, remove degree symbol below
97
+    unit_of_measurement: "°C"
98
+    value_template: '{{ value | multiply(0.001) | round(1) }}'  
93 99
   - platform: netdata
94 100
     host: 5.45.105.15
95 101
     resources:

+ 48
- 0
config/known_devices.yaml Vedi File

@@ -558,3 +558,51 @@ guidos_iphone:
558 558
   name: Guidos-iPhone
559 559
   picture:
560 560
   track: false
561
+
562
+dietpi:
563
+  hide_if_away: false
564
+  icon:
565
+  mac: B8:27:EB:C4:87:67
566
+  name: DietPi
567
+  picture:
568
+  track: false
569
+
570
+joshsmac:
571
+  hide_if_away: false
572
+  icon:
573
+  mac: F0:79:60:18:34:3C
574
+  name: JoshsMac
575
+  picture:
576
+  track: false
577
+
578
+oneplus_3:
579
+  hide_if_away: false
580
+  icon:
581
+  mac: C0:EE:FB:D3:C1:40
582
+  name: OnePlus-3
583
+  picture:
584
+  track: false
585
+
586
+android_9:
587
+  hide_if_away: false
588
+  icon:
589
+  mac: 38:80:DF:87:D9:53
590
+  name: Android-9
591
+  picture:
592
+  track: false
593
+
594
+sammy:
595
+  hide_if_away: false
596
+  icon:
597
+  mac: DC:F7:56:BF:CA:12
598
+  name: Sammy
599
+  picture:
600
+  track: false
601
+
602
+pc_e0_b5_2d_ed_ba_31:
603
+  hide_if_away: false
604
+  icon:
605
+  mac: E0:B5:2D:ED:BA:31
606
+  name: PC-E0-B5-2D-ED-BA-31
607
+  picture:
608
+  track: false

+ 4
- 29
config/scripts.yaml Vedi File

@@ -31,20 +31,8 @@ coverup:
31 31
         service: switch.turn_on
32 32
         data:
33 33
           entity_id: switch.coverenable
34
-      - delay:
35
-          seconds: 90
36
-      - alias: Disable Pre Relay
37
-        service: switch.turn_off
38
-        data:
39
-          entity_id: switch.coverenable
40
-      - delay:
41
-          seconds: 2
42
-      - alias: Switch Direction Relay OFF (does not matter, but saves power)
43
-        service: switch.turn_off
44
-        data:
45
-          entity_id: switch.coverdirection
46 34
 
47
-          
35
+
48 36
 coverdown:
49 37
     alias: Cover Down
50 38
     sequence:
@@ -62,21 +50,8 @@ coverdown:
62 50
         service: switch.turn_on
63 51
         data:
64 52
           entity_id: switch.coverenable
65
-      - delay:
66
-          seconds: 90
67
-      - alias: Disable Pre Relay
68
-        service: switch.turn_off
69
-        data:
70
-          entity_id: switch.coverenable
71
-      - delay:
72
-          seconds: 1
73
-      - alias: Switch Direction Relay OFF (does not matter, but saves power)
74
-        service: switch.turn_off
75
-        data:
76
-          entity_id: switch.coverdirection
77 53
 
78
-          
79
-          
54
+
80 55
 covertilt:
81 56
     alias: Cover Tilt
82 57
     sequence:
@@ -103,7 +78,7 @@ covertilt:
103 78
         data:
104 79
           entity_id: switch.coverdirection
105 80
 
106
-  
81
+
107 82
 coverstop:
108 83
     alias: Cover Stop
109 84
     sequence:
@@ -126,4 +101,4 @@ fadein:
126 101
         data:
127 102
           entity_id: light.led_strip
128 103
           brightness: 255
129
-          transition: 5
104
+          transition: 5

+ 0
- 126
config/ui-lovelace.yaml Vedi File

@@ -1,126 +0,0 @@
1
-title: Tannenhof
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
-
9
-views:
10
-    # View tab title.
11
-  - title: Home
12
-    # Optional unique id for direct access /lovelace/${id}
13
-    id: home
14
-    # Optional background (overwrites the global background).
15
-    background: radial-gradient(crimson, skyblue)
16
-    # Each view can have a different theme applied. Theme should be defined in the frontend.
17
-    theme: dark-mode
18
-    cards:
19
-      - id: 698b0d61c8d64ee9a0b762080adbd009  # Automatically created id
20
-        type: weather-forecast
21
-        entity: weather.weather
22
-      - id: b900d5426e5d465bb4b5d92e590da361  # Automatically created id
23
-        type: entities
24
-        title: Joshs Room
25
-        entities:
26
-          - sensor.dht_sensor_temperature
27
-          - sensor.dht_sensor_humidity
28
-          - group.lights
29
-          - cover.blinds
30
-          - type: section
31
-            label: Music
32
-          - media_player.spotify
33
-        # The markdown card will render markdown text.
34
-      - type: horizontal-stack
35
-        cards:
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"
51
-      - type: horizontal-stack
52
-        cards:
53
-        - type: light
54
-          entity: light.led_strip
55
-        - type: light
56
-          entity: light.room_light
57
-      - type: sensor
58
-        entity: sensor.dht_sensor_temperature
59
-        name: Temperature
60
-        height: 75
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
72
-      - type: conditional
73
-        conditions:
74
-          - entity: light.bed_light
75
-            state: "on"
76
-        card:
77
-          type: horizontal-stack
78
-          cards:
79
-            - type: gauge
80
-              title: Printer Hotend
81
-              entity: sensor.octoprint_actual_tool0_temp
82
-              severity:
83
-                red: 50
84
-                green: 0
85
-                amber: 40
86
-            - type: gauge
87
-              title: Printer Hotend
88
-              entity: sensor.octoprint_actual_bed_temp
89
-              severity:
90
-                red: 50
91
-                green: 0
92
-                amber: 40
93
-  - title: Weather
94
-    id: weather
95
-    # Optional background (overwrites the global background).
96
-    background: radial-gradient(crimson, skyblue)
97
-    # Each view can have a different theme applied. Theme should be defined in the frontend.
98
-    theme: dark-mode
99
-    cards:
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
125
-
126
-

+ 1
- 1
docker-compose.yml Vedi File

@@ -2,7 +2,7 @@ version: '2.0'
2 2
 services:
3 3
   homeassistant:
4 4
     container_name: home-assistant
5
-    image: homeassistant/raspberrypi3-homeassistant:0.90.2
5
+    image: homeassistant/raspberrypi3-homeassistant:0.92.2
6 6
     restart: always
7 7
     devices:
8 8
       - /dev/video0:/dev/video0

Loading…
Annulla
Salva