package app import ( "context" "gitea.nik4nao.com/nik/home-services/ha-gateway/internal/core/ports/driven" ) // RemoteApp is a thin passthrough to the SwitchBot driven port: SwitchBot // custom IR buttons have no state to read back, so there is no discovery // cache to maintain here, unlike LightApp/SwitchApp/ClimateApp. type RemoteApp struct { switchbot driven.SwitchBotClient } // NewRemoteApp constructs the remote application service. func NewRemoteApp(switchbot driven.SwitchBotClient) *RemoteApp { return &RemoteApp{switchbot: switchbot} } // SendCommand forwards one SwitchBot Cloud device command. func (a *RemoteApp) SendCommand(ctx context.Context, deviceID, command, commandType string) error { return a.switchbot.SendCommand(ctx, deviceID, command, commandType) }