From 9ffebaab02ab3617e7bd323f48c2af52886f8463 Mon Sep 17 00:00:00 2001 From: Jordan Hotmann Date: Mon, 16 Oct 2023 17:00:08 -0600 Subject: [PATCH] More services --- pkg/homeassistant/structs.go | 42 ++++++++++++++++++++---------------- 1 file changed, 24 insertions(+), 18 deletions(-) diff --git a/pkg/homeassistant/structs.go b/pkg/homeassistant/structs.go index 6b2def8..3fd18ef 100644 --- a/pkg/homeassistant/structs.go +++ b/pkg/homeassistant/structs.go @@ -38,25 +38,31 @@ var Domains = struct { // Home Assistant services var Services = struct { - TurnOn string - TurnOff string - Toggle string - Reload string - Lock string - Unlock string - OpenCover string - CloseCover string - SelectOption string + TurnOn string + TurnOff string + Toggle string + Reload string + Lock string + Unlock string + OpenCover string + CloseCover string + SelectOption string + SetHvacMode string + SetFanMode string + SetTemperature string }{ - TurnOn: "turn_on", - TurnOff: "turn_off", - Toggle: "toggle", - Reload: "reload", - Lock: "lock", - Unlock: "unlock", - OpenCover: "open_cover", - CloseCover: "close_cover", - SelectOption: "select_option", + TurnOn: "turn_on", + TurnOff: "turn_off", + Toggle: "toggle", + Reload: "reload", + Lock: "lock", + Unlock: "unlock", + OpenCover: "open_cover", + CloseCover: "close_cover", + SelectOption: "select_option", + SetHvacMode: "set_hvac_mode", + SetFanMode: "set_fan_mode", + SetTemperature: "set_temperature", } // Extra props that can be sent when calling a Home Assistant service