SwitchBotAPI icon indicating copy to clipboard operation
SwitchBotAPI copied to clipboard

API rejects commands due to non-matching region

Open hunterdrayman opened this issue 1 year ago • 0 comments

Analysis

I am located in the UK (Switchbot region 'eu-central-1') using the API via the Home Assistant add-on at switchbot-mqtt. I can connect and download the device data but commands fail as the API is expecting the region to match 'us-east-1'.

Expected Behavior

Should accept commands from my region

Steps To Reproduce

I expect you need to be outside of us-east-1 to reproduce the error.

Logs

{"statusCode":190,"body":{},"message":"Functions from 'us-east-1' are not reachable in this region ('eu-central-1')"}

Configuration

Config will be built into the HA add-on

Environment

  • OS: Home Assistant OS - HA 24.07
  • Software: Home Assistant switchbot-MQTT add-on
  • Node: Unknown
  • npm: Unknown

Additional Context

Author of add-on states: The add-on does not differentiate between regions when calling the API

hunterdrayman avatar Jul 19 '24 10:07 hunterdrayman