mirror of
https://github.com/ratgdo/esphome-ratgdo.git
synced 2025-02-09 01:04:30 +00:00
Compare commits
5 Commits
c18beee7fb
...
5420f67fc0
Author | SHA1 | Date | |
---|---|---|---|
|
5420f67fc0 | ||
|
c11a748608 | ||
|
8dd09d2c29 | ||
|
ee1a970647 | ||
|
fda14ac1b5 |
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
@ -4,7 +4,7 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- ratgdo32
|
- main
|
||||||
pull_request:
|
pull_request:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 4 * * 1'
|
- cron: '0 4 * * 1'
|
||||||
@ -97,7 +97,7 @@ jobs:
|
|||||||
|
|
||||||
|
|
||||||
consolidate:
|
consolidate:
|
||||||
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/ratgdo32'
|
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main'
|
||||||
name: Consolidate firmwares
|
name: Consolidate firmwares
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: build
|
needs: build
|
||||||
@ -119,7 +119,7 @@ jobs:
|
|||||||
path: output
|
path: output
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/ratgdo32'
|
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main'
|
||||||
name: Deploy to GitHub Pages
|
name: Deploy to GitHub Pages
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: consolidate
|
needs: consolidate
|
||||||
|
@ -3,7 +3,7 @@ external_components:
|
|||||||
- source:
|
- source:
|
||||||
type: git
|
type: git
|
||||||
url: https://github.com/ratgdo/esphome-ratgdo
|
url: https://github.com/ratgdo/esphome-ratgdo
|
||||||
ref: ratgdo32
|
ref: main
|
||||||
refresh: 1s
|
refresh: 1s
|
||||||
# - source:
|
# - source:
|
||||||
# type: local
|
# type: local
|
||||||
|
@ -4,7 +4,7 @@ external_components:
|
|||||||
- source:
|
- source:
|
||||||
type: git
|
type: git
|
||||||
url: https://github.com/ratgdo/esphome-ratgdo
|
url: https://github.com/ratgdo/esphome-ratgdo
|
||||||
ref: ratgdo32
|
ref: main
|
||||||
refresh: 1s
|
refresh: 1s
|
||||||
# - source:
|
# - source:
|
||||||
# type: local
|
# type: local
|
||||||
|
@ -4,7 +4,7 @@ external_components:
|
|||||||
- source:
|
- source:
|
||||||
type: git
|
type: git
|
||||||
url: https://github.com/ratgdo/esphome-ratgdo
|
url: https://github.com/ratgdo/esphome-ratgdo
|
||||||
ref: ratgdo32
|
ref: main
|
||||||
refresh: 1s
|
refresh: 1s
|
||||||
# - source:
|
# - source:
|
||||||
# type: local
|
# type: local
|
||||||
|
@ -295,15 +295,12 @@
|
|||||||
var hardware = document.querySelector('input[name="hardware"]:checked').value;
|
var hardware = document.querySelector('input[name="hardware"]:checked').value;
|
||||||
|
|
||||||
var diagram_protocol = protocol.replace("v1","").replace("v2","");
|
var diagram_protocol = protocol.replace("v1","").replace("v2","");
|
||||||
var img = new Image();
|
var img = document.querySelector("#wiring_diagram");
|
||||||
img.src = `wiring_diagrams/${hardware}_${diagram_protocol}.png`;
|
img.onerror = function() {
|
||||||
if(img.height !== 0){
|
console.log(`img not found: ${this.src}`);
|
||||||
console.log(`diagram: ${img.src}`);
|
this.src = "wiring_diagrams/v25iboard_secplus.png";
|
||||||
document.querySelector("#wiring_diagram").src = img.src;
|
|
||||||
}else{
|
|
||||||
console.log(`img not found: ${img.src}`);
|
|
||||||
document.querySelector("#wiring_diagram").src = "wiring_diagrams/v25iboard_secplus.png";
|
|
||||||
}
|
}
|
||||||
|
img.src = `wiring_diagrams/${hardware}_${diagram_protocol}.png`;
|
||||||
|
|
||||||
if(protocol !== "secplusv2" && (hardware === "v2board_esp8266_d1_mini" || hardware === "v2board_esp32_d1_mini")){
|
if(protocol !== "secplusv2" && (hardware === "v2board_esp8266_d1_mini" || hardware === "v2board_esp32_d1_mini")){
|
||||||
alert("ratgdo version 2.0 only works with Security + 2.0");
|
alert("ratgdo version 2.0 only works with Security + 2.0");
|
||||||
|
@ -30,7 +30,7 @@ dashboard_import:
|
|||||||
packages:
|
packages:
|
||||||
remote_package:
|
remote_package:
|
||||||
url: https://github.com/ratgdo/esphome-ratgdo
|
url: https://github.com/ratgdo/esphome-ratgdo
|
||||||
ref: ratgdo32
|
ref: main
|
||||||
files: [base.yaml]
|
files: [base.yaml]
|
||||||
refresh: 1s
|
refresh: 1s
|
||||||
# remote_package: !include
|
# remote_package: !include
|
||||||
|
@ -29,7 +29,7 @@ dashboard_import:
|
|||||||
packages:
|
packages:
|
||||||
remote_package:
|
remote_package:
|
||||||
url: https://github.com/ratgdo/esphome-ratgdo
|
url: https://github.com/ratgdo/esphome-ratgdo
|
||||||
ref: ratgdo32
|
ref: main
|
||||||
files: [base_drycontact.yaml]
|
files: [base_drycontact.yaml]
|
||||||
refresh: 1s
|
refresh: 1s
|
||||||
# remote_package: !include
|
# remote_package: !include
|
||||||
|
@ -30,7 +30,7 @@ dashboard_import:
|
|||||||
packages:
|
packages:
|
||||||
remote_package:
|
remote_package:
|
||||||
url: https://github.com/ratgdo/esphome-ratgdo
|
url: https://github.com/ratgdo/esphome-ratgdo
|
||||||
ref: ratgdo32
|
ref: main
|
||||||
files: [base_secplusv1.yaml]
|
files: [base_secplusv1.yaml]
|
||||||
refresh: 1s
|
refresh: 1s
|
||||||
# remote_package: !include
|
# remote_package: !include
|
||||||
|
@ -30,7 +30,7 @@ dashboard_import:
|
|||||||
packages:
|
packages:
|
||||||
remote_package:
|
remote_package:
|
||||||
url: https://github.com/ratgdo/esphome-ratgdo
|
url: https://github.com/ratgdo/esphome-ratgdo
|
||||||
ref: ratgdo32
|
ref: main
|
||||||
files: [base.yaml]
|
files: [base.yaml]
|
||||||
refresh: 1s
|
refresh: 1s
|
||||||
# remote_package: !include
|
# remote_package: !include
|
||||||
|
@ -29,7 +29,7 @@ dashboard_import:
|
|||||||
packages:
|
packages:
|
||||||
remote_package:
|
remote_package:
|
||||||
url: https://github.com/ratgdo/esphome-ratgdo
|
url: https://github.com/ratgdo/esphome-ratgdo
|
||||||
ref: ratgdo32
|
ref: main
|
||||||
files: [base_drycontact.yaml]
|
files: [base_drycontact.yaml]
|
||||||
refresh: 1s
|
refresh: 1s
|
||||||
# remote_package: !include
|
# remote_package: !include
|
||||||
|
@ -30,7 +30,7 @@ dashboard_import:
|
|||||||
packages:
|
packages:
|
||||||
remote_package:
|
remote_package:
|
||||||
url: https://github.com/ratgdo/esphome-ratgdo
|
url: https://github.com/ratgdo/esphome-ratgdo
|
||||||
ref: ratgdo32
|
ref: main
|
||||||
files: [base_secplusv1.yaml]
|
files: [base_secplusv1.yaml]
|
||||||
refresh: 1s
|
refresh: 1s
|
||||||
# remote_package: !include
|
# remote_package: !include
|
||||||
|
Loading…
x
Reference in New Issue
Block a user