Add dry contact to installer

This commit is contained in:
Paul Wieland 2024-04-16 14:16:16 -04:00
parent 5c8c69c9fc
commit 32190f5ba8
1 changed files with 3 additions and 6 deletions

View File

@ -202,8 +202,8 @@
<label>
<img src="./dry_contact.jpg" alt="Dry contact control." />
<input type="radio" name="protocol" value="dry_contact" />
Dry Contact control<br/> (coming soon)
<input type="radio" name="protocol" value="drycontact" />
Dry Contact control<br/>Requires open &amp; close limit switches
</label>
</div>
@ -290,10 +290,7 @@
var protocol = document.querySelector('input[name="protocol"]:checked').value;
var hardware = document.querySelector('input[name="hardware"]:checked').value;
if(protocol === "dry_contact"){
alert("Dry contact support is coming soon.");
document.querySelector('input[name="protocol"][value="secplusv2"]').checked = true;
return;
if(protocol === "drycontact"){
document.querySelector("#wiring_diagram").src = "wiring_diagrams/dry_contact_diagram.png";
}else{
document.querySelector("#wiring_diagram").src = "wiring_diagrams/secplus_diagram.png";