1.1.12 - MQTT area basic_state now includes arm_vacation to align with changes to Home Assistant

This commit is contained in:
Ryan Wagoner 2022-04-04 22:46:09 -04:00
parent 3b86dd6a3a
commit 41330b9bf4
6 changed files with 11 additions and 10 deletions

View file

@ -6,9 +6,9 @@
arm_home, arm_home,
arm_away, arm_away,
arm_night, arm_night,
arm_vacation,
// The below aren't supported by Home Assistant // The below aren't supported by Home Assistant
arm_home_instant, arm_home_instant,
arm_night_delay, arm_night_delay
arm_vacation
} }
} }

View file

@ -62,8 +62,9 @@ namespace OmniLinkBridge.MQTT
case enuSecurityMode.DayInst: case enuSecurityMode.DayInst:
return "armed_home"; return "armed_home";
case enuSecurityMode.Away: case enuSecurityMode.Away:
case enuSecurityMode.Vacation:
return "armed_away"; return "armed_away";
case enuSecurityMode.Vacation:
return "armed_vacation";
case enuSecurityMode.Off: case enuSecurityMode.Off:
default: default:
return "disarmed"; return "disarmed";

View file

@ -56,10 +56,10 @@ namespace OmniLinkBridge.MQTT
{ AreaCommands.arm_home, enuUnitCommand.SecurityDay }, { AreaCommands.arm_home, enuUnitCommand.SecurityDay },
{ AreaCommands.arm_away, enuUnitCommand.SecurityAway }, { AreaCommands.arm_away, enuUnitCommand.SecurityAway },
{ AreaCommands.arm_night, enuUnitCommand.SecurityNight }, { AreaCommands.arm_night, enuUnitCommand.SecurityNight },
{ AreaCommands.arm_vacation, enuUnitCommand.SecurityVac },
// The below aren't supported by Home Assistant // The below aren't supported by Home Assistant
{ AreaCommands.arm_home_instant, enuUnitCommand.SecurityDyi }, { AreaCommands.arm_home_instant, enuUnitCommand.SecurityDyi },
{ AreaCommands.arm_night_delay, enuUnitCommand.SecurityNtd }, { AreaCommands.arm_night_delay, enuUnitCommand.SecurityNtd }
{ AreaCommands.arm_vacation, enuUnitCommand.SecurityVac },
}; };
private void ProcessAreaReceived(clsArea area, Topic command, string payload) private void ProcessAreaReceived(clsArea area, Topic command, string payload)

View file

@ -10,7 +10,7 @@ using System.Runtime.InteropServices;
[assembly: AssemblyConfiguration("")] [assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Excalibur Partners, LLC")] [assembly: AssemblyCompany("Excalibur Partners, LLC")]
[assembly: AssemblyProduct("OmniLinkBridge")] [assembly: AssemblyProduct("OmniLinkBridge")]
[assembly: AssemblyCopyright("Copyright © Excalibur Partners, LLC 2021")] [assembly: AssemblyCopyright("Copyright © Excalibur Partners, LLC 2022")]
[assembly: AssemblyTrademark("")] [assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")] [assembly: AssemblyCulture("")]
@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers // You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below: // by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.1.11.0")] [assembly: AssemblyVersion("1.1.12.0")]
[assembly: AssemblyFileVersion("1.1.11.0")] [assembly: AssemblyFileVersion("1.1.12.0")]

View file

@ -7,7 +7,7 @@ using System.Runtime.InteropServices;
[assembly: AssemblyConfiguration("")] [assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Excalibur Partners, LLC")] [assembly: AssemblyCompany("Excalibur Partners, LLC")]
[assembly: AssemblyProduct("OmniLinkBridgeTest")] [assembly: AssemblyProduct("OmniLinkBridgeTest")]
[assembly: AssemblyCopyright("Copyright © Excalibur Partners, LLC 2020")] [assembly: AssemblyCopyright("Copyright © Excalibur Partners, LLC 2022")]
[assembly: AssemblyTrademark("")] [assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")] [assembly: AssemblyCulture("")]

View file

@ -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 string triggered, arming, armed_night, armed_night_delay, armed_home, armed_home_instant, armed_away, armed_vacation, disarmed
SUB omnilink/areaX/basic_state 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 SUB omnilink/areaX/json_state
string json string json