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