diff options
author | Kaufman Home Automation <[email protected]> | 2022-03-18 17:23:16 -0700 |
---|---|---|
committer | GitHub <[email protected]> | 2022-03-18 17:23:16 -0700 |
commit | 7e891d22c821cbc3a79a6d9d243993d89ec4eb13 (patch) | |
tree | 704bb663d4d8a588d52936044fc186b4b149a4e8 | |
parent | 8dae9179e0f18c05cdb04a0c4f1094b8c8196251 (diff) | |
download | PLF10-7e891d22c821cbc3a79a6d9d243993d89ec4eb13.tar.gz PLF10-7e891d22c821cbc3a79a6d9d243993d89ec4eb13.zip |
Delete config-factory directory
-rw-r--r-- | config-factory/kauf-plug-factory.yaml | 90 | ||||
-rw-r--r-- | config-factory/webserver-v1.min.css | 2 | ||||
-rw-r--r-- | config-factory/webserver-v1.min.js | 1 |
3 files changed, 0 insertions, 93 deletions
diff --git a/config-factory/kauf-plug-factory.yaml b/config-factory/kauf-plug-factory.yaml deleted file mode 100644 index 2e6bed2..0000000 --- a/config-factory/kauf-plug-factory.yaml +++ /dev/null @@ -1,90 +0,0 @@ -packages: - kauf_plug_update: - url: https://github.com/KaufHA/PLF10 - files: config-update/kauf-plug-update.yaml - refresh: 0s - - -preferences: - flash_write_interval: 3s - -esphome: - - # overwrite project for different letter suffix - project: - name: "kauf.plf10" - version: "1.86(f)" # 'f' stands for factory image - - on_boot: - then: - - - # little sequence so factory can confirm firwmare is working. - - if: - condition: - lambda: 'return id(first_boot);' - then: - - # get AP going ASAP - - lambda: 'wifi_wificomponent->set_ap_timeout(1);' - - # disable button toggling relay - - select.set: - id: select_button - option: "Disabled" - - # turn on relay to draw current - - switch.turn_on: relay - - delay: 1s - - switch.turn_off: blue_led - - # wait until button is pressed, then turn on led - - while: - condition: - binary_sensor.is_off: button_in - then: - - switch.turn_off: blue_led - - delay: 50ms - - while: - condition: - binary_sensor.is_on: button_in - then: - - switch.turn_on: blue_led - - delay: 50ms - - # give it some time to see if a crash occurs with both AP and relay on - - delay: 8s - - # test passed, clear first_boot variable so we don't run this again - - globals.set: - id: first_boot - value: 'false' - - # re-enable button toggling relay - - select.set: - id: select_button - option: "Enabled" - - # delay time to save above changes - - delay: 3s - - # blink blue led to indicate pass test until button is pressed then stay on - - while: - condition: - binary_sensor.is_off: button_in - then: - - switch.toggle: blue_led - - delay: 100ms - - while: - condition: - binary_sensor.is_on: button_in - then: - - switch.turn_on: blue_led - - delay: 50ms - - -globals: - - id: first_boot # used to run routine at factory to confirm - type: bool # correct firwmare is running. - restore_value: yes - initial_value: 'true' diff --git a/config-factory/webserver-v1.min.css b/config-factory/webserver-v1.min.css deleted file mode 100644 index 3b4c2c5..0000000 --- a/config-factory/webserver-v1.min.css +++ /dev/null @@ -1,2 +0,0 @@ -/* Based off of https://github.com/sindresorhus/github-markdown-css */ -.markdown-body{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;line-height:1.5;color:#24292e;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:16px;line-height:1.5;word-wrap:break-word}.markdown-body a{background-color:transparent}.markdown-body a:active,.markdown-body a:hover{outline-width:0}.markdown-body strong{font-weight:bolder}.markdown-body h1{font-size:2em;margin:0.67em 0}.markdown-body img{border-style:none}.markdown-body pre{font-family:monospace,monospace;font-size:1em}.markdown-body hr{box-sizing:content-box;height:0;overflow:visible}.markdown-body input{font:inherit;margin:0}.markdown-body input{overflow:visible}.markdown-body [type="checkbox"]{box-sizing:border-box;padding:0}.markdown-body *{box-sizing:border-box}.markdown-body input{font-family:inherit;font-size:inherit;line-height:inherit}.markdown-body a{color:#0366d6;text-decoration:none}.markdown-body a:hover{text-decoration:underline}.markdown-body strong{font-weight:600}.markdown-body hr{height:0;margin:15px 0;overflow:hidden;background:transparent;border:0;border-bottom:1px solid #dfe2e5}.markdown-body hr::before{display:table;content:""}.markdown-body hr::after{display:table;clear:both;content:""}.markdown-body table{border-spacing:0;border-collapse:collapse}.markdown-body td,.markdown-body th{padding:0}.markdown-body h1,.markdown-body h2,.markdown-body h3,.markdown-body h4,.markdown-body h5,.markdown-body h6{margin-top:0;margin-bottom:0}.markdown-body h1{font-size:32px;font-weight:600}.markdown-body h2{font-size:24px;font-weight:600}.markdown-body h3{font-size:20px;font-weight:600}.markdown-body h4{font-size:16px;font-weight:600}.markdown-body h5{font-size:14px;font-weight:600}.markdown-body h6{font-size:12px;font-weight:600}.markdown-body p{margin-top:0;margin-bottom:10px}.markdown-body blockquote{margin:0}.markdown-body ul,.markdown-body ol{padding-left:0;margin-top:0;margin-bottom:0}.markdown-body ol ol,.markdown-body ul ol{list-style-type:lower-roman}.markdown-body ul ul ol,.markdown-body ul ol ol,.markdown-body ol ul ol,.markdown-body ol ol ol{list-style-type:lower-alpha}.markdown-body dd{margin-left:0}.markdown-body pre{margin-top:0;margin-bottom:0;font-family:"SFMono-Regular",Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px}.markdown-body::before{display:table;content:""}.markdown-body::after{display:table;clear:both;content:""}.markdown-body>*:first-child{margin-top:0!important}.markdown-body>*:last-child{margin-bottom:0!important}.markdown-body a:not([href]){color:inherit;text-decoration:none}.markdown-body p,.markdown-body blockquote,.markdown-body ul,.markdown-body ol,.markdown-body dl,.markdown-body table,.markdown-body pre{margin-top:0;margin-bottom:16px}.markdown-body hr{height:0.25em;padding:0;margin:24px 0;background-color:#e1e4e8;border:0}.markdown-body blockquote{padding:0 1em;color:#6a737d;border-left:0.25em solid #dfe2e5}.markdown-body blockquote>:first-child{margin-top:0}.markdown-body blockquote>:last-child{margin-bottom:0}.markdown-body h1,.markdown-body h2,.markdown-body h3,.markdown-body h4,.markdown-body h5,.markdown-body h6{margin-top:24px;margin-bottom:16px;font-weight:600;line-height:1.25}.markdown-body h1{padding-bottom:0.3em;font-size:2em;border-bottom:1px solid #eaecef}.markdown-body h2{padding-bottom:0.3em;font-size:1.5em;border-bottom:1px solid #eaecef}.markdown-body h3{font-size:1.25em}.markdown-body h4{font-size:1em}.markdown-body h5{font-size:0.875em}.markdown-body h6{font-size:0.85em;color:#6a737d}.markdown-body ul,.markdown-body ol{padding-left:2em}.markdown-body ul ul,.markdown-body ul ol,.markdown-body ol ol,.markdown-body ol ul{margin-top:0;margin-bottom:0}.markdown-body li{word-wrap:break-all}.markdown-body li>p{margin-top:16px}.markdown-body li+li{margin-top:0.25em}.markdown-body dl{padding:0}.markdown-body dl dt{padding:0;margin-top:16px;font-size:1em;font-style:italic;font-weight:600}.markdown-body dl dd{padding:0 16px;margin-bottom:16px}.markdown-body table{display:block;width:100%;overflow:auto}.markdown-body table th{font-weight:600}.markdown-body table th,.markdown-body table td{padding:6px 13px;border:1px solid #dfe2e5}.markdown-body table tr{background-color:#fff;border-top:1px solid #c6cbd1}.markdown-body table tr:nth-child(2n){background-color:#f6f8fa}.markdown-body img{max-width:100%;box-sizing:content-box;background-color:#fff}.markdown-body img[align=right]{padding-left:20px}.markdown-body img[align=left]{padding-right:20px}.markdown-body pre{padding:16px;overflow:auto;font-size:85%;line-height:1.45;background-color:#f6f8fa;border-radius:3px;word-wrap:normal}.markdown-body:checked+.radio-label{position:relative;z-index:1;border-color:#0366d6}.markdown-body hr{border-bottom-color:#eee}#log .v{color:#888}#log .d{color:#0DD}#log .c{color:magenta}#log .i{color:limegreen}#log .w{color:yellow}#log .e{color:red;font-weight:bold}#log{background-color:#1c1c1c}
\ No newline at end of file diff --git a/config-factory/webserver-v1.min.js b/config-factory/webserver-v1.min.js deleted file mode 100644 index fe912ba..0000000 --- a/config-factory/webserver-v1.min.js +++ /dev/null @@ -1 +0,0 @@ -const source=new EventSource("/events");source.addEventListener("log",function(t){const e=document.getElementById("log");let n=[["[1;31m","e"],["[0;33m","w"],["[0;32m","i"],["[0;35m","c"],["[0;36m","d"],["[0;37m","v"]],o="";for(const e of n)t.data.startsWith(e[0])&&(o=e[1]);""==o&&(e.innerHTML+=t.data+"\n"),e.innerHTML+='<span class="'+o+'">'+t.data.substr(7,t.data.length-11)+"</span>\n"}),actions=[["switch",["toggle"]],["light",["toggle"]],["fan",["toggle"]],["cover",["open","close"]],["button",["press"]],["lock",["lock","unlock","open"]]],multi_actions=[["select","option"],["number","value"]],source.addEventListener("state",function(t){const e=JSON.parse(t.data);document.getElementById(e.id).children[1].innerText=e.state});const states=document.getElementById("states");let row,i=0;for(;row=states.rows[i];i++)if(row.children[2].children.length){for(const t of actions)if(row.classList.contains(t[0])){let e=row.id.substr(t[0].length+1);for(let n=0;n<row.children[2].children.length&&n<t[1].length;n++)row.children[2].children[n].addEventListener("click",function(){const o=new XMLHttpRequest;o.open("POST","/"+t[0]+"/"+e+"/"+t[1][n],!0),o.send()})}for(const t of multi_actions)if(row.classList.contains(t[0])){let e=row.id.substr(t[0].length+1);row.children[2].children[0].addEventListener("change",function(){const n=new XMLHttpRequest;n.open("POST","/"+t[0]+"/"+e+"/set?"+t[1]+"="+encodeURIComponent(this.value),!0),n.send()})}}
\ No newline at end of file |