Skip to content

Commit

Permalink
first pass on adding 2020 Breeze support
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Goetz committed Apr 25, 2021
1 parent c7892c9 commit 353abd8
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 1 deletion.
10 changes: 9 additions & 1 deletion roles/coachproxy/files/configurator/cp_config.pl
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ sub create_habridge_device {
my $gencontrol = 'true';
my $settings_generator_version = '1';

if (grep(/^$model$/, ('Allegro_RED', 'Phaeton', 'Allegro_Bus', 'Zephyr'))) {
if (grep(/^$model$/, ('Allegro_Breeze', 'Allegro_RED', 'Phaeton', 'Allegro_Bus', 'Zephyr'))) {
$settings_generator_version = '0' if ($year == 2014);
$settings_generator_version = '1' if ($year == 2015);
$settings_generator_version = '2' if ($year >= 2016);
Expand All @@ -309,6 +309,14 @@ sub create_habridge_device {
push @tags, '/gencontrol/';
}
}
if ($model eq 'Allegro_Breeze') {
$settings_generator_version = '2';
if ($year < 2020) {
# I don't know if Generator controls were included on Breeze before 2020
$gencontrol = 'false';
push @tags, '/gencontrol/';
}
}
query "INSERT OR REPLACE INTO settings2 (key, value) VALUES('generator_version', '$settings_generator_version');";
} else {
$gencontrol = 'false';
Expand Down
43 changes: 43 additions & 0 deletions roles/coachproxy/files/configurator/features.json
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,49 @@
"28": ""
}
}
},

"_comment": "2020",
"Allegro_Breeze": {
"Default": {
"Lights": {
"1": { "name": "Ceiling", "location": "M", "order": 10 },
"2": { "name": "Entry", "location": "M", "order": 5 },
"3": { "name": "Ceiling", "location": "PS", "order": 5 },
"4": { "name": "Reading", "location": "DS", "order": 5 },
"5": { "name": "Hall", "location": "H", "order": 20 },
"6": { "name": "Accent", "location": "DS", "order": 20 },
"7": { "name": "Accent", "location": "PS", "order": 20 },
"8": { "name": "Galley", "location": "G", "order": 15 },
"9": { "name": "Sconce", "location": "DS", "order": 20 },
"11": { "name": "Accent", "location": "M", "order": 20 },
"12": { "name": "Ceiling", "location": "BR", "order": 10 },
"14": { "name": "Task", "location": "G", "order": 25 },
"15": { "name": "Ceiling", "location": "MB", "order": 1 },
"16": { "name": "Accent", "location": "BR", "order": 20 },
"18": { "name": "TV Accent", "location": "M", "order": 25 },
"22": { "name": "Porch", "location": "E", "order": 1 },
"28": { "name": "Ceiling", "location": "C", "order": 1 },
"95": { "name": "Door", "location": "E", "order": 1 }
},
"Awnings": {
"3": { "name": "Entry Door", "type": "day", "order": 1, "duration": 20 }
},
"Vents": {
"galley": { "fan": 25, "lidup": 26, "liddn": 27 },
"mid": { "fan": 29, "lidup": 30, "liddn": 31 }
},
"Pump": 93,
"Elecheat": 23,
"Fuelheat": 24,
"ParkBrake": 1,
"Ignition": 1,
"ChassisBattery": 1,
"GeneratorStatus": 1,
"secondfurnace": 1
},
"31_BR": { },
"33_BR": { }
}
},

Expand Down

0 comments on commit 353abd8

Please sign in to comment.