Selaa lähdekoodia

Fixed covers. Cleanup.

TheMultiplexer 6 vuotta sitten
vanhempi
commit
761cefa9f0
3 muutettua tiedostoa jossa 58 lisäystä ja 31 poistoa
  1. 1
    8
      config/configuration.yaml
  2. 24
    0
      config/known_devices.yaml
  3. 33
    23
      config/scripts.yaml

+ 1
- 8
config/configuration.yaml Näytä tiedosto

@@ -29,14 +29,7 @@ frontend:
29 29
 # Enables configuration UI
30 30
 config:
31 31
 
32
-image_processing:
33
-  - platform: tensorflow
34
-    source:
35
-      - entity_id: camera.webcam
36
-    model:
37
-      graph: /config/tensorflow/frozen_inference_graph.pb
38
-
39
-emulated_hue:
32
+#emulated_hue:
40 33
       
41 34
 octoprint:
42 35
   host: 192.168.1.126

+ 24
- 0
config/known_devices.yaml Näytä tiedosto

@@ -478,3 +478,27 @@ pc_a4_d9_31_69_4b_eb:
478 478
   name: PC-A4-D9-31-69-4B-EB
479 479
   picture:
480 480
   track: false
481
+
482
+honor_10_e6ddfd44713be232:
483
+  hide_if_away: false
484
+  icon:
485
+  mac: 90:94:97:F8:6E:5A
486
+  name: Honor-10-e6ddfd44713be232
487
+  picture:
488
+  track: false
489
+
490
+esp_96f936:
491
+  hide_if_away: false
492
+  icon:
493
+  mac: 84:0D:8E:96:F9:36
494
+  name: ESP-96F936
495
+  picture:
496
+  track: false
497
+
498
+esp_96d0b9:
499
+  hide_if_away: false
500
+  icon:
501
+  mac: 84:0D:8E:96:D0:B9
502
+  name: ESP-96D0B9
503
+  picture:
504
+  track: false

+ 33
- 23
config/scripts.yaml Näytä tiedosto

@@ -33,10 +33,17 @@ coverup:
33 33
           entity_id: switch.coverenable
34 34
       - delay:
35 35
           seconds: 90
36
-      - alias: Stop Covers by calling script
37
-        service: script.turn_on
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
38 44
         data:
39
-          entity_id: script.coverstop
45
+          entity_id: switch.coverdirection
46
+
40 47
           
41 48
 coverdown:
42 49
     alias: Cover Down
@@ -57,19 +64,22 @@ coverdown:
57 64
           entity_id: switch.coverenable
58 65
       - delay:
59 66
           seconds: 90
60
-      - alias: Stop Covers by calling script
61
-        service: script.turn_on
67
+      - alias: Disable Pre Relay
68
+        service: switch.turn_off
62 69
         data:
63
-          entity_id: script.coverstop
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
+
64 78
           
65 79
           
66 80
 covertilt:
67 81
     alias: Cover Tilt
68 82
     sequence:
69
-      - alias: Cancel Down Script
70
-        service: script.turn_off
71
-        data:
72
-          entity_id: script.coverdown
73 83
       - alias: Switch Direction Relay ON (upwards)
74 84
         service: switch.turn_on
75 85
         data:
@@ -80,29 +90,29 @@ covertilt:
80 90
         service: switch.turn_on
81 91
         data:
82 92
           entity_id: switch.coverenable
83
-      - delay: '00:00:02'
84
-      - alias: Stop Covers by calling script
85
-        service: script.turn_on
93
+      - delay:
94
+          seconds: 2
95
+      - alias: Disable Pre Relay
96
+        service: switch.turn_off
97
+        data:
98
+          entity_id: switch.coverenable
99
+      - delay:
100
+          seconds: 1
101
+      - alias: Switch Direction Relay OFF (does not matter, but saves power)
102
+        service: switch.turn_off
86 103
         data:
87
-          entity_id: script.coverstop
104
+          entity_id: switch.coverdirection
105
+
88 106
   
89 107
 coverstop:
90 108
     alias: Cover Stop
91 109
     sequence:
92
-      - alias: Cancel Down Script
93
-        service: script.turn_off
94
-        data:
95
-          entity_id: script.coverdown
96
-      - alias: Cancel Up Script
97
-        service: script.turn_off
98
-        data:
99
-          entity_id: script.coverup
100 110
       - alias: Disable Pre Relay
101 111
         service: switch.turn_off
102 112
         data:
103 113
           entity_id: switch.coverenable
104 114
       - delay:
105
-          seconds: 2
115
+          seconds: 1
106 116
       - alias: Switch Direction Relay OFF (does not matter, but saves power)
107 117
         service: switch.turn_off
108 118
         data:

Loading…
Peruuta
Tallenna