diff --git a/Docker/BuildHaccContainers.ps1 b/Docker/BuildHaccContainers.ps1
index 2f26dc7..2ee2492 100644
--- a/Docker/BuildHaccContainers.ps1
+++ b/Docker/BuildHaccContainers.ps1
@@ -1,4 +1,4 @@
-$version = '1.0.18'
+$version = '1.0.19'
function Test-ExitCode ([int] $Expected = 0)
{
diff --git a/HADotNet.CommandCenter/HADotNet.CommandCenter.csproj b/HADotNet.CommandCenter/HADotNet.CommandCenter.csproj
index c887e32..ddb72ed 100644
--- a/HADotNet.CommandCenter/HADotNet.CommandCenter.csproj
+++ b/HADotNet.CommandCenter/HADotNet.CommandCenter.csproj
@@ -5,8 +5,8 @@
win10;alpine.3.10-x64;debian.10-arm
Latest
Linux
- 1.0.18.0
- 1.0.18.0
+ 1.0.19.0
+ 1.0.19.0
false
false
false
diff --git a/HADotNet.CommandCenter/Models/Config/Tiles/SwitchTile.cs b/HADotNet.CommandCenter/Models/Config/Tiles/SwitchTile.cs
index 747f8b9..5aa3f1b 100644
--- a/HADotNet.CommandCenter/Models/Config/Tiles/SwitchTile.cs
+++ b/HADotNet.CommandCenter/Models/Config/Tiles/SwitchTile.cs
@@ -45,6 +45,12 @@ public class SwitchTile : BaseEntityTile
/// Switches are weird... some of them don't like the homeassistant.toggle service. So we do our own logic.
public override async Task OnClick(ServiceClient serviceClient)
{
+ var serviceDomain = EntityId.Split('.')[0].ToLower();
+ if (serviceDomain.ToUpper() == "GROUP")
+ {
+ serviceDomain = "homeassistant";
+ }
+
var stateClient = ClientFactory.GetClient();
var state = await stateClient.GetState(EntityId);
var serviceName =
@@ -54,7 +60,8 @@ public override async Task OnClick(ServiceClient serviceClient)
|| state.State.ToUpper() == "STANDBY"
|| state.State.ToUpper() == "IDLE"
? "turn_on" : "turn_off";
- await serviceClient.CallService(EntityId.Split('.')[0].ToLower(), serviceName, new { entity_id = EntityId });
+
+ await serviceClient.CallService(serviceDomain, serviceName, new { entity_id = EntityId });
}
}
}
diff --git a/HADotNet.CommandCenter/Views/Shared/_AdminLayout.cshtml b/HADotNet.CommandCenter/Views/Shared/_AdminLayout.cshtml
index e4a762f..1ea96a6 100644
--- a/HADotNet.CommandCenter/Views/Shared/_AdminLayout.cshtml
+++ b/HADotNet.CommandCenter/Views/Shared/_AdminLayout.cshtml
@@ -7,12 +7,12 @@
-
+
-
+
diff --git a/HADotNet.CommandCenter/Views/Shared/_Layout.cshtml b/HADotNet.CommandCenter/Views/Shared/_Layout.cshtml
index 8dd6879..0878455 100644
--- a/HADotNet.CommandCenter/Views/Shared/_Layout.cshtml
+++ b/HADotNet.CommandCenter/Views/Shared/_Layout.cshtml
@@ -6,11 +6,11 @@
@ViewData["Title"] - HA Command Center
-
+
-
+