Skip to content

Commit

Permalink
1.1.12 - MQTT area basic_state now includes arm_vacation to align wit…
Browse files Browse the repository at this point in the history
…h changes to Home Assistant
  • Loading branch information
rwagoner committed Apr 5, 2022
1 parent 3b86dd6 commit 41330b9
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 10 deletions.
4 changes: 2 additions & 2 deletions OmniLinkBridge/MQTT/AreaCommands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ enum AreaCommands
arm_home,
arm_away,
arm_night,
arm_vacation,
// The below aren't supported by Home Assistant
arm_home_instant,
arm_night_delay,
arm_vacation
arm_night_delay
}
}
3 changes: 2 additions & 1 deletion OmniLinkBridge/MQTT/MappingExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,9 @@ public static string ToBasicState(this clsArea area)
case enuSecurityMode.DayInst:
return "armed_home";
case enuSecurityMode.Away:
case enuSecurityMode.Vacation:
return "armed_away";
case enuSecurityMode.Vacation:
return "armed_vacation";
case enuSecurityMode.Off:
default:
return "disarmed";
Expand Down
4 changes: 2 additions & 2 deletions OmniLinkBridge/MQTT/MessageProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ public void Process(string messageTopic, string payload)
{ AreaCommands.arm_home, enuUnitCommand.SecurityDay },
{ AreaCommands.arm_away, enuUnitCommand.SecurityAway },
{ AreaCommands.arm_night, enuUnitCommand.SecurityNight },
{ AreaCommands.arm_vacation, enuUnitCommand.SecurityVac },
// The below aren't supported by Home Assistant
{ AreaCommands.arm_home_instant, enuUnitCommand.SecurityDyi },
{ AreaCommands.arm_night_delay, enuUnitCommand.SecurityNtd },
{ AreaCommands.arm_vacation, enuUnitCommand.SecurityVac },
{ AreaCommands.arm_night_delay, enuUnitCommand.SecurityNtd }
};

private void ProcessAreaReceived(clsArea area, Topic command, string payload)
Expand Down
6 changes: 3 additions & 3 deletions OmniLinkBridge/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Excalibur Partners, LLC")]
[assembly: AssemblyProduct("OmniLinkBridge")]
[assembly: AssemblyCopyright("Copyright © Excalibur Partners, LLC 2021")]
[assembly: AssemblyCopyright("Copyright © Excalibur Partners, LLC 2022")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

Expand All @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.1.11.0")]
[assembly: AssemblyFileVersion("1.1.11.0")]
[assembly: AssemblyVersion("1.1.12.0")]
[assembly: AssemblyFileVersion("1.1.12.0")]
2 changes: 1 addition & 1 deletion OmniLinkBridgeTest/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Excalibur Partners, LLC")]
[assembly: AssemblyProduct("OmniLinkBridgeTest")]
[assembly: AssemblyCopyright("Copyright © Excalibur Partners, LLC 2020")]
[assembly: AssemblyCopyright("Copyright © Excalibur Partners, LLC 2022")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ SUB omnilink/areaX/state
string triggered, arming, armed_night, armed_night_delay, armed_home, armed_home_instant, armed_away, armed_vacation, disarmed
SUB omnilink/areaX/basic_state
string triggered, arming, armed_night, armed_home, armed_away, disarmed
string triggered, arming, armed_night, armed_home, armed_away, armed_vacation, disarmed
SUB omnilink/areaX/json_state
string json
Expand Down

0 comments on commit 41330b9

Please sign in to comment.