GithubHelp home page GithubHelp logo

joeyhage / homebridge-alexa-smarthome Goto Github PK

View Code? Open in Web Editor NEW
79.0 79.0 20.0 2.04 MB

Connect Alexa devices to HomeKit

License: MIT License

JavaScript 42.76% TypeScript 57.21% Shell 0.02%
alexa echo homebridge homebridge-plugin homekit smarthome

homebridge-alexa-smarthome's Introduction

homebridge-alexa-smarthome's People

Contributors

dependabot[bot] avatar dragonwork avatar dsarlo avatar gphil avatar joeyhage avatar nickkoul avatar nyirsh avatar zouma45 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

homebridge-alexa-smarthome's Issues

Unsupported Alexa Devices

Describe Your Problem:

Alexa accessories start and then fail as unsupported devices. Surely they aren't?

Logs:

Show the Homebridge logs here, remove any sensitive information.
[8/23/2023, 5:29:55 PM] [Homebridge UI] Homebridge Config UI X v4.50.5 is listening on :: port 8581
[8/23/2023, 5:29:58 PM] [HB Supervisor] Starting Homebridge with extra flags: -I
[8/23/2023, 5:29:58 PM] [HB Supervisor] Started Homebridge v1.6.1 with PID: 1379
[8/23/2023, 5:30:05 PM] Loaded config.json with 0 accessories and 2 platforms.
[8/23/2023, 5:30:05 PM] Loaded 0 cached accessories from cachedAccessories.
[8/23/2023, 5:30:05 PM] ---
[8/23/2023, 5:30:11 PM] Loaded plugin: [email protected]
[8/23/2023, 5:30:11 PM] Registering platform 'homebridge-alexa-smarthome.HomebridgeAlexaSmartHome'
[8/23/2023, 5:30:11 PM] ---
[8/23/2023, 5:30:12 PM] Loaded plugin: [email protected]
[8/23/2023, 5:30:12 PM] Registering platform 'homebridge-config-ui-x.config'
[8/23/2023, 5:30:12 PM] ---
[8/23/2023, 5:30:12 PM] Loading 2 platforms...
[8/23/2023, 5:30:12 PM] [HomebridgeAlexaSmartHome] Initializing HomebridgeAlexaSmartHome platform...
[8/23/2023, 5:30:12 PM] [HomebridgeAlexaSmartHome] Initializing child bridge 0E:CB:50:E9:3D:15
Setup Payload:
X-HM://0024TIV4ZMZ0W
Enter this code with your HomeKit app on your iOS device to pair with Homebridge:
                       
    ┌────────────┐     
    │ 816-15-651 │     
    └────────────┘     
                       
[8/23/2023, 5:30:12 PM] Homebridge v1.6.1 (HAP v0.11.1) (Homebridge 819E) is running on port 51355.
[8/23/2023, 5:30:16 PM] [homebridge-alexa-smarthome] Launched child bridge with PID 1534
[8/23/2023, 5:30:17 PM] Registering platform 'homebridge-alexa-smarthome.HomebridgeAlexaSmartHome'
[8/23/2023, 5:30:17 PM] [homebridge-alexa-smarthome] Loaded homebridge-alexa-smarthome v0.0.14-beta.0 child bridge successfully
[8/23/2023, 5:30:17 PM] Loaded 1 cached accessories from cachedAccessories.0ECB50E93D15.
[8/23/2023, 5:30:17 PM] [homebridge-alexa-smarthome] Loading accessory from cache: Leo’s Bedside Light
[8/23/2023, 5:30:18 PM] Homebridge v1.6.1 (HAP v0.11.1) (homebridge-alexa-smarthome) is running on port 44460.
[8/23/2023, 5:30:22 PM] [homebridge-alexa-smarthome] Restoring existing accessory from cache: Leo’s Bedside Light
[8/23/2023, 5:30:22 PM] [homebridge-alexa-smarthome] Adding new accessory: Living Room Dot
[8/23/2023, 5:30:22 PM] [homebridge-alexa-smarthome] Adding new accessory: TV
[8/23/2023, 5:30:22 PM] [homebridge-alexa-smarthome] Adding new accessory: Entertainment Dot Right
[8/23/2023, 5:30:22 PM] [homebridge-alexa-smarthome] Adding new accessory: Lights
[8/23/2023, 5:30:22 PM] [homebridge-alexa-smarthome] Adding new accessory: Bedroom
[8/23/2023, 5:30:22 PM] [homebridge-alexa-smarthome] Adding new accessory: Hall Dot
[8/23/2023, 5:30:22 PM] [homebridge-alexa-smarthome] Adding new accessory: Study Show
[8/23/2023, 5:30:22 PM] [homebridge-alexa-smarthome] Adding new accessory: Sitting Room Show
[8/23/2023, 5:30:22 PM] [homebridge-alexa-smarthome] initDevices - Unsupported device: Living Room Dot.
[8/23/2023, 5:30:22 PM] [homebridge-alexa-smarthome] initDevices - Unsupported device: TV.
[8/23/2023, 5:30:22 PM] [homebridge-alexa-smarthome] initDevices - Unsupported device: Entertainment Dot Right.
[8/23/2023, 5:30:22 PM] [homebridge-alexa-smarthome] initDevices - Unsupported device: Lights.
[8/23/2023, 5:30:22 PM] [homebridge-alexa-smarthome] initDevices - Unsupported device: Bedroom.
[8/23/2023, 5:30:22 PM] [homebridge-alexa-smarthome] initDevices - Unsupported device: Hall Dot.
[8/23/2023, 5:30:22 PM] [homebridge-alexa-smarthome] initDevices - Unsupported device: Study Show.
[8/23/2023, 5:30:22 PM] [homebridge-alexa-smarthome] initDevices - Unsupported device: Sitting Room Show.
[homebridge.log](https://github.com/joeyhage/homebrid
[homebridge.log](https://github.com/joeyhage/homebridge-alexa-smarthome/files/12421851/homebridge.log)
[homebridge.log](https://github.com/joeyhage/homebridge-alexa-smarthome/files/12421855/homebridge.log)
ge-alexa-smarthome/files/12421848/homebridge.log)

**Plugin Config:**

```json
Show your Homebridge config.json here, remove any sensitive information.
{
    "auth": {
        "refreshInterval": 4,
        "proxy": {
            "clientHost": "7.4.77.169",
            "port": 2345
        }
    },
    "devices": [],
    "amazonDomain": "amazon.co.uk",
    "language": "en-UK",
    "debug": false,
    "platform": "HomebridgeAlexaSmartHome",
    "_bridge": {
        "username": "0E:CB:50:E9:3D:15",
        "port": 44460
    }
}
[homebridge.log](https://github.com/joeyhage/homebridge-alexa-smarthome/files/12421879/homebridge.log)


**Screenshots:**

<!-- If applicable, add screenshots to help explain your problem. -->

**Environment:**

- **Plugin Version**:
- **Homebridge Version**: <!-- homebridge -V -->
- **Node.js Version**: <!-- node -v -->
- **NPM Version**: <!-- npm -v -->
- **Operating System**: <!-- Raspbian / Ubuntu / Debian / Windows / macOS / Docker / hb-service -->

<!-- Click the "Preview" tab before you submit to ensure the formatting is correct. -->

Request to support switch and Echo Glow. Smart plug help

From Reddit:

First off, big kudos for your plug-in; it’s been working grate and does not seem to have slowed down home bridge, but I’ve got a couple of requests. Any chance we could see support added for switches, the Echo Glow, and the temperature sensors on Amazon Echo devices? Also, I noticed the update for Alexa media player support, but could you throw in the ability to airplay to Echo devices as well?

Adding switches and the Echo Glow should be pretty straightforward given your existing architecture for smart outlets and lightbulbs. But those Echo temperature sensors might be a tougher nut to crack, especially if you don’t have one to play with. I’d love to pitch in and help, but honestly, coding isn’t my strong suit, especially with the way your plug-in is structured.

Now, here’s the bigger issue that I think affects the whole Homebridge community. There’s a bug; the plug-in just doesn’t recognize one of my smart plugs. It’s all set up correctly in the Amazon Alexa app, but it’s MIA in HomeKit. I even removed three Echo devices from the list that tells the plug-in to add them, thinking there might be a device limit or something. But no luck. Any ideas on how to fix this?

Thanks a bunch for considering these requests and giving some insight.

Cheers, Andrew

Amazon.in domain

Describe The Bug:

Unable to see amazon.in as an amazon domain in the plugin setting.

To Reproduce:

During the installation of the plugin, the settings does not allow to use amazon.in domain as it does not appear in the list

Expected behavior:

amazon.in domain should be present in the domain list.

Logs:

Show the Homebridge logs here, remove any sensitive information.

Plugin Config:

{
"bridge": {
"name": "Homebridge 0966",
"username": "--------",
"port": ---------,
"pin": "--------",
"advertiser": "ciao",
"bind": [
"eth0"
]
},
"accessories": [],
"platforms": [
{
"name": "Config",
"port": 8581,
"platform": "config"
},
{
"devices": [
"Tube Light",
"Ceiling Light"
],
"auth": {
"refreshInterval": 4,
"proxy": {
"clientHost": "192.168.1.10",
"port": 9192
}
},
"language": "en-IN",
"performance": {
"cacheTTL": 30,
"backgroundRefresh": true
},
"debug": false,
"_bridge": {
"username": "---------",
"port": ---------
},
"platform": "HomebridgeAlexaSmartHome"
}
]
}

Screenshots:

image

Environment:

  • Plugin Version: 2.0.1
  • Homebridge Version: 1.6.1
  • Node.js Version: 18.18.2
  • NPM Version:
  • Operating System: macOS

Getting `HttpError(Error getting smart home device state. Reason: Timeout)`

Describe Your Problem:

The plugin worked at first but it no longer adding devices to homebridge. I have tried removing the plugin and adding it again and deleting the persist/ folder.

Specifying the names of the devices manually does add them though.

Logs:

[9/1/2023, 3:14:24 AM] [homebridge-alexa-smarthome] Restarting child bridge...
[9/1/2023, 3:14:24 AM] Got SIGTERM, shutting down child bridge process...
[9/1/2023, 3:14:28 AM] [Homebridge UI] Starting terminal session
[9/1/2023, 3:14:29 AM] [homebridge-alexa-smarthome] Child bridge process ended
[9/1/2023, 3:14:29 AM] [homebridge-alexa-smarthome] Process Ended. Code: 143, Signal: null
[9/1/2023, 3:14:36 AM] [homebridge-alexa-smarthome] Restarting Process...
[9/1/2023, 3:14:37 AM] [homebridge-alexa-smarthome] Launched child bridge with PID 9131
[9/1/2023, 3:14:37 AM] Registering platform 'homebridge-alexa-smarthome.HomebridgeAlexaSmartHome'
[9/1/2023, 3:14:37 AM] [homebridge-alexa-smarthome] Loaded homebridge-alexa-smarthome v0.1.0 child bridge successfully
[9/1/2023, 3:14:37 AM] Loaded 0 cached accessories from cachedAccessories.IDHERE.
[9/1/2023, 3:14:37 AM] Homebridge v1.6.1 (HAP v0.11.1) (homebridge-alexa-smarthome) is running on port 48617.
[9/1/2023, 3:14:46 AM] [Homebridge UI] Terminal session ended.
[9/1/2023, 3:14:50 AM] [Homebridge UI] Starting terminal session
[9/1/2023, 3:14:55 AM] [homebridge-alexa-smarthome] After initialization - HttpError(Error getting smart home device state. Reason: Timeout)

Plugin Config:

        {
            "auth": {
                "refreshInterval": 4,
                "proxy": {
                    "clientHost": "192.168.1.138",
                    "port": 8000
                }
            },
            "devices": [],
            "amazonDomain": "amazon.com",
            "language": "en-US",
            "debug": false,
            "platform": "HomebridgeAlexaSmartHome",
            "_bridge": {
                "username": "",
                "port": 48617
            }
        }

Environment:

  • Plugin Version: v0.1.0
  • Homebridge Version: v4.50.5
  • Node.js Version: v18.16.0
  • NPM Version: v9.5.1
  • Operating System: Docker

Percentage Speed for Fans

Ceiling fans that expose a fan speed percentage control in Alexa should propagate to Homekit with the speed control available. Currently, these only appear to offer on-off control. Thanks!

choose devices

It would be nice to have an option in the settings that lets you choose which devices to appear in the home app.

I can't get to the amazon log in page through my browser... Keep getting a http... I change this to HTTPS

I can't authenticate login on browser. It says to go to app but i click on the top to proceed to web address. It then takes me to a http// address. I switch this to http:// and then get the last screen shot of a 404

Logs:

Show the Homebridge logs here, remove any sensitive information.

Plugin Config:

Show your Homebridge config.json here, remove any sensitive information.

Screenshots:

Environment:

alexa2
alexa1
alexa3

Unable to link

Describe Your Problem:
I have gone through all the setup and I receive the successfully retrieved cookie notification. However, when it tries to startup with that, I get this error: “ bridgeHomebridgeAlexaSmartHomeERRORAfter initialization - HttpError(Error getting smart home devices. Reason: Cookie invalid, Renew unsuccessful)”

Ive gone through it multiple times and got the same result. MFA is on.
It almost looks like it’s not getting saved properly.

Logs:

12/3/2023, 9:32:32 AMHoobs bridgeHomebridgeAlexaSmartHomeAlexa-Cookie: Result: csrf=4921321, Cookie=session-id=133-0927576-7526369; session-id-time=2332341152l; ubid-main=132-2371216-6320700; x-main=v2wTt?dxbl7Cj8e3dw5YvuqczrUBUhm1; at-main=Atza|IwEBIDCoxopzSEDJS2HmXXnHlsYOQ3XqvaUPiYVtA6Sso1q6bVjgTMQKodJzFSsPDrqLEUiCppPdISZaHwBCsynGLx3-_4lSMRPXR1EArmjaCTNpXE2p-9u5Mj5cQ_C1QOgOnnEJcK4ltxsjrgSEUmRFsveMgCqYfoHL7u0Z9x0VyuQTFPgnMqoE5sWhAUAjNsBaUXcnuyE3X9UZCn6Hbwm2yG7BErVZoLfpEJtUNgAmq7cpMF-wTEHDA0dZ89gSJt5XZbtP4eVYW0fLPThUnJ7gktwFkcAzGpppkzgcmcpTxENssXPqwD-MPBkVrIY5Ca8H_JW1_g3qyEFtlPanyLakTu_sczuSkZeDA09qRFT08S3VXsDx7-Mw3SVtwu1k1fdAkiLantkPwKPEldHEECcdj59C; sess-at-main=DisraQx6TEGZy1XDl9epxaGMgi/J0CU2Xt1r/9quydw=; csrf=4921321
12/3/2023, 9:32:32 AMHoobs bridgeHomebridgeAlexaSmartHomeAlexa login cookie updated. Storing cookie in file: /var/lib/hoobs/hoobsbridge/persist/.homebridge-alexa-smarthome
12/3/2023, 9:32:42 AMHoobs bridge starting
12/3/2023, 9:32:46 AMHoobs bridgeLoaded plugin 'homebridge-alexa-smarthome'
12/3/2023, 9:32:46 AMHoobs bridgeLoaded plugin 'homebridge-lennox-icomfort'
12/3/2023, 9:32:47 AMHoobs bridgeLoaded plugin 'homebridge-myq'
12/3/2023, 9:32:48 AMHoobs bridgeLoaded plugin 'homebridge-platform-insteonlocal'
12/3/2023, 9:32:48 AMHoobs bridgeLoaded plugin 'homebridge-smartthings-ik'
12/3/2023, 9:32:48 AMHoobs bridgeLoading 5 platforms...
12/3/2023, 9:32:48 AMHoobs bridgeInsteonLocalStarted connection watcher...
12/3/2023, 9:32:48 AMHoobs bridgemyQERRORNo myQ login credentials configured.
12/3/2023, 9:32:48 AMHoobs bridgeLennoxIComfortFinished initializing platform: undefined
12/3/2023, 9:32:48 AMHoobs bridgeInsteonLocalLoading accessory from cache: Entry Hall Lights
12/3/2023, 9:32:48 AMHoobs bridgeInsteonLocalLoading accessory from cache: Family room lamps
12/3/2023, 9:32:48 AMHoobs bridgeInsteonLocalLoading accessory from cache: Nightstand lamps
12/3/2023, 9:32:48 AMHoobs bridgeInsteonLocalLoading accessory from cache: Living Room lamps
12/3/2023, 9:32:48 AMHoobs bridgeInsteonLocalLoading accessory from cache: Porch lights
12/3/2023, 9:32:48 AMHoobs bridgeInsteonLocalLoading accessory from cache: Basement leak sensor
12/3/2023, 9:32:48 AMHoobs bridgeSmartthings Plug (IK)Loading accessory from cache: Front Door
12/3/2023, 9:32:48 AMHoobs bridgeInsteonLocalFound 6 devices in config
12/3/2023, 9:32:48 AMHoobs bridgeInsteonLocalRestoring existing accessory from cache: Entry Hall Lights
12/3/2023, 9:32:48 AMHoobs bridgeInsteonLocalRestoring existing accessory from cache: Family room lamps
12/3/2023, 9:32:48 AMHoobs bridgeInsteonLocalRestoring existing accessory from cache: Nightstand lamps
12/3/2023, 9:32:48 AMHoobs bridgeInsteonLocalRestoring existing accessory from cache: Living Room lamps
12/3/2023, 9:32:48 AMHoobs bridgeInsteonLocalRestoring existing accessory from cache: Porch lights
12/3/2023, 9:32:48 AMHoobs bridgeInsteonLocalRestoring existing accessory from cache: Basement leak sensor
12/3/2023, 9:32:48 AMHoobs bridgeHomebridgeAlexaSmartHomeLogin required because existing authentication not found
12/3/2023, 9:32:48 AMHoobs bridgeHomebridgeAlexaSmartHomeAlexa-Remote: No cookie given, generate one
12/3/2023, 9:32:48 AMHoobs bridgeHomebridgeAlexaSmartHomeAlexa-Remote: Error from retrieving cookies
12/3/2023, 9:32:48 AMHoobs bridgeBridge is running on port 51826.
12/3/2023, 9:32:48 AMHoobs bridgeHomebridgeAlexaSmartHomeERRORFailed to initialize connection to Alexa. - Please open http://hoobs.local:2345/ with your browser and login to Amazon. The cookie will be output here after successfull login.
12/3/2023, 9:32:49 AMHoobs bridgeHomebridgeAlexaSmartHomeAlexa-Remote: Authentication check Error, try re-init
12/3/2023, 9:32:49 AMHoobs bridgeHomebridgeAlexaSmartHomeAlexa-Remote: No cookie given, generate one
12/3/2023, 9:32:49 AMHoobs bridgeHomebridgeAlexaSmartHomeAlexa-Remote: Error from retrieving cookies
12/3/2023, 9:32:49 AMHoobs bridgeHomebridgeAlexaSmartHomeAlexa-Remote: Authentication check Error and renew unsuccessful. STOP
12/3/2023, 9:32:49 AMHoobs bridgeHomebridgeAlexaSmartHomeERRORAfter initialization - HttpError(Error getting smart home devices. Reason: Cookie invalid, Renew unsuccessful)
12/3/2023, 9:32:49 AMHo

Plugin Config:

"platform": "HomebridgeAlexaSmartHome",    "amazonDomain": "amazon.com",    "auth": {        "refreshInterval": 4,        "proxy": {            "clientHost": "hoobs.local",            "port": 2345        }    },    "language": "en-US",    "devices": [        "Living room thermostat"    ],    "debug": true}

Screenshots:

Environment:

  • Plugin Version: 2.0.3
  • Homebridge Version: 1.6.0
  • Node.js Version: 16.20.2
  • NPM Version: hoobs 4.3.0
  • Operating System: Raspbian

Change light color

The only thing you can do with lights right now is brightness. I want to be able to change the color.

No response when attempting to control fan

Describe The Bug:

While I'm able to use this plugin to add my Vornado Transom AE to my homekit devices and it properly reflects the current state of the device, when trying to control it using any method other than through the Alexa app I'm given the error "no response"

To Reproduce:

  1. Install plugin
  2. Configure plugin
  3. Attempt to control fan in Home app

Expected behavior:

I expect the fan to turn off or on when controlled via homekit

Logs:

[1/5/2024, 3:43:45 PM] [HB Supervisor] Restarting Homebridge...
[1/5/2024, 3:43:45 PM] [HB Supervisor] Starting Homebridge with extra flags: -I -P /var/lib/homebridge/node_modules --strict-plugin-resolution
[1/5/2024, 3:43:45 PM] [HB Supervisor] Started Homebridge v1.7.0 with PID: 10335
[1/5/2024, 3:43:46 PM] Loaded config.json with 0 accessories and 2 platforms.
[1/5/2024, 3:43:46 PM] Loaded 1 cached accessories from cachedAccessories.
[1/5/2024, 3:43:46 PM] ---
[1/5/2024, 3:43:46 PM] Loaded plugin: [email protected]
[1/5/2024, 3:43:46 PM] Registering platform 'homebridge-alexa-smarthome.HomebridgeAlexaSmartHome'
[1/5/2024, 3:43:46 PM] ---
[1/5/2024, 3:43:46 PM] Loading 2 platforms...
[1/5/2024, 3:43:46 PM] [HomebridgeAlexaSmartHome] Initializing HomebridgeAlexaSmartHome platform...
[1/5/2024, 3:43:46 PM] [HomebridgeAlexaSmartHome] Loading accessory from cache: Window Fan
[1/5/2024, 3:43:46 PM] [HomebridgeAlexaSmartHome] Alexa-Remote: cookie was provided
Setup Payload:
X-HM://00249W1XCUBFR
Enter this code with your HomeKit app on your iOS device to pair with Homebridge:
                       
    ┌────────────┐     
    │ 486-38-656 │     
    └────────────┘     
                       
[1/5/2024, 3:43:46 PM] Homebridge v1.7.0 (HAP v0.11.1) (Homebridge AE59) is running on port 51248.
[1/5/2024, 3:43:46 PM] [HomebridgeAlexaSmartHome] Alexa-Remote: Authentication checked: true
[1/5/2024, 3:43:46 PM] [HomebridgeAlexaSmartHome] Alexa-Remote: Change Base URL for API calls to na-api-alexa.amazon.com
[1/5/2024, 3:43:47 PM] [HomebridgeAlexaSmartHome] Successfully authenticated Alexa account.
[1/5/2024, 3:43:47 PM] [HomebridgeAlexaSmartHome] Found 1 devices connected to the current Alexa account.
[1/5/2024, 3:43:47 PM] [HomebridgeAlexaSmartHome] BEGIN devices connected to Alexa account

 [
  {
    "displayName": "Window Fan",
    "deviceType": "FAN"
  }
]

END devices connected to Alexa account
[1/5/2024, 3:43:47 PM] [HomebridgeAlexaSmartHome] Found all 1 devices in plugin settings.
[1/5/2024, 3:43:47 PM] [HomebridgeAlexaSmartHome] Updating device states
[1/5/2024, 3:43:48 PM] [HomebridgeAlexaSmartHome] BEGIN capabilities for all devices: {
  "locationDetails": {
    "Default_Location": {
      "locationId": "Default_Location",
      "amazonBridgeDetails": {
        "amazonBridgeDetails": {
          "LambdaBridge_SKILL/eyJza2lsbElkIjoiYW16bjEuYXNrLnNraWxsLjY4NjRlNjEzLWFiZDctNGVhYy05NWMxLWJkZTQyNTM5MjE2ZSIsInN0YWdlIjoibGl2ZSJ9": {
            "amazonBridgeIdentifier": {
              "amazonBridgeDSN": "SKILL/eyJza2lsbElkIjoiYW16bjEuYXNrLnNraWxsLjY4NjRlNjEzLWFiZDctNGVhYy05NWMxLWJkZTQyNTM5MjE2ZSIsInN0YWdlIjoibGl2ZSJ9",
              "amazonBridgeType": "LambdaBridge",
              "lambdaBridge": true,
              "amazonBridgeSource": "SKILL"
            },
            "applianceDetails": {
              "applianceDetails": {
                "SKILL_eyJza2lsbElkIjoiYW16bjEuYXNrLnNraWxsLjY4NjRlNjEzLWFiZDctNGVhYy05NWMxLWJkZTQyNTM5MjE2ZSIsInN0YWdlIjoibGl2ZSJ9_AF23Y8VR63FXG_44B01EBAB2F548F39C7762E927D3541D": {
                  "applianceId": "SKILL_eyJza2lsbElkIjoiYW16bjEuYXNrLnNraWxsLjY4NjRlNjEzLWFiZDctNGVhYy05NWMxLWJkZTQyNTM5MjE2ZSIsInN0YWdlIjoibGl2ZSJ9_AF23Y8VR63FXG_44B01EBAB2F548F39C7762E927D3541D",
                  "endpointTypeId": "",
                  "driverIdentity": {
                    "namespace": "SKILL",
                    "identifier": "eyJza2lsbElkIjoiYW16bjEuYXNrLnNraWxsLjY4NjRlNjEzLWFiZDctNGVhYy05NWMxLWJkZTQyNTM5MjE2ZSIsInN0YWdlIjoibGl2ZSJ9"
                  },
                  "manufacturerName": "Amazon",
                  "friendlyDescription": "Alexa App on Mobile",
                  "modelName": "",
                  "deviceType": "CLOUD_DISCOVERED_DEVICE",
                  "version": "0",
                  "friendlyName": "Alexa App on Mobile",
                  "friendlyNameModifiedAt": 1704484364193,
                  "capabilitiesModifiedAt": 1704484364193,
                  "ipAddress": "",
                  "port": "",
                  "entityId": "955a3c40-d2f6-4394-8d4c-b21a78ec31f7",
                  "applianceNetworkState": {
                    "reachability": "REACHABLE",
                    "lastSeenAt": 1704487428113,
                    "createdAt": 1704484364193,
                    "lastSeenDiscoverySessionId": {
                      "value": "40c0edde-b83c-433c-8272-e4f5936f030c"
                    }
                  },
                  "tags": {
                    "tagNameToValueSetMap": {}
                  },
                  "additionalApplianceDetails": {
                    "additionalApplianceDetails": {}
                  },
                  "firmwareVersion": "0",
                  "actions": [],
                  "capabilities": [
                    {
                      "type": "AlexaInterface",
                      "version": "3.1",
                      "interfaceName": "Alexa.RemoteVideoPlayer",
                      "configurations": {
                        "catalogs": [
                          {
                            "type": "VIDEO_INGESTION_IDENTIFIER",
                            "sourceId": "combee"
                          }
                        ],
                        "operations": [
                          "SearchAndPlay",
                          "SearchAndDisplayResults"
                        ]
                      },
                      "capabilityType": "AlexaEndpointCapabilityInstance"
                    }
                  ],
                  "applianceTypes": [
                    "ALEXA_VOICE_ENABLED"
                  ],
                  "isEnabled": true,
                  "aliases": [],
                  "connectedVia": "",
                  "alexaDeviceIdentifierList": [
                    {
                      "dmsDeviceSerialNumber": "**removed**",
                      "dmsDeviceTypeId": "A2IVLV5VM2W81"
                    }
                  ],
                  "applianceKey": "**removed**",
                  "identifiers": {
                    "networkInterfaceIdentifiers": []
                  },
                  "applianceDriverIdentity": {
                    "namespace": "SKILL",
                    "identifier": "eyJza2lsbElkIjoiYW16bjEuYXNrLnNraWxsLjY4NjRlNjEzLWFiZDctNGVhYy05NWMxLWJkZTQyNTM5MjE2ZSIsInN0YWdlIjoibGl2ZSJ9"
                  },
                  "ipaddress": "",
                  "applianceLambdaControlled": true,
                  "mergedApplianceIds": [
                    "SKILL_eyJza2lsbElkIjoiYW16bjEuYXNrLnNraWxsLjY4NjRlNjEzLWFiZDctNGVhYy05NWMxLWJkZTQyNTM5MjE2ZSIsInN0YWdlIjoibGl2ZSJ9_AF23Y8VR63FXG_44B01EBAB2F548F39C7762E927D3541D"
                  ]
                },
                "SKILL_eyJza2lsbElkIjoiYW16bjEuYXNrLnNraWxsLjY4NjRlNjEzLWFiZDctNGVhYy05NWMxLWJkZTQyNTM5MjE2ZSIsInN0YWdlIjoibGl2ZSJ9_AF23Y8VR63FXG_78cddfc0afde6f8c001ad2b8b0d1b0c6": {
                  "applianceId": "SKILL_eyJza2lsbElkIjoiYW16bjEuYXNrLnNraWxsLjY4NjRlNjEzLWFiZDctNGVhYy05NWMxLWJkZTQyNTM5MjE2ZSIsInN0YWdlIjoibGl2ZSJ9_AF23Y8VR63FXG_78cddfc0afde6f8c001ad2b8b0d1b0c6",
                  "endpointTypeId": "",
                  "driverIdentity": {
                    "namespace": "SKILL",
                    "identifier": "eyJza2lsbElkIjoiYW16bjEuYXNrLnNraWxsLjY4NjRlNjEzLWFiZDctNGVhYy05NWMxLWJkZTQyNTM5MjE2ZSIsInN0YWdlIjoibGl2ZSJ9"
                  },
                  "manufacturerName": "Amazon",
                  "friendlyDescription": "Alexa App on Mobile",
                  "modelName": "",
                  "deviceType": "CLOUD_DISCOVERED_DEVICE",
                  "version": "0",
                  "friendlyName": "Alexa App on Mobile",
                  "friendlyNameModifiedAt": 1704486682743,
                  "capabilitiesModifiedAt": 1704486682743,
                  "ipAddress": "",
                  "port": "",
                  "entityId": "d8ab7999-097e-4bfd-a742-fe7296164c7b",
                  "applianceNetworkState": {
                    "reachability": "REACHABLE",
                    "lastSeenAt": 1704487428113,
                    "createdAt": 1704486682743,
                    "lastSeenDiscoverySessionId": {
                      "value": "6e7761de-d638-4015-afdc-bb40ca8cfbc9"
                    }
                  },
                  "tags": {
                    "tagNameToValueSetMap": {}
                  },
                  "additionalApplianceDetails": {
                    "additionalApplianceDetails": {}
                  },
                  "firmwareVersion": "0",
                  "actions": [],
                  "capabilities": [
                    {
                      "type": "AlexaInterface",
                      "version": "3.1",
                      "interfaceName": "Alexa.RemoteVideoPlayer",
                      "configurations": {
                        "catalogs": [
                          {
                            "type": "VIDEO_INGESTION_IDENTIFIER",
                            "sourceId": "combee"
                          }
                        ],
                        "operations": [
                          "SearchAndPlay",
                          "SearchAndDisplayResults"
                        ]
                      },
                      "capabilityType": "AlexaEndpointCapabilityInstance"
                    }
                  ],
                  "applianceTypes": [
                    "ALEXA_VOICE_ENABLED"
                  ],
                  "isEnabled": true,
                  "aliases": [],
                  "connectedVia": "",
                  "alexaDeviceIdentifierList": [
                    {
                      "dmsDeviceSerialNumber": "**removed**",
                      "dmsDeviceTypeId": "A2IVLV5VM2W81"
                    }
                  ],
                  "applianceKey": "**removed**",
                  "identifiers": {
                    "networkInterfaceIdentifiers": []
                  },
                  "applianceDriverIdentity": {
                    "namespace": "SKILL",
                    "identifier": "eyJza2lsbElkIjoiYW16bjEuYXNrLnNraWxsLjY4NjRlNjEzLWFiZDctNGVhYy05NWMxLWJkZTQyNTM5MjE2ZSIsInN0YWdlIjoibGl2ZSJ9"
                  },
                  "ipaddress": "",
                  "applianceLambdaControlled": true,
                  "mergedApplianceIds": [
                    "SKILL_eyJza2lsbElkIjoiYW16bjEuYXNrLnNraWxsLjY4NjRlNjEzLWFiZDctNGVhYy05NWMxLWJkZTQyNTM5MjE2ZSIsInN0YWdlIjoibGl2ZSJ9_AF23Y8VR63FXG_78cddfc0afde6f8c001ad2b8b0d1b0c6"
                  ]
                }
              }
            }
          },
          "LambdaBridge_AAA/SonarCloudService": {
            "amazonBridgeIdentifier": {
              "amazonBridgeDSN": "AAA/SonarCloudService",
              "amazonBridgeType": "LambdaBridge",
              "lambdaBridge": true,
              "amazonBridgeSource": "SONAR"
            },
            "applianceDetails": {
              "applianceDetails": {
                "AAA_SonarCloudService_00Pw6gPSjiCwQkPOjdSKyg7_smmbxvqmdOsako3-GMrhbOWl96u0u6G8NMfofgIcITYNxJNh_NlVfwQP79o": {
                  "applianceId": "AAA_SonarCloudService_00Pw6gPSjiCwQkPOjdSKyg7_smmbxvqmdOsako3-GMrhbOWl96u0u6G8NMfofgIcITYNxJNh_NlVfwQP79o",
                  "endpointTypeId": "A1AZ0VKGUB06NH",
                  "driverIdentity": {
                    "namespace": "AAA",
                    "identifier": "SonarCloudService"
                  },
                  "manufacturerName": "Vornado",
                  "friendlyDescription": "Vornado Transom",
                  "modelName": "",
                  "deviceType": "",
                  "version": "0",
                  "friendlyName": "First fan",
                  "friendlyNameModifiedAt": 1704485259656,
                  "capabilitiesModifiedAt": 1704485259656,
                  "ipAddress": "",
                  "port": "",
                  "entityId": "5c103758-8fe4-4fce-bc8c-a99acb5532b7",
                  "applianceNetworkState": {
                    "reachability": "REACHABLE",
                    "lastSeenAt": 1704487428113,
                    "createdAt": 1704485259656,
                    "lastSeenDiscoverySessionId": {
                      "value": "e8a2de52-847b-4520-ac2b-f002acc45bb3"
                    }
                  },
                  "tags": {
                    "tagNameToValueSetMap": {}
                  },
                  "additionalApplianceDetails": {
                    "additionalApplianceDetails": {
                      "deviceType": "A1AZ0VKGUB06NH",
                      "configurationVersion": "1",
                      "swVersion": "307002820",
                      "regionIdentifier": "00.ATVPDKIKX0DER",
                      "deviceSerialNumber": "**removed**"
                    }
                  },
                  "firmwareVersion": "0",
                  "actions": [],
                  "capabilities": [
                    {
                      "capabilityType": "AVSInterfaceCapability",
                      "type": "AlexaInterface",
                      "version": "3",
                      "properties": {
                        "supported": [
                          {
                            "name": "powerState"
                          }
                        ],
                        "proactivelyReported": true,
                        "retrievable": true,
                        "readOnly": false
                      },
                      "interfaceName": "Alexa.PowerController"
                    },
                    {
                      "capabilityType": "AVSInterfaceCapability",
                      "type": "AlexaInterface",
                      "version": "3",
                      "properties": {
                        "supported": [
                          {
                            "name": "mode"
                          }
                        ],
                        "proactivelyReported": true,
                        "retrievable": true,
                        "readOnly": false
                      },
                      "configuration": {
                        "ordered": true,
                        "supportedModes": [
                          {
                            "value": "1",
                            "modeResources": {
                              "friendlyNames": [
                                {
                                  "value": {
                                    "text": "Exhaust",
                                    "locale": "en-US"
                                  },
                                  "@type": "text"
                                },
                                {
                                  "value": {
                                    "text": "Outlet",
                                    "locale": "en-US"
                                  },
                                  "@type": "text"
                                }
                              ]
                            }
                          },
                          {
                            "value": "2",
                            "modeResources": {
                              "friendlyNames": [
                                {
                                  "value": {
                                    "text": "Direct",
                                    "locale": "en-US"
                                  },
                                  "@type": "text"
                                },
                                {
                                  "value": {
                                    "text": "inlet",
                                    "locale": "en-US"
                                  },
                                  "@type": "text"
                                }
                              ]
                            }
                          }
                        ]
                      },
                      "resources": {
                        "friendlyNames": [
                          {
                            "value": {
                              "text": "Direction",
                              "locale": "en-US"
                            },
                            "@type": "text"
                          },
                          {
                            "value": {
                              "text": "Wind",
                              "locale": "en-US"
                            },
                            "@type": "text"
                          }
                        ]
                      },
                      "instance": "2",
                      "interfaceName": "Alexa.ModeController"
                    },
                    {
                      "capabilityType": "AVSInterfaceCapability",
                      "type": "AlexaInterface",
                      "version": "3",
                      "properties": {
                        "supported": [
                          {
                            "name": "rangeValue"
                          }
                        ],
                        "proactivelyReported": true,
                        "retrievable": true,
                        "readOnly": false
                      },
                      "configuration": {
                        "supportedRange": {
                          "minimumValue": 60,
                          "maximumValue": 90,
                          "precision": 1
                        },
                        "unitOfMeasure": "Alexa.Unit.Temperature.Degrees",
                        "presets": [
                          {
                            "rangeValue": 60,
                            "presetResources": {
                              "friendlyNames": [
                                {
                                  "value": {
                                    "text": "Low",
                                    "locale": "en-US"
                                  },
                                  "@type": "text"
                                },
                                {
                                  "value": {
                                    "text": "Minimum",
                                    "locale": "en-US"
                                  },
                                  "@type": "text"
                                },
                                {
                                  "value": {
                                    "text": "Min",
                                    "locale": "en-US"
                                  },
                                  "@type": "text"
                                }
                              ]
                            }
                          },
                          {
                            "rangeValue": 70,
                            "presetResources": {
                              "friendlyNames": [
                                {
                                  "value": {
                                    "text": "Medium",
                                    "locale": "en-US"
                                  },
                                  "@type": "text"
                                }
                              ]
                            }
                          },
                          {
                            "rangeValue": 80,
                            "presetResources": {
                              "friendlyNames": [
                                {
                                  "value": {
                                    "text": "High",
                                    "locale": "en-US"
                                  },
                                  "@type": "text"
                                }
                              ]
                            }
                          },
                          {
                            "rangeValue": 90,
                            "presetResources": {
                              "friendlyNames": [
                                {
                                  "value": {
                                    "text": "Maximum",
                                    "locale": "en-US"
                                  },
                                  "@type": "text"
                                },
                                {
                                  "value": {
                                    "text": "Max",
                                    "locale": "en-US"
                                  },
                                  "@type": "text"
                                }
                              ]
                            }
                          }
                        ],
                        "unitOfMeasureLabel": {
                          "value": {
                            "assetId": "Alexa.Unit.Temperature.Degrees"
                          },
                          "@type": "asset"
                        }
                      },
                      "resources": {
                        "friendlyNames": [
                          {
                            "value": {
                              "text": "Set Temperature",
                              "locale": "en-US"
                            },
                            "@type": "text"
                          },
                          {
                            "value": {
                              "text": "Temperature",
                              "locale": "en-US"
                            },
                            "@type": "text"
                          }
                        ]
                      },
                      "instance": "3",
                      "interfaceName": "Alexa.RangeController"
                    },
                    {
                      "capabilityType": "AVSInterfaceCapability",
                      "type": "AlexaInterface",
                      "version": "3",
                      "properties": {
                        "supported": [
                          {
                            "name": "rangeValue"
                          }
                        ],
                        "proactivelyReported": true,
                        "retrievable": true,
                        "readOnly": true
                      },
                      "configuration": {
                        "supportedRange": {
                          "minimumValue": 0,
                          "maximumValue": 100,
                          "precision": 1
                        },
                        "unitOfMeasure": "Alexa.Unit.Temperature.Degrees",
                        "presets": [],
                        "unitOfMeasureLabel": {
                          "value": {
                            "assetId": "Alexa.Unit.Temperature.Degrees"
                          },
                          "@type": "asset"
                        }
                      },
                      "resources": {
                        "friendlyNames": [
                          {
                            "value": {
                              "text": "Air Temperature",
                              "locale": "en-US"
                            },
                            "@type": "text"
                          }
                        ]
                      },
                      "instance": "5",
                      "interfaceName": "Alexa.RangeController"
                    },
                    {
                      "capabilityType": "AVSInterfaceCapability",
                      "type": "AlexaInterface",
                      "version": "3",
                      "properties": {
                        "supported": [
                          {
                            "name": "connectivity"
                          }
                        ],
                        "proactivelyReported": true,
                        "retrievable": true,
                        "readOnly": false
                      },
                      "interfaceName": "Alexa.EndpointHealth"
                    },
                    {
                      "capabilityType": "AVSInterfaceCapability",
                      "type": "AlexaInterface",
                      "version": "3",
                      "properties": {
                        "supported": [
                          {
                            "name": "mode"
                          }
                        ],
                        "proactivelyReported": true,
                        "retrievable": true,
                        "readOnly": false
                      },
                      "configuration": {
                        "ordered": true,
                        "supportedModes": [
                          {
                            "value": "1",
                            "modeResources": {
                              "friendlyNames": [
                                {
                                  "value": {
                                    "text": "Low",
                                    "locale": "en-US"
                                  },
                                  "@type": "text"
                                },
                                {
                                  "value": {
                                    "text": "Minimum",
                                    "locale": "en-US"
                                  },
                                  "@type": "text"
                                },
                                {
                                  "value": {
                                    "text": "Min",
                                    "locale": "en-US"
                                  },
                                  "@type": "text"
                                },
                                {
                                  "value": {
                                    "text": "Level One",
                                    "locale": "en-US"
                                  },
                                  "@type": "text"
                                }
                              ]
                            }
                          },
                          {
                            "value": "2",
                            "modeResources": {
                              "friendlyNames": [
                                {
                                  "value": {
                                    "text": "Medium",
                                    "locale": "en-US"
                                  },
                                  "@type": "text"
                                },
                                {
                                  "value": {
                                    "text": "Level Two",
                                    "locale": "en-US"
                                  },
                                  "@type": "text"
                                }
                              ]
                            }
                          },
                          {
                            "value": "3",
                            "modeResources": {
                              "friendlyNames": [
                                {
                                  "value": {
                                    "text": "High",
                                    "locale": "en-US"
                                  },
                                  "@type": "text"
                                },
                                {
                                  "value": {
                                    "text": "Level Three",
                                    "locale": "en-US"
                                  },
                                  "@type": "text"
                                }
                              ]
                            }
                          },
                          {
                            "value": "4",
                            "modeResources": {
                              "friendlyNames": [
                                {
                                  "value": {
                                    "text": "Turbo",
                                    "locale": "en-US"
                                  },
                                  "@type": "text"
                                },
                                {
                                  "value": {
                                    "text": "Level Four",
                                    "locale": "en-US"
                                  },
                                  "@type": "text"
                                },
                                {
                                  "value": {
                                    "text": "Maximum",
                                    "locale": "en-US"
                                  },
                                  "@type": "text"
                                },
                                {
                                  "value": {
                                    "text": "Max",
                                    "locale": "en-US"
                                  },
                                  "@type": "text"
                                }
                              ]
                            }
                          }
                        ]
                      },
                      "resources": {
                        "friendlyNames": [
                          {
                            "value": {
                              "text": "Fan Speed",
                              "locale": "en-US"
                            },
                            "@type": "text"
                          },
                          {
                            "value": {
                              "text": "Speed",
                              "locale": "en-US"
                            },
                            "@type": "text"
                          }
                        ]
                      },
                      "instance": "1",
                      "interfaceName": "Alexa.ModeController"
                    },
                    {
                      "capabilityType": "AVSInterfaceCapability",
                      "type": "AlexaInterface",
                      "version": "3",
                      "properties": {
                        "supported": [
                          {
                            "name": "toggleState"
                          }
                        ],
                        "proactivelyReported": true,
                        "retrievable": true,
                        "readOnly": false
                      },
                      "resources": {
                        "friendlyNames": [
                          {
                            "value": {
                              "text": "Auto",
                              "locale": "en-US"
                            },
                            "@type": "text"
                          },
                          {
                            "value": {
                              "text": "Automatic",
                              "locale": "en-US"
                            },
                            "@type": "text"
                          },
                          {
                            "value": {
                              "text": "Autoclimate",
                              "locale": "en-US"
                            },
                            "@type": "text"
                          }
                        ]
                      },
                      "instance": "4",
                      "interfaceName": "Alexa.ToggleController"
                    }
                  ],
                  "applianceTypes": [
                    "FAN"
                  ],
                  "isEnabled": true,
                  "aliases": [
                    {
                      "friendlyName": "Window Fan",
                      "id": {
                        "uuid": "cccf8d22-9627-4133-a490-07700999ae3a",
                        "type": "ALIAS"
                      },
                      "enabled": true
                    }
                  ],
                  "connectedVia": "Wi-Fi",
                  "alexaDeviceIdentifierList": [
                    {
                      "dmsDeviceSerialNumber": "**removed**",
                      "dmsDeviceTypeId": "A1AZ0VKGUB06NH"
                    }
                  ],
                  "applianceKey": "**removed**",
                  "identifiers": {},
                  "applianceDriverIdentity": {
                    "namespace": "AAA",
                    "identifier": "SonarCloudService"
                  },
                  "ipaddress": "",
                  "applianceLambdaControlled": true,
                  "mergedApplianceIds": [
                    "AAA_SonarCloudService_00Pw6gPSjiCwQkPOjdSKyg7_smmbxvqmdOsako3-GMrhbOWl96u0u6G8NMfofgIcITYNxJNh_NlVfwQP79o"
                  ]
                }
              }
            }
          }
        }
      },
      "applianceGroups": {
        "applianceGroups": {}
      }
    }
  }
} END capabilities for all devices
[1/5/2024, 3:43:48 PM] [HomebridgeAlexaSmartHome] Window Fan ::: Attempting to add accessory(s) for device: {
  "id": "5c103758-8fe4-4fce-bc8c-a99acb5532b7",
  "displayName": "Window Fan",
  "description": "Vornado Transom",
  "supportedProperties": [
    "turnOff",
    "setModeValue@5c103758-8fe4-4fce-bc8c-a99acb5532b7_1",
    "setModeValue@5c103758-8fe4-4fce-bc8c-a99acb5532b7_2",
    "turnOn",
    "turnOn@5c103758-8fe4-4fce-bc8c-a99acb5532b7_4",
    "turnOff@5c103758-8fe4-4fce-bc8c-a99acb5532b7_4",
    "setRangeValue@5c103758-8fe4-4fce-bc8c-a99acb5532b7_3"
  ],
  "supportedTriggers": [],
  "supportedOperations": [
    "turnOff",
    "setModeValue@5c103758-8fe4-4fce-bc8c-a99acb5532b7_1",
    "setModeValue@5c103758-8fe4-4fce-bc8c-a99acb5532b7_2",
    "turnOn",
    "turnOn@5c103758-8fe4-4fce-bc8c-a99acb5532b7_4",
    "turnOff@5c103758-8fe4-4fce-bc8c-a99acb5532b7_4",
    "setRangeValue@5c103758-8fe4-4fce-bc8c-a99acb5532b7_3"
  ],
  "availability": "AVAILABLE",
  "icon": {
    "@iconType": "SmartHomeApplianceType",
    "value": "FAN"
  },
  "providerData": {
    "enabled": true,
    "relationships": [],
    "categoryType": "APPLIANCE",
    "deviceType": "FAN",
    "dmsDeviceIdentifiers": [
      {
        "deviceSerialNumber": "**removed**",
        "deviceType": "A1AZ0VKGUB06NH"
      }
    ]
  }
}
[1/5/2024, 3:43:48 PM] [HomebridgeAlexaSmartHome] Window Fan ::: Current state: [
  {
    "namespace": "Alexa.ToggleController",
    "name": "toggleState",
    "value": "OFF",
    "instance": "4"
  },
  {
    "namespace": "Alexa.ModeController",
    "name": "mode",
    "value": "1",
    "instance": "2"
  },
  {
    "namespace": "Alexa.ModeController",
    "name": "mode",
    "value": "4",
    "instance": "1"
  },
  {
    "namespace": "Alexa.EndpointHealth",
    "name": "connectivity",
    "value": {
      "value": "OK"
    }
  },
  {
    "namespace": "Alexa.RangeController",
    "name": "rangeValue",
    "value": 73,
    "instance": "5"
  },
  {
    "namespace": "Alexa.PowerController",
    "name": "powerState",
    "value": "ON"
  },
  {
    "namespace": "Alexa.RangeController",
    "name": "rangeValue",
    "value": 77,
    "instance": "3"
  }
]
[1/5/2024, 3:43:48 PM] [HomebridgeAlexaSmartHome] Window Fan ::: Range capabilities: {}
[1/5/2024, 3:43:48 PM] [HomebridgeAlexaSmartHome] Restored existing accessory from cache: Window Fan
[1/5/2024, 3:44:27 PM] [HomebridgeAlexaSmartHome] Updating device states
[1/5/2024, 3:44:27 PM] [HomebridgeAlexaSmartHome] Window Fan - Device state updated successfully using Alexa API
[1/5/2024, 3:44:27 PM] [HomebridgeAlexaSmartHome] Window Fan - Get power result: true
[1/5/2024, 3:44:29 PM] [HomebridgeAlexaSmartHome] Window Fan - Triggered set power: 0
[1/5/2024, 3:44:29 PM] [HomebridgeAlexaSmartHome] Obtained device states from cache
[1/5/2024, 3:44:29 PM] [HomebridgeAlexaSmartHome] Window Fan - Get power result: true
[1/5/2024, 3:44:29 PM] [HomebridgeAlexaSmartHome] Window Fan - Triggered set power: 0

Plugin Config:

{
    "devices": [
        "Window Fan"
    ],
    "auth": {
        "refreshInterval": 4,
        "proxy": {
            "clientHost": "192.168.1.10",
            "port": 9000
        }
    },
    "amazonDomain": "amazon.com",
    "language": "en-US",
    "performance": {
        "cacheTTL": 30,
        "backgroundRefresh": false
    },
    "debug": true,
    "platform": "HomebridgeAlexaSmartHome"
}

Screenshots:

SCR-20240105-obkj

Environment:

  • Plugin Version: v2.1.0
  • Homebridge Version: v1.7.0
  • Node.js Version: v18.19.0
  • NPM Version: v10.2.3
  • Operating System: Docker

Error Connection

I've tried linking my alexa account atleast 6 times and keep keep getting an error message.

Show the Homebridge logs here, remove any sensitive information.

image

image

Plugin Config:

Show your Homebridge config.json here, remove any sensitive information.

Screenshots:

Environment:

  • Plugin Version:
  • Homebridge Version:
  • Node.js Version:
  • NPM Version:
  • Operating System:

iOS Accessories ‘updating’ after a few days

Describe The Bug:

All accessories added to ‘Home’ via this plugin become unresponsive after a few days for no obvious reason.

To Reproduce:

Add the widget and wait!???

Expected behavior:

I’ve had to manually specify each accessory in the plugin config page for them to appear despite the plugin saying it will search and add accessories automatically?
Can’t understand why it works great for a few days then decides to stop working.
Only way to fix it is to uninstall the plugin (keeping the config) then reinstall. The frozen accessories then re-appear in the home app and start working again.

Logs:

Show the Homebridge logs here, remove any sensitive information.

Plugin Config:

Show your Homebridge config.json here, remove any sensitive information.

Screenshots:

Environment:

  • Plugin Version: 2.0.4
  • Homebridge Version: 1.7.0
  • Node.js Version: 18.18.2
  • NPM Version: Not Sure
  • Operating System: Raspbian 10

Unable to initialize connection to login page

Describe Your Problem:

I'm unable to initialize connection to login page. Tried all ways but still unable to resolve.
I Always see this Check logs message in the first line, but I couldn't find any logs other than this.
I also tried removing persist but there is no file Homebridgealexasmarthome to delete

Logs:

[12/3/2023, 8:47:54 AM] [HomebridgeAlexaSmartHome] Failed to initialize connection to Alexa. - Proxy Server could not be initialized. Check Logs.
[12/3/2023, 8:47:54 AM] [HomebridgeAlexaSmartHome] Alexa-Remote: Authentication check Error, try re-init
[12/3/2023, 8:47:54 AM] [HomebridgeAlexaSmartHome] Alexa-Remote: No cookie given, generate one
[12/3/2023, 8:47:54 AM] [HomebridgeAlexaSmartHome] Alexa-Remote: Error from retrieving cookies
[12/3/2023, 8:47:54 AM] [HomebridgeAlexaSmartHome] Alexa-Remote: Authentication check Error and renew unsuccessful. STOP
[12/3/2023, 8:47:54 AM] [HomebridgeAlexaSmartHome] After initialization - HttpError(Error getting smart home devices. Reason: Cookie invalid, Renew unsuccessful)

Plugin Config:

 "auth": {
                "refreshInterval": 4,
                "proxy": {
                    "clientHost": "10.0.0.139",
                    "port": 8581
                }
            },
            "amazonDomain": "amazon.com",
            "language": "en-US",
            "performance": {
                "cacheTTL": 85,
                "backgroundRefresh": false
            },
            "debug": true,
            "platform": "HomebridgeAlexaSmartHome"

Screenshots:

Screenshot 2023-12-03 085804

Environment:

  • Plugin Version: 2.0.3
  • Homebridge Version: 1.7.0
  • Node.js Version: 20.10.0
  • NPM Version: 10.2.3
  • Operating System: Ubuntu

Cannot Authenticate

Describe Your Problem:

I am having trouble authenticating the plugin. Using my iPad, I accessed the local host URL from my home bridge log and the website appears as expected, but then I am immediately redirected to the App Store listing for the Amazon Alexa app—note that I already have the app installed. If I try from my MacBook, I get a QR code to scan; if I scan it with my phone, the same things happens, it bounces me over to the App Store listing.

Note that I did already set up Amazon with the Google Authenticator app. I also tied two different proxy ports (9000 and 7000) but that change had no effect.

My Alexa app has two hostnames listed:

na-api-Alexa.amazon.com
Alexa.amazon.com

None of those are options in the drop-down, so I selected amazon.com. Since that did not work, I went into the JSON config and tried both of the above options, one at a time—this had no effect.

Logs:


[homebridge-alexa-smarthome] Failed to initialize connection to Alexa. - Please open http://Homebridge.local:7000/ with your browser and login to Amazon. The cookie will be output here after successfull login.
[29/01/2024, 18:03:27] 
[homebridge-alexa-smarthome] After initialization - HttpError(Error getting smart home devices. Reason: Cookie invalid, Renew unsuccessful)

Plugin Config:

{
    "devices": [],
    "auth": {
        "refreshInterval": 4,
        "proxy": {
            "clientHost": "Homebridge.local",
            "port": 7000
        }
    },
    "amazonDomain": "alexa.amazon.com",
    "language": "en-US",
    "performance": {
        "cacheTTL": 30,
        "backgroundRefresh": true
    },
    "debug": false,
    "_bridge": {
        "username": "0E:FD:92:73:0D:C5",
        "port": 39578
    },
    "platform": "HomebridgeAlexaSmartHome"
}

Screenshots:

N/a

Environment:

  • Plugin Version: 2.1.2
  • Homebridge Version: homebridge -V1.7.0 UI 4.55.1
  • Node.js Version: node -v20.10.0
  • NPM Version: npm -v???
  • Operating System: Raspbian GNU/Linux Bullseye (11)

Plugin configuration/initialization errors on HOOBS 4

Describe Your Problem:
I'm experiencing configuration errors when I try to set up this plugin on HOOBS. Everything appeared fine - I was able to authenticate w/ Amazon in the browser and successfully retrieve the cookie, however the HOOBS log indicated the failure to initialize and invalid cookie (renew unsuccessful).

Logs:

9/27/2023, 10:09:51 PMAlexa Smarthome BridgeLoaded plugin 'homebridge-alexa-smarthome'
9/27/2023, 10:09:51 PMAlexa Smarthome BridgeLoading 1 platforms...
9/27/2023, 10:09:51 PMAlexa Smarthome BridgeHomebridgeAlexaSmartHomeLogin required because existing authentication not found
9/27/2023, 10:09:53 PMAlexa Smarthome BridgeBridge is running on port XXXXXXX.
9/27/2023, 10:09:53 PMAlexa Smarthome BridgeHomebridgeAlexaSmartHomeERRORFailed to initialize connection to Alexa. - You can try to get the cookie manually by opening http://XXXXXXX/ with your browser.
9/27/2023, 10:09:53 PMAlexa Smarthome BridgeHomebridgeAlexaSmartHomeERRORAfter initialization - HttpError(Error getting smart home devices. Reason: Cookie invalid, Renew unsuccessful)

Plugin Config:

{
    "platform": "HomebridgeAlexaSmartHome",
    "auth": {
        "refreshInterval": 4,
        "proxy": {
            "clientHost": "XXX.XXX.XX.XX",
            "port": XXXX
        }
    },
    "language": "en-US",
    "debug": true
}

Screenshots:
image

Environment:

  • Plugin Version: 1.0.3
  • Homebridge Version: 1.6.0 (via HOOBS v4.3.0)
  • Node.js Version: Local machine (via Terminal) - 18.16.0 (HOOBS device version - 16.20.2)
  • NPM Version: Local machine (via Terminal) - 9.5.1
  • Operating System: macOS

Outlet Behavior - Incorrect State

The state of an outlet device in HomeKit often does not match the actual state in Alexa.

  1. Enable Outlet Device
  2. Initial State seems to be correct
  3. Change State (for example from On to Off)
  4. HomeKit device will immediately switch back to On
  5. State will change in Alexa - but now the States in HomeKit & Alexa are mismatched.
  6. Log indicates a GET error.

Expected behavior:

The state of the device should properly sync between the two systems so that both are always correct.

Logs:

Amazon Plug 2 - Get power - HttpError(Error getting smart home device state. Reason: getaddrinfo ENOTFOUND alexa.amazon.com)

Plugin Config:

        {
            "auth": {
                "refreshInterval": 4,
                "proxy": {
                    "clientHost": "10.0.0.75",
                    "port": 8584
                }
            },
            "devices": [
                "Amazon Plug 1",
                "Amazon Plug 2"
            ],
            "amazonDomain": "amazon.com",
            "language": "en-US",
            "debug": true,
            "_bridge": {
                "username": "0E:AA:34:E4:06:EA",
                "port": 38364
            },
            "platform": "HomebridgeAlexaSmartHome"
        }

Screenshots:

Environment:

  • Plugin Version: 0.0.17
  • Homebridge Version: 1.6.1
  • Node.js Version: 18.17.1
  • NPM Version: 9.6.7
  • Operating System: hb-service

Cookie Session / Connection Issue

Issue:

I've been trying to get the Homebridge Alexa Smart Home plugin to work but have run into issues with cookie authentication. I've tried multiple ports, enabled 2FA on Alexa, and restarted everything multiple times.

Homebridge Logs:

```
[HomebridgeAlexaSmartHome] Failed to initialize connection to Alexa. - You can try to get the cookie manually by opening http://192.168.86.40/8581:7280/ with your browser.
[HomebridgeAlexaSmartHome] After initialization - HttpError(Error getting smart home devices. Reason: Cookie invalid, Renew unsuccessful)
```

Plugin Config:

```json
{
"devices": [],
"auth": {
"refreshInterval": 4,
"proxy": {
"clientHost": "http://192.168.86.40/8581",
"port": 7280
}
},
"amazonDomain": "amazon.com",
"language": "en-US",
"performance": {
"cacheTTL": 300,
"backgroundRefresh": true
},
"debug": true,
"platform": "HomebridgeAlexaSmartHome"
}
```

Screenshots:
(None)

Environment:

  • Plugin Version: v1.0.3
  • Homebridge Version: v1.6.1
  • Node.js Version: 20.8.0
  • NPM Version: 10.1.0
  • Operating System: macOS Sonoma. On M2 silicon

Problems accessing the Alexa app.

Hello and thank you for this wonderful plugin that we have been waiting for for years now.
I don't understand why I can't access the Alexa app.
1 install in plugin
2 set clientHost and port
3 I click on the generated link
4 a web page opens with a QR code that I scan with my phone, and instead of opening the Alexa app to continue, the search browser opens with my IP address etc.
how can I solve it? Thank you

iOS Home widget doesn't accurately show On/Off status of devices pulled in from plugin

Describe Your Problem:

I'm not sure if this is actually an issue caused by the plugin, but the iOS Home widget doesn't seem to update to accurately show the on/off status of devices pulled in by the plugin.

For example, if "Bedroom Lights" are on, the respective toggle in the widget sometimes shows them as off. If I tap it, the switch toggles on and nothing changes with the actual light. If I tap it again, the light will turn off as expected. Almost as if the devices in the widget need to update before they display their actual status.

And when I open the Home app, I notice my devices briefly display "Updating..." before correctly showing whether they're on or off, so I'm wondering if this is just the nature of how the plugin works.

Logs:

N/A

Plugin Config:

Haven't touched anything here but I'll paste it anyway:

{
    "bridge": {
        "name": "Homebridge E66A",
        "username": "0E:F5:4C:4F:E6:6A",
        "port": 51199,
        "pin": "248-47-922",
        "advertiser": "bonjour-hap"
    },
    "accessories": [],
    "platforms": [
        {
            "name": "Config",
            "port": 8581,
            "auth": "form",
            "theme": "auto",
            "tempUnits": "f",
            "lang": "auto",
            "platform": "config"
        },
        {
            "devices": [],
            "auth": {
                "refreshInterval": 4,
                "proxy": {
                    "clientHost": "192.168.0.169",
                    "port": 9001
                }
            },
            "amazonDomain": "amazon.com",
            "language": "en-US",
            "performance": {
                "cacheTTL": 30,
                "backgroundRefresh": false
            },
            "debug": false,
            "platform": "HomebridgeAlexaSmartHome"
        }
    ]
}

Screenshots:

N/A

Environment:

  • Plugin Version: 2.0.4
  • Homebridge Version: 1.7.0
  • Node.js Version: v20.10.0
  • NPM Version: not sure what this is, sorry!
  • Operating System: macOS 14.2

Alexa devices aren't being added to Homebridge

I am getting the error "After initialization - HttpError(Error getting smart home device state. Reason: Timeout)" and none of the alexa devices are being added to homebridge.

I thought it was a cookie issue and so I did this:
Instructions:

  1. Open your homebridge server configuration site in your browser
  2. Open the terminal (Three dots next to power button
  3. Execute the following command: rm persist/.homebridge-alexa-smarthome
  4. Restart homebridge.

I was able to get the "Amazon Alexa Cookie successfully retrieved. You can close the browser.

However I did not see the homebridge log show the "[HomebridgeAlexaSmartHome] Successfully authenticated Alexa account" message.

Logs:

[12/13/2023, 6:16:42 PM] [HomebridgeAlexaSmartHome] 0 devices provided in settings but 50 matching Alexa smart home devices were discovered.
[12/13/2023, 6:16:57 PM] [HomebridgeAlexaSmartHome] After initialization - HttpError(Error getting smart home device state. Reason: Timeout)

Plugin Config:

"amazonDomain": "amazon.com",
"language": "en-US",
"performance": {
"cacheTTL": 30,
"backgroundRefresh": false
},
"debug": false,
"platform": "HomebridgeAlexaSmartHome"

Screenshots:

Environment:

Windows 10

  • Plugin Version: homebridge-alexa-smarthome v2.0.4
  • Homebridge Version: v1.7.0
  • Node.js Version:
  • NPM Version:
  • Operating System: Windows

HB does not run and keeps restarting with TypeError: as.filter is not a function...

I was able to authenticate the Alexa account successfully but now HB keeps restarting with the following error.

To Reproduce:

Installed the plug-in and followed the steps to authenticate Alexa account.

Expected behavior:

Not see the above issue/error.

Logs:

[8/29/2023, 5:27:25 PM] [HomebridgeAlexaSmartHome] Successfully authenticated Alexa account.
[8/29/2023, 5:27:26 PM] TypeError: as.filter is not a function
    at /usr/local/lib/node_modules/homebridge-alexa-smarthome/node_modules/fp-ts/lib/Array.js:1464:19
    at /usr/local/lib/node_modules/homebridge-alexa-smarthome/node_modules/fp-ts/lib/Either.js:349:62
    at pipe (/usr/local/lib/node_modules/homebridge-alexa-smarthome/node_modules/fp-ts/lib/function.js:299:20)
    at Object._map [as map] (/usr/local/lib/node_modules/homebridge-alexa-smarthome/node_modules/fp-ts/lib/Either.js:63:58)
    at /usr/local/lib/node_modules/homebridge-alexa-smarthome/node_modules/fp-ts/lib/Functor.js:19:92
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
[8/29/2023, 5:27:26 PM] Got SIGTERM, shutting down Homebridge...
[8/29/2023, 5:27:31 PM] [HB Supervisor] Homebridge Process Ended. Code: 143, Signal: null

Plugin Config:

{
            "auth": {
                "refreshInterval": 4,
                "proxy": {
                    "clientHost": "localhost",
                    "port": 2345
                }
            },
            "devices": [],
            "amazonDomain": "amazon.com",
            "language": "en-US",
            "debug": true,
            "platform": "HomebridgeAlexaSmartHome"
        }

Screenshots:

Environment:

  • Plugin Version: v0.0.18
  • Homebridge Version: v1.6.1
  • Node.js Version: v18.17.1
  • NPM Version: 9.6.7
  • Operating System: macOS Monterey v12.6.8

Sengled RGB bulb shown as white bulb

I have 2 RGB Sengled Smart Bluetooth Light bulbs (with no hub required) working in Alexa, but in HomeKit those are shown as white bulbs and can only turn on and off, but no color control.

IMG_0918
IMG_0919

Environment:

  • Plugin Version: v2.1.2
  • Homebridge Version: v1.7.0
  • Node.js Version: v20.9.0
  • Operating System: Docker on Synology DSM 7.2.1

Alexa Echo Dot not working

Describe The Bug:
Getting an error. Alexa dot is not being set up. Not shown in homekit or homebridge

To Reproduce:

Set up amazon details on Amazon UK
Expected behavior:

Logs:


[26/09/2023, 10:06:51] [HomebridgeAlexaSmartHome] Successfully authenticated Alexa account.
[26/09/2023, 10:06:51] [HomebridgeAlexaSmartHome] After initialization - InvalidResponse(Invalid list of Alexa devices found for the current Alexa account: {
  "success": true
})

Plugin Config:

Show your Homebridge config.json here, remove any sensitive information.

        {
            "devices": [],
            "auth": {
                "refreshInterval": 4,
                "proxy": {
                    "clientHost": "homebridge.local",
                    "port": 9000
                }
            },
            "amazonDomain": "amazon.co.uk",
            "language": "en-GB",
            "performance": {
                "cacheTTL": 31,
                "backgroundRefresh": false
            },
            "debug": true,
            "platform": "HomebridgeAlexaSmartHome"
        }

Screenshots:

Environment:

  • Plugin Version:
  • Homebridge Version:
  • Node.js Version:
  • NPM Version:
  • Operating System:

Levoit Air Purifier not recognised as a device

Describe The Bug:

I have a Levoit Core 200S air purifier with Alexa support. Unfortunately I get the following error inside HomeBridge

Initialize Devices - UnsupportedDeviceError(Unsupported device: Air Filter with type: AIR_PURIFIER. Currently supported device types are: LIGHT,SWITCH,SMARTLOCK,SMARTPLUG,THERMOSTAT,ALEXA_VOICE_ENABLED,AIR_QUALITY_MONITOR.)

To Reproduce:

Simply have an Alexa supported device of type AIR_PURIFIER in your setup and the error will occur in the logs

Expected behavior:

Logs:

Initialize Devices - UnsupportedDeviceError(Unsupported device: Air Filter with type: AIR_PURIFIER. Currently supported device types are: LIGHT,SWITCH,SMARTLOCK,SMARTPLUG,THERMOSTAT,ALEXA_VOICE_ENABLED,AIR_QUALITY_MONITOR.)

Plugin Config:

Screenshots:

Environment:

  • Plugin Version: 2.0.1
  • Homebridge Version: 1.7.9
  • Node.js Version: 20.9.0
  • NPM Version: 10.1.0
  • Operating System: macOS

Error getting smart home device state. Reason: no body

I have been trying to do the initial setup of my homebridge with this plugin. After I authenticated to Amazon I get the an error message that simply says HttpError with a reason of no body. Below is the logs in Debug mode. I have tried to specify only a couple of devices and get the same logs. I have both homebridge and this plugin set to debug mode.

Any suggestions on how I can get my devices to load?

Logs:

[16/09/2023, 09:56:05] [HomebridgeAlexaSmartHome] Initializing HomebridgeAlexaSmartHome platform...
.
.
.
[16/09/2023, 09:56:05] Publishing bridge accessory 
.
.
.
Enter this code with your HomeKit app on your iOS device to pair with Homebridge:
                       
    ┌────────────┐     
    │            │     
    └────────────┘     
                       

[16/09/2023, 09:56:08] [HomebridgeAlexaSmartHome] Successfully authenticated Alexa account.
[16/09/2023, 09:56:09] [HomebridgeAlexaSmartHome] Found 54 devices connected to the current Alexa account.
[16/09/2023, 09:56:09] [HomebridgeAlexaSmartHome] Updating device states
[16/09/2023, 09:56:09] [HomebridgeAlexaSmartHome] After initialization - HttpError(Error getting smart home device state. Reason: no body)

Plugin Config:

{
    "devices": [
        "Natalie's Lamp",
        "Landon's lamp"
    ],
    "auth": {
        "refreshInterval": 4,
        "proxy": {
            "clientHost": "192.168.1.29",
            "port": 7910
        }
    },
    "amazonDomain": "amazon.com",
    "language": "en-US",
    "performance": {
        "cacheTTL": 30,
        "backgroundRefresh": false
    },
    "debug": true,
    "platform": "HomebridgeAlexaSmartHome"
}

Screenshots:

image

Environment:

  • Plugin Version: v1.0.1
  • Homebridge Version: v1.6.1
  • Node.js Version: v18.16.0
  • NPM Version: 9.5.1
  • Operating System: Raspbian

Schlage Lock Not Showing Up in App

Describe Your Problem:

I have gone through the trouble shooting steps and I am unable to see the schlage lock in the app. It seems to be connected as the logs are showing duplicates.

I would like my schlage encode lock to show in my homekit app.
Logs:

[21/01/2024, 14:40:49] [Alexa] WARNING: Duplicate device name Backyard
[21/01/2024, 14:40:49] [Alexa] WARNING: Duplicate device name Backyard
[21/01/2024, 14:40:49] [Alexa] WARNING: Duplicate device name Base Station
[21/01/2024, 14:40:49] [Alexa] WARNING: Duplicate device name Downstairs
[21/01/2024, 14:40:49] [Alexa] WARNING: Duplicate device name Entryway Keypad
[21/01/2024, 14:40:49] [Alexa] WARNING: Duplicate device name Front Door
[21/01/2024, 14:40:49] [Alexa] WARNING: Duplicate device name Front Door
[21/01/2024, 14:40:49] [Alexa] WARNING: Duplicate device name Front Door
[21/01/2024, 14:40:49] [Alexa] WARNING: Duplicate device name Front
[21/01/2024, 14:40:49] [Alexa] WARNING: Duplicate device name Planty Cam 🌱
[21/01/2024, 14:40:49] [Alexa] WARNING: Duplicate device name Side
[21/01/2024, 14:40:49] [Alexa] WARNING: Duplicate device name Side
[21/01/2024, 14:40:49] [Alexa] alexaDiscovery - returned 47 devices

Plugin Config:

{
    "bridge": {
        "name": "Homebridge DB10",
        "username": "",
        "port":,
        "pin": "",
        "advertiser": ""
    },
    "accessories": [],
    "platforms": [
        {
            "name": "Config",
            "port": 8581,
            "auth": "form",
            "theme": "dark-mode-pink",
            "tempUnits": "f",
            "lang": "auto",
            "platform": "config"
        },
        {
            "refreshToken": "",
            "hideDeviceIds": [
                "",
                ""
            ],
            "platform": "Ring"
        },
        {
            "name": "iRobot",
            "email": "",
            "password": "",
            "roombas": [
                {
                    "autoConfig": true,
                    "info": {
                        "ver": 2
                    }
                }
            ],
            "manualDiscovery": false,
            "lowBattery": 20,
            "offAction": "pause:dock",
            "status": "cycle:clean",
            "eveStatus": "inverted:cycle:clean",
            "bin": "filter:contact",
            "ignoreMultiRoomBin": true,
            "hideStuckSensor": false,
            "disableMultiRoom": false,
            "platform": "iRobotPlatform"
        },
        {
            "name": "SwitchBot",
            "credentials": {
                "token": "",
                "secret": "",
                "notice": "Keep your Token & Secret a secret!"
            },
            "options": {
                "devices": [
                    {
                        "deviceId": "",
                        "configDeviceName": "Hallway",
                        "configDeviceType": "Bot",
                        "connectionType": "OpenAPI",
                        "bot": {
                            "mode": "switch",
                            "deviceType": "switch",
                            "allowPush": true
                        }
                    },
                    {
                        "deviceId": "",
                        "configDeviceName": "Laundry Room",
                        "configDeviceType": "Bot",
                        "connectionType": "OpenAPI",
                        "bot": {
                            "mode": "press",
                            "deviceType": "switch",
                            "allowPush": true
                        }
                    },
                    {
                        "deviceId": "",
                        "configDeviceName": "Living Room Lights",
                        "configDeviceType": "Bot",
                        "connectionType": "OpenAPI",
                        "bot": {
                            "mode": "switch",
                            "deviceType": "switch",
                            "allowPush": true
                        }
                    },
                    {
                        "deviceId": "",
                        "configDeviceName": "Master Bedroom",
                        "configDeviceType": "Bot",
                        "connectionType": "OpenAPI",
                        "bot": {
                            "mode": "switch",
                            "deviceType": "switch",
                            "allowPush": true
                        }
                    },
                    {
                        "deviceId": "",
                        "configDeviceName": "Stairs Lights",
                        "configDeviceType": "Bot",
                        "connectionType": "OpenAPI",
                        "bot": {
                            "mode": "switch",
                            "deviceType": "switch",
                            "allowPush": true
                        }
                    },
                    {
                        "deviceId": "",
                        "configDeviceName": "Dining Room Light",
                        "configDeviceType": "Bot",
                        "connectionType": "OpenAPI",
                        "bot": {
                            "mode": "switch",
                            "deviceType": "switch",
                            "allowPush": true
                        }
                    },
                    {
                        "deviceId": "",
                        "configDeviceName": "Entryway",
                        "configDeviceType": "Bot",
                        "connectionType": "OpenAPI",
                        "bot": {
                            "mode": "switch",
                            "deviceType": "switch",
                            "allowPush": true
                        }
                    },
                    {
                        "deviceId": "",
                        "configDeviceName": "Kitchen Light",
                        "configDeviceType": "Bot",
                        "connectionType": "OpenAPI",
                        "bot": {
                            "mode": "switch",
                            "deviceType": "switch",
                            "allowPush": true
                        }
                    },
                    {
                        "deviceId": "",
                        "configDeviceName": "Loft Light",
                        "configDeviceType": "Bot",
                        "connectionType": "OpenAPI",
                        "bot": {
                            "mode": "switch",
                            "deviceType": "switch",
                            "allowPush": true
                        }
                    },
                    {
                        "deviceId": "",
                        "configDeviceName": "Master Bath",
                        "configDeviceType": "Bot",
                        "connectionType": "OpenAPI",
                        "bot": {
                            "mode": "press",
                            "deviceType": "switch",
                            "doublePress": 1
                        }
                    },
                    {
                        "deviceId": "",
                        "configDeviceName": "Master Bedroom Closet",
                        "configDeviceType": "Bot",
                        "connectionType": "OpenAPI",
                        "bot": {
                            "mode": "switch",
                            "deviceType": "switch",
                            "allowPush": true
                        }
                    },
                    {
                        "deviceId": "",
                        "configDeviceName": "Pantry Lights",
                        "configDeviceType": "Bot",
                        "connectionType": "OpenAPI",
                        "bot": {
                            "mode": "switch",
                            "deviceType": "switch",
                            "allowPush": true
                        }
                    }
                ]
            },
            "platform": "SwitchBot"
        },
        {
            "name": "TplinkSmarthome",
            "addCustomCharacteristics": true,
            "deviceTypes": [
                "plug",
                "bulb"
            ],
            "devicesUseDiscoveryPort": false,
            "platform": "TplinkSmarthome"
        },
        {
            "name": "Alexa",
            "username": "",
            "password": "",
            "pin": "",
            "refresh": 900,
            "keepalive": 5,
            "CloudTransport": "mqtts",
            "deviceListHandling": "none",
            "platform": "Alexa"
        },
        {
            "devices": [
                "Front Door Lock"
            ],
            "auth": {
                "refreshInterval": 4,
                "proxy": {
                    "clientHost": "http://:8581",
                    "port": 9000
                }
            },
            "amazonDomain": "amazon.com",
            "language": "en-US",
            "performance": {
                "cacheTTL": 30,
                "backgroundRefresh": false
            },
            "debug": true,
            "platform": "HomebridgeAlexaSmartHome"
        }
    ]
}

Screenshots:

Environment:

  • Plugin Version:
  • Homebridge Version: 1.7.0
  • Node.js Version: [v18.19.0]
  • NPM Version: couldnt find
  • Operating System: Raspbian

Error: Cannot find module 'fp-ts/String'

Describe Your Problem:

After installing the plugin and rebooting my container I receive an error to load plugin.

I am new to homebridge due to this plugin, I did try installing fp-ts via the terminal and from the startup script, which did not work (shot in the dark). npm install fp-ts

Logs:

[9/12/2023, 8:17:03 PM] [HB Supervisor] Started Homebridge v1.6.1 with PID: 6174
[9/12/2023, 8:17:03 PM] Loaded config.json with 0 accessories and 2 platforms.
[9/12/2023, 8:17:03 PM] Loaded 0 cached accessories from cachedAccessories.
[9/12/2023, 8:17:03 PM] ---
[9/12/2023, 8:17:03 PM] ====================
[9/12/2023, 8:17:03 PM] ERROR LOADING PLUGIN homebridge-alexa-smarthome:
[9/12/2023, 8:17:03 PM] Error: Cannot find module 'fp-ts/String'
Require stack:
- /homebridge/node_modules/homebridge-alexa-smarthome/dist/domain/alexa/save-device-capabilities.js
- /homebridge/node_modules/homebridge-alexa-smarthome/dist/wrapper/alexa-api-wrapper.js
- /homebridge/node_modules/homebridge-alexa-smarthome/dist/platform.js
- /homebridge/node_modules/homebridge-alexa-smarthome/dist/index.js
- /homebridge/node_modules/homebridge/lib/plugin.js
- /homebridge/node_modules/homebridge/lib/pluginManager.js
- /homebridge/node_modules/homebridge/lib/server.js
- /homebridge/node_modules/homebridge/lib/cli.js
- /homebridge/node_modules/homebridge/bin/homebridge
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1075:15)
    at Function.Module._load (node:internal/modules/cjs/loader:920:27)
    at Module.require (node:internal/modules/cjs/loader:1141:19)
    at require (node:internal/modules/cjs/helpers:110:18)
    at Object.<anonymous> (/homebridge/node_modules/homebridge-alexa-smarthome/src/domain/alexa/save-device-capabilities.ts:4:1)
    at Module._compile (node:internal/modules/cjs/loader:1254:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
    at Module.load (node:internal/modules/cjs/loader:1117:32)
    at Function.Module._load (node:internal/modules/cjs/loader:958:12)
    at Module.require (node:internal/modules/cjs/loader:1141:19)
[9/12/2023, 8:17:03 PM] ====================
[9/12/2023, 8:17:03 PM] Loading 2 platforms...
[9/12/2023, 8:17:03 PM] No plugin was found for the platform "HomebridgeAlexaSmartHome" in your config.json. Please make sure the corresponding plugin is installed correctly.

Plugin Config:

{
    "devices": [],
    "auth": {
        "refreshInterval": 4,
        "proxy": {
            "clientHost": "10.0.1.99",
            "port": 9000
        }
    },
    "amazonDomain": "amazon.com",
    "language": "en-US",
    "performance": {
        "cacheTTL": 30,
        "backgroundRefresh": false
    },
    "debug": true,
    "platform": "HomebridgeAlexaSmartHome"
}

Environment:

  • Plugin Version: v0.2.2-beta.0
  • Homebridge Version: v1.6.1
  • Node.js Version: v18.16.0
  • NPM Version: 9.5.1
  • Operating System: Docker

Amazon Smart Thermostat

Describe Your Problem:

Was able to successfully authenticate and load Amazon Smart Thermostat from Alexa and show current state (temp), however unable to control device with Homebridge.

Logs:

[14/11/2023, 13:14:51] [HomebridgeAlexaSmartHome] Thermostat Downstairs - Set target temperature - RequestUnsuccessful(Error setting smart home device state. Response: {
  "controlResponses": [],
  "errors": [
    {
      "entity": {
        "entityId": "b71d9598-058b-4867-9f62-6c4b0c04dec9",
        "entityType": "APPLIANCE"
      },
      "code": "IotaServiceException",
      "message": "IOTA_SERVICE_EXCEPTION",
      "data": null
    }
  ]
}. Error code: IotaServiceException)

Plugin Config:


{
            "devices": [
                "Thermostat Downstairs",
                "Thermostat Upstairs"
            ],
            "auth": {
                "refreshInterval": 4,
                "proxy": {
                    "clientHost": "homebridge.local",
                    "port": 9007
                }
            },
            "amazonDomain": "amazon.com",
            "language": "en-US",
            "performance": {
                "cacheTTL": 15,
                "backgroundRefresh": true
            },
            "debug": false,
            "platform": "HomebridgeAlexaSmartHome"
        }

Screenshots:

Environment:

  • Plugin Version: v2.0.1
  • Homebridge Version: v1.7.0
  • Node.js Version: v20.9.0
  • NPM Version:
  • Operating System: Rasbian

Unable to see any accessories from Alexa in Homebridge

Describe Your Problem:
After setting up a brand new homebridge instance, I added this plugin and this plugin alone. Configured it as described in the readme. Correctly authenticated with amazon, and I see the plugin pulling device data. However, I do see rate limits being hit potentially? I have looked at the common issues section and none of the solutions apply to my situation. None of the accessories in Alexa are being added as accessories in Homebridge. I did test a dummy plugin to make sure devices would show up in homebridge and they do so it isn't an issue with my installation.

Logs:

[10/19/2023, 11:42:39 PM] [HomebridgeAlexaSmartHome] Alexa-Remote: cookie was provided                   
[10/19/2023, 11:42:40 PM] [HomebridgeAlexaSmartHome] Alexa-Remote: Authentication checked: true
[10/19/2023, 11:42:40 PM] [HomebridgeAlexaSmartHome] Alexa-Remote: Change Base URL for API calls to na-api-alexa.amazon.com
[10/19/2023, 11:42:51 PM] [HomebridgeAlexaSmartHome] Successfully authenticated Alexa account.
[10/19/2023, 11:42:52 PM] [HomebridgeAlexaSmartHome] Found 2 devices connected to the current Alexa account.
[10/19/2023, 11:42:52 PM] [HomebridgeAlexaSmartHome] BEGIN devices connected to Alexa account
 [
  {
    "displayName": "Living Room TV",
    "deviceType": "TV"
  },
  {
    "displayName": "Bedroom Lamp",
    "deviceType": "SMARTPLUG"
  }
]

END devices connected to Alexa account
[10/19/2023, 11:42:52 PM] [HomebridgeAlexaSmartHome] Found all 2 devices in plugin settings.
[10/19/2023, 11:42:52 PM] [HomebridgeAlexaSmartHome] Updating device states
[10/19/2023, 11:42:52 PM] [HomebridgeAlexaSmartHome] Alexa-Remote: rate exceeded response ... Retrying once in 49501ms
[10/19/2023, 11:42:52 PM] [HomebridgeAlexaSmartHome] Alexa-Remote: rate exceeded response ... Retrying once in 49084ms
[10/19/2023, 11:43:36 PM] [Homebridge UI] Changes to config.json saved.
[10/19/2023, 11:43:41 PM] [HomebridgeAlexaSmartHome] After initialization - RequestUnsuccessful(Error getting smart home device state(s). Response: {
  "message": "Too many requests. Try again in some time."
})
[10/19/2023, 11:44:41 PM] [HomebridgeAlexaSmartHome] Updating device states
[10/19/2023, 11:44:41 PM] [HomebridgeAlexaSmartHome] Alexa-Remote: rate exceeded response ... Retrying once in 39127ms
[10/19/2023, 11:46:21 PM] [HomebridgeAlexaSmartHome] Updating device states
[10/19/2023, 11:46:21 PM] [HomebridgeAlexaSmartHome] Alexa-Remote: rate exceeded response ... Retrying once in 56473ms

Plugin Config:

{
    "bridge": {
        "name": "Homebridge"
    },
    "accessories": [
        {
            "name": "Test Button",
            "stateful": true,
            "dimmer": false,
            "reverse": false,
            "time": 1000,
            "random": false,
            "resettable": false,
            "brightness": 0,
            "disableLogging": false,
            "accessory": "DummySwitch"
        }
    ],
    "platforms": [
        {
            "name": "Config",
            "port": 8581,
            "platform": "config"
        },
        {
            "devices": [
                "Side Lamp"
            ],
            "auth": {
                "refreshInterval": 4,
                "proxy": {
                    "clientHost": "hello.hello",
                    "port": 9000
                }
            },
            "amazonDomain": "amazon.com",
            "language": "en-US",
            "performance": {
                "cacheTTL": 30,
                "backgroundRefresh": true
            },
            "debug": true,
            "platform": "HomebridgeAlexaSmartHome"
        }
    ]
}

Screenshots:

image

Environment:

  • Plugin Version: latest
  • Homebridge Version: latest
  • Node.js Version: 20.8.1
  • NPM Version: 10.1.0
  • Operating System: macOS

Door Lock state updates in HomeKit, but can't control it

Describe The Bug:

I've installed/configured this plugin according to the ReadMe, and unlike the other recent issues I've seen, everything seems to be fine for me, cookie successful and devices appearing. :)
However, when I try to control my door lock through HomeKit, it says no response and produces the log below. If I control it from Alexa, or manually, the state updates in the home app.

To Reproduce:
Add a door lock to Alexa through a compatible manufacturer. (Mine is Level.)
Turn on unlock by app and unlock by voice in the Alexa app.
Lock/unlock the door through Alexa, and through HomeKit via this plugin.

Expected behavior:

The door should lock/unlock regardless of method, and report it's state to both Alexa and HomeKit.

Logs:


�[37m[10/30/2023, 2:55:29 PM] �[39m�[36m[HomebridgeAlexaSmartHome]�[39m �[31mFront Door - Set target lock state - HttpError(Error setting smart home device state. Reason: Timeout)�[39m
�[37m[10/30/2023, 2:55:30 PM] �[39m�[36m[HomebridgeAlexaSmartHome]�[39m �[31mFront Door - Set target lock state - RequestUnsuccessful(Error setting smart home device state. Response: {�[39m
�[31m "controlResponses": [],�[39m
�[31m "errors": [�[39m
�[31m {�[39m
�[31m "entity": {�[39m
�[31m "entityId": "68964737-3c2c-406b-b944-e2aeca9002c6",�[39m
�[31m "entityType": "APPLIANCE"�[39m
�[31m },�[39m
�[31m "code": "IotaServiceException",�[39m
�[31m "message": "ALREADY_IN_OPERATION",�[39m
�[31m "data": null�[39m
�[31m }�[39m
�[31m ]�[39m
�[31m}. Error code: IotaServiceException)�[39m
�[37m[10/30/2023, 2:55:33 PM] �[39m�[36m[HomebridgeAlexaSmartHome]�[39m �[31mFront Door - Set target lock state - RequestUnsuccessful(Error setting smart home device state. Response: {�[39m
�[31m "controlResponses": [],�[39m
�[31m "errors": [�[39m
�[31m {�[39m
�[31m "entity": {�[39m
�[31m "entityId": "68964737-3c2c-406b-b944-e2aeca9002c6",�[39m
�[31m "entityType": "APPLIANCE"�[39m
�[31m },�[39m
�[31m "code": "IotaServiceException",�[39m
�[31m "message": "ALREADY_IN_OPERATION",�[39m
�[31m "data": null�[39m
�[31m }�[39m
�[31m ]�[39m
�[31m}. Error code: IotaServiceException)�[39m

Plugin Config:

    {
        "devices": [
            "Front Door"
        ],
        "auth": {
            "refreshInterval": 4,
            "proxy": {
                "clientHost": "192.168.1.238",
                "port": 9000
            }
        },
        "amazonDomain": "amazon.com",
        "language": "en-US",
        "performance": {
            "cacheTTL": 30,
            "backgroundRefresh": false
        },
        "debug": false,
        "platform": "HomebridgeAlexaSmartHome"
    }

Environment:

  • Plugin Version: latest
  • Homebridge Version: 1.6.1
  • Node.js Version: 18.15.0
  • NPM Version: 9.5.0
  • Operating System: Synology DSM 7

Unable to authenticate Alexa

Describe Your Problem:

I can't get the Amazon cookie because it just leads to a 404 page, http://homebridge.local:2345/www.amazon.com/404
Also it refreshes every few seconds on the 2FA code page.

Logs:

No logs from the Alexa plugin about the issue

Plugin Config:

{
  "devices": [],
            "amazonDomain": "amazon.com",
            "language": "en-US",
            "debug": true,
            "platform": "HomebridgeAlexaSmartHome"
        }

Screenshots:

None

Environment: Raspberry Pi Zero 2

  • Plugin Version: v0.0.18
  • Homebridge Version: Homebridge v1.6.1
  • Node.js Version: v18.16.0
  • NPM Version: 9.5.1
  • Operating System: Raspbian

Show proper device information

Is your feature request related to a problem? Please describe:
In HK, when you go into the device settings and scroll all the way down you can see some useful information about the device itself such as the manufacturer, serial no, software version etc. I would like to be able to see accurate information instead of 'Unknown',

Describe the solution you'd like:
I know that the SmartHomeDevice already has the serial number of the device and showing it is fairly easy:
base-accessory.ts @ line 80

service
      .setCharacteristic(this.Characteristic.SerialNumber,
        this.device.providerData.dmsDeviceIdentifiers
          ? this.device.providerData.dmsDeviceIdentifiers[0]?.deviceSerialNumber || 'Unknown'
          : 'Unknown')

The rest of the information are available in GetDetailsForDevicesResponse but I couldn't quite figure out how to save them myself, still have a lot to learn in FP.

{
  "locationDetails": {
    ...
          "LambdaBridge_AAA/SonarCloudService": {
            ...
            "applianceDetails": {
              "applianceDetails": {
                "AAA_SonarCloudService_...": {
                  "applianceId": "AAA_SonarCloudService_...",
                  "manufacturerName": "Amazon", <---- Characteristic.Manufacturer
                  "entityId": "2aafd215-...",
                  "additionalApplianceDetails": {
                    "additionalApplianceDetails": {
                      "deviceType": "A39QOBV8Y...", <---- Characteristic.Version MAYBE??
                      "configurationVersion": "1",
                      "swVersion": "16975104", <---- Characteristic.SoftwareRevision
                      "regionIdentifier": "00.ATVP...",
                      "deviceSerialNumber": "GD61M60..." <---- Characteristic.SerialNumber
                    }
                  },
                  "firmwareVersion": "0", <---- Characteristic.FirmwareRevision
                  "capabilities": [...],
                }
            ...

It would be interesting, for possible future use cases, to be able to navigate this structure in the DeviceStore or similar.

After initialization - HttpError(Error getting smart home device state. Reason: no body)

Hello,

I have recently purchased some outdoor lights and integrated them into alexa as there is no homebridge plugin for these zigbee lights (+ i do not own an alexa lol) but they show up in the Alexa app.

Now if i try to set up the plugin in homebridge for Alexa i get multiple errors, every time i try it.

here are some of them all after setting it up and changing the config a couple of times to troubleshoot:

After initialization - HttpError(Error getting smart home device state. Reason: no body)
Failed to initialize connection to Alexa. - Error while checking Authentication: Error: 401 Unauthorized
After initialization - HttpError(Error getting smart home devices. Reason: 401 Unauthorized)

here also the plugin config

{
            "devices": [
                "garden"
            ],
            "auth": {
                "refreshInterval": 4,
                "proxy": {
                    "clientHost": "172.168.1.205",
                    "port": 9000
                }
            },
            "amazonDomain": "amazon.com",
            "language": "de-CH",
            "performance": {
                "cacheTTL": 30,
                "backgroundRefresh": true
            },
            "debug": false,
            "_bridge": {
                "username": "0E:11:97:D9:B1:4A",
                "port": 49399
            },
            "platform": "HomebridgeAlexaSmartHome"
        }
  • running the plugin version v1.0.2
  • homebridge version v1.6.1
  • Node.js Version v18.16.0
  • NPM Version 9.5.1
  • OS Ubuntu Jammy Jellyfish (22.04.2 LTS)

Thermostat Functionality

If thermostat is in Auto mode unable to set high/low comfort windows
Unable to change device mode.
If thermostat is in "Off" mode, thermostat shows as "offline" in homekit

Setup a new thermostat that has both heating and cooling functions.
Place thermostat in "Auto" mode from Alexa App
Attempt to change temperatures (or mode) in Home App

Temperature and Mode should change.

Logs:

[10/9/2023, 5:59:55 PM] [HomebridgeAlexaSmartHome] Obtained device states from cache
[10/9/2023, 5:59:55 PM] [HomebridgeAlexaSmartHome] Thermostat - Get thermostat mode result: 3
[10/9/2023, 5:59:55 PM] [HomebridgeAlexaSmartHome] Obtained device states from cache
[10/9/2023, 5:59:55 PM] [HomebridgeAlexaSmartHome] Thermostat - Get current temperature result: 22.6
[10/9/2023, 5:59:55 PM] [HomebridgeAlexaSmartHome] Obtained device states from cache
[10/9/2023, 5:59:55 PM] [HomebridgeAlexaSmartHome] Thermostat - Get temperature units result: 1
[10/9/2023, 5:59:55 PM] [HomebridgeAlexaSmartHome] Obtained device states from cache
[10/9/2023, 5:59:55 PM] [HomebridgeAlexaSmartHome] Thermostat - Get cooling temperature result: 25
[10/9/2023, 5:59:55 PM] [HomebridgeAlexaSmartHome] Obtained device states from cache
[10/9/2023, 5:59:55 PM] [HomebridgeAlexaSmartHome] Thermostat - Get heating temperature result: 17.8
[10/9/2023, 5:59:55 PM] [HomebridgeAlexaSmartHome] Thermostat - Triggered set cooling temperature: 25
[10/9/2023, 5:59:55 PM] [HomebridgeAlexaSmartHome] Thermostat - Triggered set heating temperature: 17.2
[10/9/2023, 5:59:55 PM] [HomebridgeAlexaSmartHome] Thermostat - Triggered set heating temperature: 14.4
[10/9/2023, 5:59:55 PM] [HomebridgeAlexaSmartHome] Thermostat - Triggered set cooling temperature: 25

[10/9/2023, 5:55:36 PM] [HomebridgeAlexaSmartHome] Thermostat ::: Current state: [
{
"namespace": "Alexa.ThermostatController.Schedule",
"name": "scheduleEnabled",
"value": true
},
{
"namespace": "Alexa.Energy.DemandResponseController",
"name": "eventStatus",
"value": {
"eventId": "",
"status": "NO_EVENT",
"activeSignals": []
}
},
{
"namespace": "Alexa.EndpointHealth",
"name": "connectivity",
"value": {
"value": "OK"
}
},
{
"namespace": "Alexa.ThermostatController.Configuration",
"name": "allowedTemperatureRange",
"value": {
"heating": {
"minimum": {
"value": 50,
"scale": "FAHRENHEIT"
},
"maximum": {
"value": 87,
"scale": "FAHRENHEIT"
}
},
"cooling": {
"minimum": {
"value": 53,
"scale": "FAHRENHEIT"
},
"maximum": {
"value": 90,
"scale": "FAHRENHEIT"
}
}
}
},
{
"namespace": "Alexa.ThermostatController.Schedule",
"name": "adaptiveRecoveryEnabled",
"value": true
},
{
"namespace": "Alexa.ThermostatController.Configuration",
"name": "temperatureScale",
"value": "FAHRENHEIT"
},
{
"namespace": "Alexa.TemperatureSensor",
"name": "preciseTemperature",
"value": {
"value": 72.4921875,
"scale": "FAHRENHEIT"
}
},
{
"namespace": "Alexa.HumiditySensor",
"name": "relativeHumidity",
"value": 43
},
{
"namespace": "Alexa.ThermostatController",
"name": "upperSetpoint",
"value": {
"value": 75,
"scale": "FAHRENHEIT"
}
},
{
"namespace": "Alexa.ThermostatController.HVAC.Components",
"name": "coolerOperation",
"value": "OFF"
},
{
"namespace": "Alexa.AutomationManagement",
"name": "automationStatuses",
"value": [
{
"status": "AUTOMATED",
"capability": "Alexa.ThermostatController"
}
]
},
{
"namespace": "Alexa.ThermostatController",
"name": "lowerSetpoint",
"value": {
"value": 68,
"scale": "FAHRENHEIT"
}
},
{
"namespace": "Alexa.ThermostatController",
"name": "thermostatMode",
"value": "AUTO"
},
{
"namespace": "Alexa.RangeController",
"name": "rangeValue",
"value": 3,
"instance": "1"
},
{
"namespace": "Alexa.TemperatureSensor",
"name": "temperature",
"value": {
"value": 72,
"scale": "FAHRENHEIT"
}
},
{
"namespace": "Alexa.ThermostatController",
"name": "adaptiveRecoveryStatus",
"value": "INACTIVE"
},
{
"namespace": "Alexa.ThermostatController.Configuration",
"name": "setupState",
"value": "REMOTE_CONTROL"
},
{
"namespace": "Alexa.ThermostatController.HVAC.Components",
"name": "primaryHeaterOperation",
"value": "OFF"
},
{
"namespace": "Alexa.RangeController",
"name": "rangeValue",
"value": 3,
"instance": "2"
},
{
"namespace": "Alexa.RangeController",
"name": "rangeValue",
"value": 3,
"instance": "3"
},
{
"namespace": "Alexa.RangeController",
"name": "rangeValue",
"value": 75,
"instance": "8"
},
{
"namespace": "Alexa.RangeController",
"name": "rangeValue",
"value": 3,
"instance": "6"
},
{
"namespace": "Alexa.RangeController",
"name": "rangeValue",
"value": 68,
"instance": "7"
}

[10/9/2023, 5:55:36 PM] [HomebridgeAlexaSmartHome] Thermostat ::: Attempting to add accessory(s) for device: {
"id": "e7f7fcf6-1817-4245-8696-7f6220c7bdea",
"displayName": "Thermostat",
"description": "Amazon Smart Thermostat",
"supportedProperties": [
"setTargetTemperature",
"setRangeValue@e7f7fcf6-1817-4245-8696-7f6220c7bdea_1",
"setRangeValue@e7f7fcf6-1817-4245-8696-7f6220c7bdea_2",
"setModeValue@e7f7fcf6-1817-4245-8696-7f6220c7bdea_5"
],
"supportedTriggers": [
"temperatureSensorTrigger"
],
"supportedOperations": [
"setTargetTemperature",
"setRangeValue@e7f7fcf6-1817-4245-8696-7f6220c7bdea_1",
"setRangeValue@e7f7fcf6-1817-4245-8696-7f6220c7bdea_2",
"setModeValue@e7f7fcf6-1817-4245-8696-7f6220c7bdea_5"
],
"availability": "AVAILABLE",
"icon": {
"@iconType": "SmartHomeApplianceType",
"value": "THERMOSTAT"
},
"providerData": {
"enabled": true,
"relationships": [],
"categoryType": "APPLIANCE",
"deviceType": "THERMOSTAT",
"dmsDeviceIdentifiers": [
{
"deviceSerialNumber": "GD61M600213603AA",
"deviceType": "A39QOBV8YPBZIY"
}
]
}
}

Plugin Config:

Not applicable - straight forward.

Screenshots:

Not applicable - straight forward.

Environment:

  • Plugin Version: homebridge-alexa-smarthome v2.0.0
  • Homebridge Version: v1.6.1
  • Node.js Version:
  • NPM Version:
  • Operating System: Ubuntu

Alexa sign-on process not as documented

Following the guide, setup the proxy details and port as described. Also changed the amazon domain as described (I'm in the UK, so my amazon domain is "amazon.co.uk").

When navigating to the specified address and port, I ended up at a different amazon sign-in page. Rather than being a web page requiring user id and password, it was a page with a QR code which directed me to the Alexa app on my iPhone.

Logs:

[2/6/2024, 3:42:06 PM] [homebridge-alexa-smarthome] Restarting child bridge...
[2/6/2024, 3:42:06 PM] Got SIGTERM, shutting down child bridge process...
[2/6/2024, 3:42:11 PM] [homebridge-alexa-smarthome] Child bridge process ended
[2/6/2024, 3:42:11 PM] [homebridge-alexa-smarthome] Process Ended. Code: 143, Signal: null
[2/6/2024, 3:42:18 PM] [homebridge-alexa-smarthome] Restarting Process...
[2/6/2024, 3:42:19 PM] [homebridge-alexa-smarthome] Launched child bridge with PID 9771
[2/6/2024, 3:42:19 PM] Registering platform 'homebridge-alexa-smarthome.HomebridgeAlexaSmartHome'
[2/6/2024, 3:42:19 PM] [homebridge-alexa-smarthome] Loaded homebridge-alexa-smarthome v2.1.2 child bridge successfully
[2/6/2024, 3:42:19 PM] Loaded 0 cached accessories from cachedAccessories.0E48462701A1.
[2/6/2024, 3:42:19 PM] Homebridge v1.7.0 (HAP v0.11.1) (homebridge-alexa-smarthome) is running on port 55450.
[2/6/2024, 3:42:19 PM] [homebridge-alexa-smarthome] Failed to initialize connection to Alexa. - Please open http://xx.xx.xxx.xxx, xxxxxx.local, xxxxxx:xxxx/ with your browser and login to Amazon. The cookie will be output here after successfull login.
[2/6/2024, 3:42:19 PM] [homebridge-alexa-smarthome] After initialization - HttpError(Error getting smart home devices. Reason: Cookie invalid, Renew unsuccessful)

Plugin Config:

{
"devices": [],
"auth": {
"refreshInterval": 4,
"proxy": {
"clientHost": "xxx.xx.xxxx.xxxx, xxxxxx.local, xxxxxx",
"port": xxxx
}
},
"amazonDomain": "amazon.co.uk",
"language": "en-GB",
"performance": {
"cacheTTL": 30,
"backgroundRefresh": true
},
"debug": false,
"_bridge": {
"username": "xx:xx:xx:xx:xx:xx",
"port": xxxxx
},
"platform": "HomebridgeAlexaSmartHome"
}

Screenshots:

image

Environment:

  • Plugin Version: v2.1.2
  • Homebridge Version: Homebridge v1.7.0
  • Node.js Version: v20.9.0
  • NPM Version: Unknown
  • Operating System: Synology DSM Version 7.2.1-69057

'Heating Threshold Temperature': characteristic was supplied illegal value

After adding an air conditioner from Hisense, it keeps saying this message:

[homebridge-alexa-smarthome] This plugin generated a warning from the characteristic 'Heating Threshold Temperature': characteristic was supplied illegal value: number 28 exceeded maximum of 25. See https://homebridge.io/w/JtMGR for more info.

Logs:

[10/8/2023, 12:04:21 AM] [HomebridgeAlexaSmartHome] AC Comedor ::: Current state: [
  {
    "namespace": "Alexa.ThermostatController",
    "name": "thermostatMode",
    "value": "OFF"
  },
  {
    "namespace": "Alexa.TemperatureSensor",
    "name": "temperature",
    "value": {
      "value": 28,
      "scale": "CELSIUS"
    }
  },
  {
    "namespace": "Alexa.ThermostatController",
    "name": "targetSetpoint",
    "value": {
      "value": 24,
      "scale": "CELSIUS"
    }
  },
  {
    "namespace": "Alexa.EndpointHealth",
    "name": "connectivity",
    "value": {
      "value": "OK"
    }
  },
  {
    "namespace": "Alexa.ModeController",
    "name": "mode",
    "value": "AutoSpeed",
    "instance": "t_fan_speed_s"
  },
  {
    "namespace": "Alexa.PowerController",
    "name": "powerState",
    "value": "OFF"
  }
]
10/8/2023, 12:04:21 AM] [HomebridgeAlexaSmartHome] AC Comedor ::: Range capabilities: {}

Currently, 28º is the room temperature.

After reviewing the docs on the HB developers site, seems to be correct that 25 is the max value, but I do not understand why.

Thanks!! :)

Environment:

  • Plugin Version: 2.0.0
  • Homebridge Version: 1.6.1
  • Node.js Version: 18.18.0
  • NPM Version: 9.8.1
  • Operating System: macOS

HttpError

After linking the Amazon account, I saw the confirmation that my 'amazon alexa cookie was successfully retrieved' However, it did not show up in the logs. I tried uninstalling and reinstalling the plugin and now recieving a HttpError. Unable to load the localhost:2345 page now.

I did have an issue with the wrong IP address, which was later fixed in the configuration.

8/31/2023, 4:10:11 PM] Homebridge v1.6.1 (HAP v0.11.1) (Homebridge 632D) is running on port 51319.
[8/31/2023, 4:10:11 PM] [HomebridgeAlexaSmartHome] Failed to initialize. Error: You can try to get the cookie manually by opening http://196.168.1.5:2345/ with your browser.
at /var/lib/homebridge/node_modules/homebridge-alexa-smarthome/node_modules/alexa-cookie2/alexa-cookie.js:390:38
at Server. (/var/lib/homebridge/node_modules/homebridge-alexa-smarthome/node_modules/alexa-cookie2/lib/proxy.js:379:30)
at Object.onceWrapper (node:events:627:28)
at Server.emit (node:events:513:28)
at emitListeningNT (node:net:1774:10)
at processTicksAndRejections (node:internal/process/task_queues:81:21)
[8/31/2023, 4:10:11 PM] [HomebridgeAlexaSmartHome] After initialization - HttpError(Error getting smart home devices. Reason: Cookie invalid, Renew unsuccessful)
[8/31/2023, 4:15:12 PM] [Homebridge UI] Changes to config.json saved.
[8/31/2023, 4:30:53 PM] [Homebridge UI] Changes to config.json saved.
[8/31/2023, 4:41:40 PM] [Homebridge UI] Homebridge restart request received
[8/31/2023, 4:41:40 PM] [Homebridge UI] UI / Bridge settings have not changed; only restarting Homebridge process
[8/31/2023, 4:41:40 PM] [Homebridge UI] Sending SIGTERM to Homebridge
[8/31/2023, 4:41:40 PM] Got SIGTERM, shutting down Homebridge...
[8/31/2023, 4:41:45 PM] [HB Supervisor] Homebridge Process Ended. Code: 143, Signal: null
[8/31/2023, 4:41:50 PM] [HB Supervisor] Restarting Homebridge...
[8/31/2023, 4:41:50 PM] [HB Supervisor] Starting Homebridge with extra flags: -I -P /var/lib/homebridge/node_modules --strict-plugin-resolution
[8/31/2023, 4:41:50 PM] [HB Supervisor] Started Homebridge v1.6.1 with PID: 17150
[8/31/2023, 4:41:52 PM] Loaded config.json with 0 accessories and 2 platforms.
[8/31/2023, 4:41:52 PM] Loaded 0 cached accessories from cachedAccessories.
[8/31/2023, 4:41:52 PM] ---
[8/31/2023, 4:41:52 PM] Loaded plugin: [email protected]
[8/31/2023, 4:41:52 PM] Registering platform 'homebridge-alexa-smarthome.HomebridgeAlexaSmartHome'
[8/31/2023, 4:41:52 PM] ---
[8/31/2023, 4:41:52 PM] Loading 2 platforms...
[8/31/2023, 4:41:52 PM] [HomebridgeAlexaSmartHome] Initializing HomebridgeAlexaSmartHome platform...
Setup Payload:
X-HM://00241BD6RA51K
Enter this code with your HomeKit app on your iOS device to pair with Homebridge:

[8/31/2023, 4:41:53 PM] [HomebridgeAlexaSmartHome] Failed to initialize. Error: You can try to get the cookie manually by opening http://192.168.1.5:2345/ with your browser.
at /var/lib/homebridge/node_modules/homebridge-alexa-smarthome/node_modules/alexa-cookie2/alexa-cookie.js:390:38
at Server. (/var/lib/homebridge/node_modules/homebridge-alexa-smarthome/node_modules/alexa-cookie2/lib/proxy.js:379:30)
at Object.onceWrapper (node:events:627:28)
at Server.emit (node:events:513:28)
at emitListeningNT (node:net:1774:10)
at processTicksAndRejections (node:internal/process/task_queues:81:21)
[8/31/2023, 4:41:53 PM] [HomebridgeAlexaSmartHome] After initialization - HttpError(Error getting smart home devices. Reason: Cookie invalid, Renew unsuccessful)
[8/31/2023, 4:41:53 PM] Homebridge v1.6.1 (HAP v0.11.1) (Homebridge 632D) is running on port 51319.
[8/31/2023, 4:44:36 PM] [HomebridgeAlexaSmartHome] After initialization - HttpError(Error getting smart home device state. Reason: Timeout)
[8/31/2023, 4:45:30 PM] [Homebridge UI] Changes to config.json saved.
[8/31/2023, 4:46:26 PM] [Homebridge UI] Homebridge restart request received
[8/31/2023, 4:46:27 PM] [Homebridge UI] UI / Bridge settings have not changed; only restarting Homebridge process
[8/31/2023, 4:46:27 PM] [Homebridge UI] Sending SIGTERM to Homebridge
[8/31/2023, 4:46:27 PM] Got SIGTERM, shutting down Homebridge...
[8/31/2023, 4:46:32 PM] [HB Supervisor] Homebridge Process Ended. Code: 143, Signal: null
[8/31/2023, 4:46:37 PM] [HB Supervisor] Restarting Homebridge...
[8/31/2023, 4:46:37 PM] [HB Supervisor] Starting Homebridge with extra flags: -I -P /var/lib/homebridge/node_modules --strict-plugin-resolution
[8/31/2023, 4:46:37 PM] [HB Supervisor] Started Homebridge v1.6.1 with PID: 17339
[8/31/2023, 4:46:38 PM] Loaded config.json with 0 accessories and 2 platforms.
[8/31/2023, 4:46:38 PM] Loaded 0 cached accessories from cachedAccessories.
[8/31/2023, 4:46:38 PM] ---
[8/31/2023, 4:46:38 PM] Loaded plugin: [email protected]
[8/31/2023, 4:46:38 PM] Registering platform 'homebridge-alexa-smarthome.HomebridgeAlexaSmartHome'
[8/31/2023, 4:46:38 PM] ---
[8/31/2023, 4:46:38 PM] Loading 2 platforms...
[8/31/2023, 4:46:38 PM] [HomebridgeAlexaSmartHome] Initializing HomebridgeAlexaSmartHome platform...
Setup Payload:
X-HM://00241BD6RA51K
Enter this code with your HomeKit app on your iOS device to pair with Homebridge:

┌────────────┐     
│ 342-36-547 │     
└────────────┘     

[8/31/2023, 4:46:39 PM] Homebridge v1.6.1 (HAP v0.11.1) (Homebridge 632D) is running on port 51319.
[8/31/2023, 4:46:56 PM] [HomebridgeAlexaSmartHome] After initialization - HttpError(Error getting smart home device state. Reason: Timeout)
[8/31/2023, 4:50:25 PM] [Homebridge UI] Starting terminal session
[8/31/2023, 4:50:35 PM] [Homebridge UI] Terminal session ended.
[8/31/2023, 4:50:35 PM] [Homebridge UI] Homebridge restart request received
[8/31/2023, 4:50:35 PM] [Homebridge UI] UI / Bridge settings have not changed; only restarting Homebridge process
[8/31/2023, 4:50:35 PM] [Homebridge UI] Sending SIGTERM to Homebridge
[8/31/2023, 4:50:35 PM] Got SIGTERM, shutting down Homebridge...
[8/31/2023, 4:50:40 PM] [HB Supervisor] Homebridge Process Ended. Code: 143, Signal: null
[8/31/2023, 4:50:45 PM] [HB Supervisor] Restarting Homebridge...
[8/31/2023, 4:50:45 PM] [HB Supervisor] Starting Homebridge with extra flags: -I -P /var/lib/homebridge/node_modules --strict-plugin-resolution
[8/31/2023, 4:50:45 PM] [HB Supervisor] Started Homebridge v1.6.1 with PID: 17406
[8/31/2023, 4:50:46 PM] Loaded config.json with 0 accessories and 2 platforms.
[8/31/2023, 4:50:46 PM] Loaded 0 cached accessories from cachedAccessories.
[8/31/2023, 4:50:46 PM] ---
[8/31/2023, 4:50:46 PM] Loaded plugin: [email protected]
[8/31/2023, 4:50:46 PM] Registering platform 'homebridge-alexa-smarthome.HomebridgeAlexaSmartHome'
[8/31/2023, 4:50:46 PM] ---
[8/31/2023, 4:50:46 PM] Loading 2 platforms...
[8/31/2023, 4:50:46 PM] [HomebridgeAlexaSmartHome] Initializing HomebridgeAlexaSmartHome platform...
Setup Payload:
X-HM://00241BD6RA51K
Enter this code with your HomeKit app on your iOS device to pair with Homebridge:

[8/31/2023, 4:50:47 PM] Homebridge v1.6.1 (HAP v0.11.1) (Homebridge 632D) is running on port 51319.
[8/31/2023, 4:51:05 PM] [HomebridgeAlexaSmartHome] After initialization - HttpError(Error getting smart home device state. Reason: Timeout)
[8/31/2023, 4:51:24 PM] [Homebridge UI] Changes to config.json saved.
[8/31/2023, 4:51:24 PM] [Homebridge UI] Running Command: npm uninstall --save homebridge-alexa-smarthome
[8/31/2023, 4:51:36 PM] [Homebridge UI] Running Command: /opt/homebridge/lib/node_modules/homebridge-config-ui-x/plugin-upgrade-install.sh homebridge-alexa-smarthome 0.1.0 /var/lib/homebridge/node_modules
[8/31/2023, 4:51:57 PM] [Homebridge UI] Changes to config.json saved.
[8/31/2023, 4:53:13 PM] [Homebridge UI] Homebridge restart request received
[8/31/2023, 4:53:14 PM] [Homebridge UI] UI / Bridge settings have not changed; only restarting Homebridge process
[8/31/2023, 4:53:14 PM] [Homebridge UI] Sending SIGTERM to Homebridge
[8/31/2023, 4:53:14 PM] Got SIGTERM, shutting down Homebridge...
[8/31/2023, 4:53:19 PM] [HB Supervisor] Homebridge Process Ended. Code: 143, Signal: null
[8/31/2023, 4:53:24 PM] [HB Supervisor] Restarting Homebridge...
[8/31/2023, 4:53:24 PM] [HB Supervisor] Starting Homebridge with extra flags: -I -P /var/lib/homebridge/node_modules --strict-plugin-resolution
[8/31/2023, 4:53:24 PM] [HB Supervisor] Started Homebridge v1.6.1 with PID: 17517
[8/31/2023, 4:53:25 PM] Loaded config.json with 0 accessories and 2 platforms.
[8/31/2023, 4:53:25 PM] Loaded 0 cached accessories from cachedAccessories.
[8/31/2023, 4:53:25 PM] ---
[8/31/2023, 4:53:25 PM] Loaded plugin: [email protected]
[8/31/2023, 4:53:25 PM] Registering platform 'homebridge-alexa-smarthome.HomebridgeAlexaSmartHome'
[8/31/2023, 4:53:25 PM] ---
[8/31/2023, 4:53:25 PM] Loading 2 platforms...
[8/31/2023, 4:53:25 PM] [HomebridgeAlexaSmartHome] Initializing HomebridgeAlexaSmartHome platform...
Setup Payload:
X-HM://00241BD6RA51K
Enter this code with your HomeKit app on your iOS device to pair with Homebridge:

[8/31/2023, 4:53:26 PM] Homebridge v1.6.1 (HAP v0.11.1) (Homebridge 632D) is running on port 51319.
[8/31/2023, 4:53:44 PM] [HomebridgeAlexaSmartHome] After initialization - HttpError(Error getting smart home device state. Reason: Timeout)
[8/31/2023, 4:54:33 PM] [Homebridge UI] Changes to config.json saved.
[8/31/2023, 4:56:43 PM] [Homebridge UI] Changes to config.json saved.
[8/31/2023, 4:59:11 PM] [Homebridge UI] Homebridge restart request received
[8/31/2023, 4:59:11 PM] [Homebridge UI] UI / Bridge settings have not changed; only restarting Homebridge process
[8/31/2023, 4:59:11 PM] [Homebridge UI] Sending SIGTERM to Homebridge
[8/31/2023, 4:59:11 PM] Got SIGTERM, shutting down Homebridge...
[8/31/2023, 4:59:16 PM] [HB Supervisor] Homebridge Process Ended. Code: 143, Signal: null
[8/31/2023, 4:59:21 PM] [HB Supervisor] Restarting Homebridge...
[8/31/2023, 4:59:21 PM] [HB Supervisor] Starting Homebridge with extra flags: -I -P /var/lib/homebridge/node_modules --strict-plugin-resolution
[8/31/2023, 4:59:21 PM] [HB Supervisor] Started Homebridge v1.6.1 with PID: 18245
[8/31/2023, 4:59:23 PM] Loaded config.json with 0 accessories and 2 platforms.
[8/31/2023, 4:59:23 PM] Loaded 0 cached accessories from cachedAccessories.
[8/31/2023, 4:59:23 PM] ---
[8/31/2023, 4:59:23 PM] Loaded plugin: [email protected]
[8/31/2023, 4:59:23 PM] Registering platform 'homebridge-alexa-smarthome.HomebridgeAlexaSmartHome'
[8/31/2023, 4:59:23 PM] ---
[8/31/2023, 4:59:23 PM] Loading 2 platforms...
[8/31/2023, 4:59:23 PM] [HomebridgeAlexaSmartHome] Initializing HomebridgeAlexaSmartHome platform...
Setup Payload:
X-HM://00241BD6RA51K
Enter this code with your HomeKit app on your iOS device to pair with Homebridge:

┌────────────┐     
│ 342-36-547 │     
└────────────┘     

[8/31/2023, 4:59:23 PM] Homebridge v1.6.1 (HAP v0.11.1) (Homebridge 632D) is running on port 51319.
[8/31/2023, 4:59:41 PM] [HomebridgeAlexaSmartHome] After initialization - HttpError(Error getting smart home device state. Reason: Timeout)
[8/31/2023, 5:30:37 PM] [Homebridge UI] Changes to config.json saved.
[8/31/2023, 5:30:37 PM] [Homebridge UI] Running Command: npm uninstall --save homebridge-alexa-smarthome
[8/31/2023, 5:30:53 PM] [Homebridge UI] Running Command: /opt/homebridge/lib/node_modules/homebridge-config-ui-x/plugin-upgrade-install.sh homebridge-alexa-smarthome 0.1.0 /var/lib/homebridge/node_modules
[8/31/2023, 5:31:12 PM] [Homebridge UI] Changes to config.json saved.
[8/31/2023, 5:32:47 PM] [Homebridge UI] Homebridge restart request received
[8/31/2023, 5:32:47 PM] [Homebridge UI] UI / Bridge settings have not changed; only restarting Homebridge process
[8/31/2023, 5:32:47 PM] [Homebridge UI] Sending SIGTERM to Homebridge
[8/31/2023, 5:32:47 PM] Got SIGTERM, shutting down Homebridge...
[8/31/2023, 5:32:52 PM] [HB Supervisor] Homebridge Process Ended. Code: 143, Signal: null
[8/31/2023, 5:32:57 PM] [HB Supervisor] Restarting Homebridge...
[8/31/2023, 5:32:57 PM] [HB Supervisor] Starting Homebridge with extra flags: -I -P /var/lib/homebridge/node_modules --strict-plugin-resolution
[8/31/2023, 5:32:57 PM] [HB Supervisor] Started Homebridge v1.6.1 with PID: 18895
[8/31/2023, 5:32:58 PM] Loaded config.json with 0 accessories and 2 platforms.
[8/31/2023, 5:32:58 PM] Loaded 0 cached accessories from cachedAccessories.
[8/31/2023, 5:32:58 PM] ---
[8/31/2023, 5:32:59 PM] Loaded plugin: [email protected]
[8/31/2023, 5:32:59 PM] Registering platform 'homebridge-alexa-smarthome.HomebridgeAlexaSmartHome'
[8/31/2023, 5:32:59 PM] ---
[8/31/2023, 5:32:59 PM] Loading 2 platforms...
[8/31/2023, 5:32:59 PM] [HomebridgeAlexaSmartHome] Initializing HomebridgeAlexaSmartHome platform...
Setup Payload:
X-HM://00241BD6RA51K
Enter this code with your HomeKit app on your iOS device to pair with Homebridge:

┌────────────┐     
│ 342-36-547 │     
└────────────┘     

[8/31/2023, 5:32:59 PM] Homebridge v1.6.1 (HAP v0.11.1) (Homebridge 632D) is running on port 51319.
[8/31/2023, 5:33:17 PM] [HomebridgeAlexaSmartHome] After initialization - HttpError(Error getting smart home device state. Reason: Timeout)

Show the Homebridge logs here, remove any sensitive information.

Plugin Config:

{
"bridge": {
"name": "Homebridge 632D",
"username": "0E:69:7F:F9:63:2D",
"port": 51319,
"pin": "",
"advertiser": "avahi"
},
"accessories": [],
"platforms": [
{
"name": "Config",
"port": 8581,
"platform": "config"
},
{
"auth": {
"refreshInterval": 4,
"proxy": {
"clientHost": "192.168.1.5",
"port": 2345
}
},
"devices": [],
"amazonDomain": "amazon.com",
"language": "en-US",
"debug": false,
"platform": "HomebridgeAlexaSmartHome"
}
]
}

Screenshots:

Environment:

  • Plugin Version: homebridge-alexa-smarthome v0.1.0
  • Homebridge Version: [v1.6.1]
  • Node.js Version: [v18.16.0]
  • NPM Version:
  • Operating System: Raspbian

Invalid list of alexa devices

Describe Your Problem:
After setup, in the logs I get an error.

I want the devices to be imported into the plugin on start.

Logs:

[23/11/2023, 19:43:12] [Homebridge UI] Homebridge restart request received
[23/11/2023, 19:43:12] [Homebridge UI] UI / Bridge settings have not changed; only restarting Homebridge process
[23/11/2023, 19:43:12] [Homebridge UI] Sending SIGTERM to Homebridge
[23/11/2023, 19:43:12] Got SIGTERM, shutting down Homebridge...
[23/11/2023, 19:43:17] [HB Supervisor] Homebridge Process Ended. Code: 143, Signal: null
[23/11/2023, 19:43:22] [HB Supervisor] Restarting Homebridge...
[23/11/2023, 19:43:22] [HB Supervisor] Starting Homebridge with extra flags: -I -P /var/lib/homebridge/node_modules --strict-plugin-resolution
[23/11/2023, 19:43:22] [HB Supervisor] Started Homebridge v1.7.0 with PID: 47437
[23/11/2023, 19:43:22] Loaded config.json with 0 accessories and 2 platforms.
[23/11/2023, 19:43:22] Loaded 0 cached accessories from cachedAccessories.
[23/11/2023, 19:43:22] ---
[23/11/2023, 19:43:23] Loaded plugin: [email protected]
[23/11/2023, 19:43:23] Registering platform 'homebridge-alexa-smarthome.HomebridgeAlexaSmartHome'
[23/11/2023, 19:43:23] ---
[23/11/2023, 19:43:23] Loading 2 platforms...
[23/11/2023, 19:43:23] [HomebridgeAlexaSmartHome] Initializing HomebridgeAlexaSmartHome platform...
Setup Payload:
X-HM://0024NYXOUZSKR
Enter this code with your HomeKit app on your iOS device to pair with Homebridge:
                       
    ┌────────────┐     
    │ 722-**-*** │     
    └────────────┘     
                       
[23/11/2023, 19:43:23] Homebridge v1.7.0 (HAP v0.11.1) (Homebridge 3EA9) is running on port 51967.
[23/11/2023, 19:43:33] [HomebridgeAlexaSmartHome] After initialization - InvalidResponse(Invalid list of Alexa devices found for the current Alexa account: {
  "success": true
})

Plugin Config:

"devices": [
        "Bed Light"
    ],
    "auth": {
        "refreshInterval": 4,
        "proxy": {
            "clientHost": "192.168.*.***",
            "port": 9000
        }
    },
    "amazonDomain": "amazon.co.uk",
    "language": "en-US",
    "performance": {
        "cacheTTL": 30,
        "backgroundRefresh": false
    },
    "debug": false,
    "platform": "HomebridgeAlexaSmartHome"
}

Homebridge Config:

{
    "bridge": {
        "name": "Homebridge 3EA9",
        "username": "",
        "port": 51967,
        "pin": "722-",
        "advertiser": "avahi"
    },
    "accessories": [],
    "platforms": [
        {
            "name": "Config",
            "port": 8581,
            "platform": "config"
        },
        {
            "devices": [
                "Bed Light"
            ],
            "auth": {
                "refreshInterval": 4,
                "proxy": {
                    "clientHost": "192.168.",
                    "port": 9000
                }
            },
            "amazonDomain": "amazon.co.uk",
            "language": "en-US",
            "performance": {
                "cacheTTL": 30,
                "backgroundRefresh": false
            },
            "debug": false,
            "platform": "HomebridgeAlexaSmartHome"
        }
    ]
}

Screenshots:

Environment:

  • Plugin Version: v2.0.1
  • Homebridge Version: 1.7.0
  • Node.js Version: v18.18.2
  • NPM Version: 9.8.1
  • Operating System: Ubuntu

Read Thermostat Humidity

For the Amazon Smart Thermostats, the Alexa app reports the humidity detected at the thermostat. I'd like to be able to view this value in Homebridge, so I can set up automations for things like a humidifier/dehumidifier/closing a window.

list of accessories to add

First I thank you for your beautiful work.
I just wanted to ask you why the list of accessories to add doesn't work for me.

it is written that if nothing is specified, all accessories are added to homekit.

Screenshot 2023-12-26 alle 19 42 04

I tried to insert accessories such as sockets or lights, but to no avail, all the accessories present in Alexa are displayed on Homekit.
maybe it would be nice to have a real list to flag the various accessories you want to have, thanks.

Devices to add to accessories

I have 93 devices discovered from Alexa but they don't get put into accessories. I can manual add one from the list, but I thought it would auto populate them

[11/12/2023, 12:48:42 PM] [HomebridgeAlexaSmartHome] Initializing HomebridgeAlexaSmartHome platform...
[11/12/2023, 12:48:42 PM] [HomebridgeAlexaSmartHome] Initializing child bridge 0E:98:74:63:89:02
Setup Payload:
X-HM://00252KP08RVTH
Enter this code with your HomeKit app on your iOS device to pair with Homebridge:

┌────────────┐     
│ 968-17-560 │     
└────────────┘     

[11/12/2023, 12:48:42 PM] Homebridge v1.7.0 (HAP v0.11.1) (Homebridge 026F) is running on port 51544.
[11/12/2023, 12:48:43 PM] [homebridge-alexa-smarthome] Launched child bridge with PID 13368
[11/12/2023, 12:48:44 PM] Registering platform 'homebridge-alexa-smarthome.HomebridgeAlexaSmartHome'
[11/12/2023, 12:48:44 PM] [homebridge-alexa-smarthome] Loaded homebridge-alexa-smarthome v2.0.1 child bridge successfully
[11/12/2023, 12:48:44 PM] Loaded 1 cached accessories from cachedAccessories.0E9874638902.
[11/12/2023, 12:48:44 PM] [homebridge-alexa-smarthome] Loading accessory from cache: Living Room Lamp
[11/12/2023, 12:48:44 PM] [homebridge-alexa-smarthome] Alexa-Remote: cookie was provided
[11/12/2023, 12:48:44 PM] Homebridge v1.7.0 (HAP v0.11.1) (homebridge-alexa-smarthome) is running on port 34514.
[11/12/2023, 12:48:44 PM] [homebridge-alexa-smarthome] Alexa-Remote: Authentication checked: true
[11/12/2023, 12:48:45 PM] [homebridge-alexa-smarthome] Alexa-Remote: Change Base URL for API calls to na-api-alexa.amazon.com
[11/12/2023, 12:48:47 PM] [homebridge-alexa-smarthome] Successfully authenticated Alexa account.
[11/12/2023, 12:48:48 PM] [homebridge-alexa-smarthome] Found 93 devices connected to the current Alexa account.
[11/12/2023, 12:48:48 PM] [homebridge-alexa-smarthome] BEGIN devices connected to Alexa account

[
{
"displayName": "Dining Room lights",
"deviceType": "SWITCH"
},
{
"displayName": "Family Room Outlet",
"deviceType": "SWITCH"
},
{
"displayName": "Man Cave Lights",
"deviceType": "SWITCH"
},
{
"displayName": "RV Parking ",
"deviceType": "CAMERA"
},
{
"displayName": "Master Bedroom lights",
"deviceType": "SWITCH"
},
{
"displayName": "Jordan's Room Lights",
"deviceType": "LIGHT"
},
{
"displayName": "Patio",
"deviceType": "CONTACT_SENSOR"
},
{
"displayName": "Henry's Room Roku",
"deviceType": "TV"
},
{
"displayName": "Cat Lights",
"deviceType": "SWITCH"
},
{
"displayName": "Bonus Room Glow",
"deviceType": "LIGHT"
},
{
"displayName": "Coach Spot Door",
"deviceType": "CONTACT_SENSOR"
},
{
"displayName": "Stairs Lights",
"deviceType": "SWITCH"
},
{
"displayName": "Samsung Q60BA 60 TV",
"deviceType": "TV"
},
{
"displayName": "Garage Access",
"deviceType": "CONTACT_SENSOR"
},
{
"displayName": "Master Bedroom Echo Show",
"deviceType": "ALEXA_VOICE_ENABLED"
},
{
"displayName": "Man Cave Roku",
"deviceType": "TV"
},
{
"displayName": "Cabinet lights",
"deviceType": "SWITCH"
},
{
"displayName": "Henry's Echo Show",
"deviceType": "ALEXA_VOICE_ENABLED"
},
{
"displayName": "Front Door",
"deviceType": "CONTACT_SENSOR"
},
{
"displayName": "Henry’s LED",
"deviceType": "LIGHT"
},
{
"displayName": "Master Bath Shower",
"deviceType": "SWITCH"
},
{
"displayName": "Bathroom Flex light",
"deviceType": "LIGHT"
},
{
"displayName": "Porch lights",
"deviceType": "SWITCH"
},
{
"displayName": "Patio",
"deviceType": "CAMERA"
},
{
"displayName": "Monkey Lamp",
"deviceType": "LIGHT"
},
{
"displayName": "Close GD nightly",
"deviceType": "SCENE_TRIGGER"
},
{
"displayName": "Fan",
"deviceType": "SWITCH"
},
{
"displayName": "Arcade plug",
"deviceType": "SMARTPLUG"
},
{
"displayName": "TV",
"deviceType": "TV"
},
{
"displayName": "Foyer motion",
"deviceType": "MOTION_SENSOR"
},
{
"displayName": "Blue Lamp",
"deviceType": "SMARTPLUG"
},
{
"displayName": "Vader",
"deviceType": "SMARTPLUG"
},
{
"displayName": "Downstairs Bath Motion",
"deviceType": "SWITCH"
},
{
"displayName": "Back Yard",
"deviceType": "CAMERA"
},
{
"displayName": "Open Garage Door",
"deviceType": "SCENE_TRIGGER"
},
{
"displayName": "Man Cave",
"deviceType": "CAMERA"
},
{
"displayName": "Lady Light",
"deviceType": "LIGHT"
},
{
"displayName": "Front Door",
"deviceType": "SMARTLOCK"
},
{
"displayName": "Hallway lights",
"deviceType": "SWITCH"
},
{
"displayName": "iRoomba",
"deviceType": "VACUUM_CLEANER"
},
{
"displayName": "Lights",
"deviceType": "LIGHT"
},
{
"displayName": "Man Cave Left Front",
"deviceType": "LIGHT"
},
{
"displayName": "Q90",
"deviceType": "TV"
},
{
"displayName": "Man Cave Right Back",
"deviceType": "LIGHT"
},
{
"displayName": "Close Garage Door",
"deviceType": "SCENE_TRIGGER"
},
{
"displayName": "Sliding Door",
"deviceType": "CONTACT_SENSOR"
},
{
"displayName": "Jordan's Room Roku",
"deviceType": "TV"
},
{
"displayName": "White Lamp",
"deviceType": "LIGHT"
},
{
"displayName": "Driveway",
"deviceType": "CAMERA"
},
{
"displayName": "Home",
"deviceType": "THERMOSTAT"
},
{
"displayName": "Close Garage",
"deviceType": "SCENE_TRIGGER"
},
{
"displayName": "Wireless Router",
"deviceType": "NETWORK_HARDWARE"
},
{
"displayName": "Henry’s Room Lights",
"deviceType": "SWITCH"
},
{
"displayName": "Home",
"deviceType": "SECURITY_PANEL"
},
{
"displayName": "Beaverton Ring",
"deviceType": "SECURITY_PANEL"
},
{
"displayName": "Foyer lights",
"deviceType": "SWITCH"
},
{
"displayName": "Man Cave Door",
"deviceType": "SMARTLOCK"
},
{
"displayName": "Living Room",
"deviceType": "CAMERA"
},
{
"displayName": "TV light",
"deviceType": "SWITCH"
},
{
"displayName": "Kids Hall lights",
"deviceType": "SWITCH"
},
{
"displayName": "Master Bedroom Roku",
"deviceType": "TV"
},
{
"displayName": "Open Garage",
"deviceType": "SCENE_TRIGGER"
},
{
"displayName": "Family Room",
"deviceType": "CAMERA"
},
{
"displayName": "Default white",
"deviceType": "SCENE_TRIGGER"
},
{
"displayName": "Man Door",
"deviceType": "CONTACT_SENSOR"
},
{
"displayName": "Kitchen motion",
"deviceType": "MOTION_SENSOR"
},
{
"displayName": "TV",
"deviceType": "TV"
},
{
"displayName": "Kitchen Echo Show",
"deviceType": "OTHER"
},
{
"displayName": "Hallway Echo",
"deviceType": "ALEXA_VOICE_ENABLED"
},
{
"displayName": "TBH",
"deviceType": "CAMERA"
},
{
"displayName": "Patio Lights",
"deviceType": "SWITCH"
},
{
"displayName": "Master Bath tub",
"deviceType": "SWITCH"
},
{
"displayName": "Man Cave Door",
"deviceType": "CONTACT_SENSOR"
},
{
"displayName": "Man Cave Right Front",
"deviceType": "LIGHT"
},
{
"displayName": "Nook lights",
"deviceType": "SWITCH"
},
{
"displayName": "Living room Roku",
"deviceType": "TV"
},
{
"displayName": "Kitchen Lights",
"deviceType": "LIGHT"
},
{
"displayName": "Bonus Room",
"deviceType": "CAMERA"
},
{
"displayName": "Man Cave Left Back",
"deviceType": "LIGHT"
},
{
"displayName": "Bonus Room Lamp",
"deviceType": "LIGHT"
},
{
"displayName": "Laundry Room Motion",
"deviceType": "SWITCH"
},
{
"displayName": "Q90",
"deviceType": "TV"
},
{
"displayName": "Bonus Room Roku",
"deviceType": "TV"
},
{
"displayName": "Living Room Lamp",
"deviceType": "LIGHT"
}
]

END devices connected to Alexa account
[11/12/2023, 12:48:48 PM] [homebridge-alexa-smarthome] 0 devices provided in settings but 93 matching Alexa smart home devices were discovered.

Show the Homebridge logs here, remove any sensitive information.

{
"devices": [],
"auth": {
"refreshInterval": 4,
"proxy": {
"clientHost": "localhost",
"port": 7951
}
},
"amazonDomain": "amazon.com",
"language": "en-US",
"performance": {
"cacheTTL": 30,
"backgroundRefresh": false
},
"debug": true,
"_bridge": {
"username": "0E:98:74:63:89:02",
"port": 34514
},
"platform": "HomebridgeAlexaSmartHome"
}

Show your Homebridge config.json here, remove any sensitive information.

{
"bridge": {
"name": "Homebridge 026F",
"username": "0E:91:4E:49:CF:A0",
"port": 51544,
"pin": "968-17-560",
"advertiser": "avahi",
"bind": [
"enp0s3"
]
},
"accessories": [],
"platforms": [
{
"name": "Config",
"port": 8581,
"auth": "form",
"theme": "navi-blue",
"tempUnits": "c",
"lang": "auto",
"platform": "config"
},
{
"devices": [],
"auth": {
"refreshInterval": 4,
"proxy": {
"clientHost": "localhost",
"port": 7951
}
},
"amazonDomain": "amazon.com",
"language": "en-US",
"performance": {
"cacheTTL": 30,
"backgroundRefresh": false
},
"debug": true,
"_bridge": {
"username": "0E:98:74:63:89:02",
"port": 34514
},
"platform": "HomebridgeAlexaSmartHome"
}
]
}
Screenshots:

Environment:

Node v20.9.0
npm version 9.2.0

Can't control Thermostat after updating to 2.0.4

Describe The Bug:
After updating the plugin to v2.0.4 I can't control my Amazon Smart Thermostat anymore, rollbacking to v2.0.3 seems to fix the issue.
Through the application the Thermostat appears as unreachable, the cached temperature is shown alongside a status message "No response". No matter what kind of update you do in the details screen it will revert back to its previously cached state.

To Reproduce:

Just update to v2.0.4 while using a regular "Amazon Smart Thermostat", Device and Manufactorer Software Version both "16975104", then check the Home app. The thermostat will appear greyed out as it was off (which is not), a "No response" label is shown and whatever you do it will revert back to it's OFF state in its details. I also tried removing the device from HB cache but it didn't change.

As soon as you revert back to plugin v2.0.3 everything appears to be working perfectly without changing anything else.

Expected behavior:

Logs:

[12/12/2023, 14:53:02] [homebridge-alexa-smarthome] Launched child bridge with PID 12956
[12/12/2023, 14:53:02] Registering platform 'homebridge-alexa-smarthome.HomebridgeAlexaSmartHome'
[12/12/2023, 14:53:02] [homebridge-alexa-smarthome] Loaded homebridge-alexa-smarthome v2.0.4 child bridge successfully
[12/12/2023, 14:53:02] Loaded 1 cached accessories from cachedAccessories.0E8E7FEBD75C.
[12/12/2023, 14:53:02] [homebridge-alexa-smarthome] Loading accessory from cache: Thermostat
[12/12/2023, 14:53:02] [homebridge-alexa-smarthome] Alexa-Remote: cookie was provided
[12/12/2023, 14:53:03] Homebridge v1.7.0 (HAP v0.11.1) (homebridge-alexa-smarthome) is running on port 53204.
[12/12/2023, 14:53:03] [homebridge-alexa-smarthome] Alexa-Remote: Authentication checked: true
[12/12/2023, 14:53:03] [homebridge-alexa-smarthome] Alexa-Remote: Change Base URL for API calls to na-api-alexa.amazon.com
[12/12/2023, 14:53:04] [homebridge-alexa-smarthome] Successfully authenticated Alexa account.
[12/12/2023, 14:53:04] [homebridge-alexa-smarthome] Found 1 devices connected to the current Alexa account.
[12/12/2023, 14:53:04] [homebridge-alexa-smarthome] BEGIN devices connected to Alexa account

 [
  {
    "displayName": "Thermostat",
    "deviceType": "THERMOSTAT"
  }
]

END devices connected to Alexa account
[12/12/2023, 14:53:04] [homebridge-alexa-smarthome] Found all 1 devices in plugin settings.
[12/12/2023, 14:53:04] [homebridge-alexa-smarthome] Updating device states
[12/12/2023, 14:53:04] [homebridge-alexa-smarthome] Thermostat ::: Attempting to add accessory(s) for device: {
  "id": "2aafd215-a3d1-4c3c-9193-baef63b85a5a",
  "displayName": "Thermostat",
  "description": "Amazon Smart Thermostat",
  "supportedProperties": [
    "setTargetTemperature",
    "setModeValue@2aafd215-a3d1-4c3c-9193-baef63b85a5a_5",
    "setRangeValue@2aafd215-a3d1-4c3c-9193-baef63b85a5a_1",
    "setRangeValue@2aafd215-a3d1-4c3c-9193-baef63b85a5a_2"
  ],
  "supportedTriggers": [
    "temperatureSensorTrigger"
  ],
  "supportedOperations": [
    "setTargetTemperature",
    "setModeValue@2aafd215-a3d1-4c3c-9193-baef63b85a5a_5",
    "setRangeValue@2aafd215-a3d1-4c3c-9193-baef63b85a5a_1",
    "setRangeValue@2aafd215-a3d1-4c3c-9193-baef63b85a5a_2"
  ],
  "availability": "AVAILABLE",
  "icon": {
    "@iconType": "SmartHomeApplianceType",
    "value": "THERMOSTAT"
  },
  "providerData": {
    "enabled": true,
    "relationships": [],
    "categoryType": "APPLIANCE",
    "deviceType": "THERMOSTAT",
    "dmsDeviceIdentifiers": [
      {
        "deviceSerialNumber": "REDACTED",
        "deviceType": "A39QOBV8YPBZIY"
      }
    ]
  }
}
[12/12/2023, 14:53:04] [homebridge-alexa-smarthome] Thermostat ::: Current state: [
  {
    "namespace": "Alexa.ThermostatController.Schedule",
    "name": "scheduleEnabled",
    "value": true
  },
  {
    "namespace": "Alexa.ThermostatController",
    "name": "targetSetpoint",
    "value": {
      "value": 60,
      "scale": "FAHRENHEIT"
    }
  },
  {
    "namespace": "Alexa.Energy.DemandResponseController",
    "name": "eventStatus",
    "value": {
      "eventId": "",
      "status": "NO_EVENT",
      "activeSignals": []
    }
  },
  {
    "namespace": "Alexa.EndpointHealth",
    "name": "connectivity",
    "value": {
      "value": "OK"
    }
  },
  {
    "namespace": "Alexa.ThermostatController.Configuration",
    "name": "allowedTemperatureRange",
    "value": {
      "heating": {
        "minimum": {
          "value": 50,
          "scale": "FAHRENHEIT"
        },
        "maximum": {
          "value": 87,
          "scale": "FAHRENHEIT"
        }
      },
      "cooling": {
        "minimum": {
          "value": 53,
          "scale": "FAHRENHEIT"
        },
        "maximum": {
          "value": 90,
          "scale": "FAHRENHEIT"
        }
      }
    }
  },
  {
    "namespace": "Alexa.ThermostatController.Schedule",
    "name": "adaptiveRecoveryEnabled",
    "value": true
  },
  {
    "namespace": "Alexa.ThermostatController.Configuration",
    "name": "temperatureScale",
    "value": "FAHRENHEIT"
  },
  {
    "namespace": "Alexa.TemperatureSensor",
    "name": "preciseTemperature",
    "value": {
      "value": 64.859375,
      "scale": "FAHRENHEIT"
    }
  },
  {
    "namespace": "Alexa.HumiditySensor",
    "name": "relativeHumidity",
    "value": 32
  },
  {
    "namespace": "Alexa.ThermostatController.HVAC.Components",
    "name": "coolerOperation",
    "value": "OFF"
  },
  {
    "namespace": "Alexa.ThermostatController.HVAC.Components",
    "name": "fanOperation",
    "value": "OFF"
  },
  {
    "namespace": "Alexa.AutomationManagement",
    "name": "automationStatuses",
    "value": [
      {
        "status": "AUTOMATED",
        "capability": "Alexa.ThermostatController"
      }
    ]
  },
  {
    "namespace": "Alexa.ModeController",
    "name": "mode",
    "value": "2",
    "instance": "5"
  },
  {
    "namespace": "Alexa.ThermostatController",
    "name": "thermostatMode",
    "value": "HEAT"
  },
  {
    "namespace": "Alexa.RangeController",
    "name": "rangeValue",
    "value": 3,
    "instance": "1"
  },
  {
    "namespace": "Alexa.TemperatureSensor",
    "name": "temperature",
    "value": {
      "value": 65,
      "scale": "FAHRENHEIT"
    }
  },
  {
    "namespace": "Alexa.ThermostatController",
    "name": "adaptiveRecoveryStatus",
    "value": "INACTIVE"
  },
  {
    "namespace": "Alexa.ThermostatController.Configuration",
    "name": "setupState",
    "value": "REMOTE_CONTROL"
  },
  {
    "namespace": "Alexa.ThermostatController.HVAC.Components",
    "name": "primaryHeaterOperation",
    "value": "OFF"
  },
  {
    "namespace": "Alexa.RangeController",
    "name": "rangeValue",
    "value": 3,
    "instance": "2"
  },
  {
    "namespace": "Alexa.RangeController",
    "name": "rangeValue",
    "value": 3,
    "instance": "3"
  },
  {
    "namespace": "Alexa.RangeController",
    "name": "rangeValue",
    "value": 75,
    "instance": "8"
  },
  {
    "namespace": "Alexa.RangeController",
    "name": "rangeValue",
    "value": 3,
    "instance": "6"
  },
  {
    "namespace": "Alexa.RangeController",
    "name": "rangeValue",
    "value": 68,
    "instance": "7"
  }
]
[12/12/2023, 14:53:04] [homebridge-alexa-smarthome] Thermostat ::: Range capabilities: {}
[12/12/2023, 14:53:04] [homebridge-alexa-smarthome] Restored existing accessory from cache: Thermostat
[12/12/2023, 14:53:07] [homebridge-alexa-smarthome] Obtained device states from cache
[12/12/2023, 14:53:07] [homebridge-alexa-smarthome] Thermostat - Get current temperature result: 18.3
[12/12/2023, 14:53:07] [homebridge-alexa-smarthome] Obtained device states from cache
[12/12/2023, 14:53:07] [homebridge-alexa-smarthome] Obtained device states from cache
[12/12/2023, 14:53:07] [homebridge-alexa-smarthome] Thermostat - Get power - DeviceOffline(ENDPOINT_UNREACHABLE)
[12/12/2023, 14:53:07] [homebridge-alexa-smarthome] Thermostat - Get temperature units result: 1
[12/12/2023, 14:53:07] [homebridge-alexa-smarthome] Obtained device states from cache
[12/12/2023, 14:53:07] [homebridge-alexa-smarthome] Thermostat - Get target temperature result: 15.6
[12/12/2023, 14:53:27] [homebridge-alexa-smarthome] Obtained device states from cache
[12/12/2023, 14:53:27] [homebridge-alexa-smarthome] Thermostat - Get power - DeviceOffline(ENDPOINT_UNREACHABLE)
[12/12/2023, 14:53:28] [homebridge-alexa-smarthome] Obtained device states from cache
[12/12/2023, 14:53:28] [homebridge-alexa-smarthome] Thermostat - Get power - DeviceOffline(ENDPOINT_UNREACHABLE)
[12/12/2023, 14:53:30] [homebridge-alexa-smarthome] Obtained device states from cache
[12/12/2023, 14:53:30] [homebridge-alexa-smarthome] Obtained device states from cache
[12/12/2023, 14:53:30] [homebridge-alexa-smarthome] Thermostat - Get power - DeviceOffline(ENDPOINT_UNREACHABLE)
[12/12/2023, 14:53:30] [homebridge-alexa-smarthome] Thermostat - Get target temperature result: 15.6
[12/12/2023, 14:53:30] [homebridge-alexa-smarthome] Obtained device states from cache
[12/12/2023, 14:53:30] [homebridge-alexa-smarthome] Thermostat - Get current temperature result: 18.3
[12/12/2023, 14:53:33] [homebridge-alexa-smarthome] Obtained device states from cache
[12/12/2023, 14:53:33] [homebridge-alexa-smarthome] Thermostat - Get current temperature result: 18.3
[12/12/2023, 14:53:33] [homebridge-alexa-smarthome] Obtained device states from cache
[12/12/2023, 14:53:33] [homebridge-alexa-smarthome] Thermostat - Get target temperature result: 15.6
[12/12/2023, 14:53:33] [homebridge-alexa-smarthome] Obtained device states from cache
[12/12/2023, 14:53:33] [homebridge-alexa-smarthome] Thermostat - Get power - DeviceOffline(ENDPOINT_UNREACHABLE)

[12/12/2023, 14:53:42] [homebridge-alexa-smarthome] Thermostat - Triggered set target temperature: 18.900000000000002

[12/12/2023, 14:53:50] [homebridge-alexa-smarthome] Obtained device states from cache

[12/12/2023, 14:53:50] [homebridge-alexa-smarthome] Thermostat - Get temperature units result: 1

[12/12/2023, 14:53:50] [homebridge-alexa-smarthome] Obtained device states from cache

[12/12/2023, 14:53:50] [homebridge-alexa-smarthome] Thermostat - Get power - DeviceOffline(ENDPOINT_UNREACHABLE)

[12/12/2023, 14:53:51] [homebridge-alexa-smarthome] Obtained device states from cache

[12/12/2023, 14:53:51] [homebridge-alexa-smarthome] Thermostat - Get power - DeviceOffline(ENDPOINT_UNREACHABLE)

[12/12/2023, 14:53:52] [homebridge-alexa-smarthome] Obtained device states from cache

[12/12/2023, 14:53:52] [homebridge-alexa-smarthome] Thermostat - Get current temperature result: 18.3

[12/12/2023, 14:53:52] [homebridge-alexa-smarthome] Obtained device states from cache

[12/12/2023, 14:53:52] [homebridge-alexa-smarthome] Thermostat - Get target temperature result: 18.9

[12/12/2023, 14:53:52] [homebridge-alexa-smarthome] Obtained device states from cache

[12/12/2023, 14:53:52] [homebridge-alexa-smarthome] Obtained device states from cache

[12/12/2023, 14:53:52] [homebridge-alexa-smarthome] Thermostat - Get power - DeviceOffline(ENDPOINT_UNREACHABLE)

[12/12/2023, 14:53:53] [homebridge-alexa-smarthome] Thermostat - Get temperature units result: 1

[12/12/2023, 14:53:55] [homebridge-alexa-smarthome] Obtained device states from cache

[12/12/2023, 14:53:55] [homebridge-alexa-smarthome] Obtained device states from cache

[12/12/2023, 14:53:55] [homebridge-alexa-smarthome] Thermostat - Get power - DeviceOffline(ENDPOINT_UNREACHABLE)

[12/12/2023, 14:53:55] [homebridge-alexa-smarthome] Thermostat - Get target temperature result: 18.9

[12/12/2023, 14:53:55] [homebridge-alexa-smarthome] Obtained device states from cache

[12/12/2023, 14:53:55] [homebridge-alexa-smarthome] Thermostat - Get current temperature result: 18.3

[12/12/2023, 14:53:55] [homebridge-alexa-smarthome] Obtained device states from cache

[12/12/2023, 14:53:55] [homebridge-alexa-smarthome] Thermostat - Get temperature units result: 1

[12/12/2023, 14:54:11] [homebridge-alexa-smarthome] Obtained device states from cache

[12/12/2023, 14:54:11] [homebridge-alexa-smarthome] Obtained device states from cache

[12/12/2023, 14:54:11] [homebridge-alexa-smarthome] Thermostat - Get power - DeviceOffline(ENDPOINT_UNREACHABLE)

[12/12/2023, 14:54:11] [homebridge-alexa-smarthome] Thermostat - Get current temperature result: 18.3

[12/12/2023, 14:54:11] [homebridge-alexa-smarthome] Obtained device states from cache

[12/12/2023, 14:54:11] [homebridge-alexa-smarthome] Thermostat - Get target temperature result: 18.9

[12/12/2023, 14:54:11] [homebridge-alexa-smarthome] Obtained device states from cache

[12/12/2023, 14:54:11] [homebridge-alexa-smarthome] Thermostat - Get temperature units result: 1

[12/12/2023, 14:54:15] [homebridge-alexa-smarthome] Obtained device states from cache

[12/12/2023, 14:54:15] [homebridge-alexa-smarthome] Thermostat - Get power - DeviceOffline(ENDPOINT_UNREACHABLE)

[12/12/2023, 14:54:16] [homebridge-alexa-smarthome] Obtained device states from cache

[12/12/2023, 14:54:16] [homebridge-alexa-smarthome] Thermostat - Get power - DeviceOffline(ENDPOINT_UNREACHABLE)

[12/12/2023, 14:54:18] [homebridge-alexa-smarthome] Obtained device states from cache

[12/12/2023, 14:54:18] [homebridge-alexa-smarthome] Thermostat - Get target temperature result: 18.9

[12/12/2023, 14:54:18] [homebridge-alexa-smarthome] Obtained device states from cache

[12/12/2023, 14:54:18] [homebridge-alexa-smarthome] Thermostat - Get temperature units result: 1

[12/12/2023, 14:54:18] [homebridge-alexa-smarthome] Obtained device states from cache

[12/12/2023, 14:54:18] [homebridge-alexa-smarthome] Obtained device states from cache

[12/12/2023, 14:54:18] [homebridge-alexa-smarthome] Thermostat - Get power - DeviceOffline(ENDPOINT_UNREACHABLE)

[12/12/2023, 14:54:18] [homebridge-alexa-smarthome] Thermostat - Get current temperature result: 18.3

[12/12/2023, 14:54:20] [homebridge-alexa-smarthome] Obtained device states from cache

[12/12/2023, 14:54:20] [homebridge-alexa-smarthome] Obtained device states from cache

[12/12/2023, 14:54:20] [homebridge-alexa-smarthome] Thermostat - Get power - DeviceOffline(ENDPOINT_UNREACHABLE)

[12/12/2023, 14:54:20] [homebridge-alexa-smarthome] Thermostat - Get target temperature result: 18.9

[12/12/2023, 14:54:20] [homebridge-alexa-smarthome] Obtained device states from cache

[12/12/2023, 14:54:20] [homebridge-alexa-smarthome] Thermostat - Get current temperature result: 18.3

[12/12/2023, 14:54:20] [homebridge-alexa-smarthome] Obtained device states from cache

[12/12/2023, 14:54:20] [homebridge-alexa-smarthome] Thermostat - Get temperature units result: 1

It is worth noting that, while collecting this logs, I tried to change the temperature on the Home app and always got DeviceOffline(ENDPOINT_UNREACHABLE) to appear in the logs after each attempt.

Plugin Config:

{
    "devices": [
        "Thermostat"
    ],
    "auth": {
        "refreshInterval": 4,
        "proxy": {
            "clientHost": "REDACTED",
            "port": REDACTED
        }
    },
    "amazonDomain": "amazon.com",
    "language": "en-US",
    "performance": {
        "cacheTTL": 300,
        "backgroundRefresh": true
    },
    "debug": true,
    "_bridge": {
        "username": "REDACTED",
        "port": 53204
    },
    "platform": "HomebridgeAlexaSmartHome"
}

Screenshots:

E3CCFAA5-6276-4A9F-A182-153956643899_1_201_a
On v2.0.4

CF6171EB-953A-470C-B027-09148ACA644C_1_201_a
As soon as I rollback to v2.0.3, no other changes applied

Environment:

  • Plugin Version: 2.0.4
  • Homebridge Version: 1.7.0
  • Node.js Version: 20.10.0
  • NPM Version: 10.2.3
  • Operating System: Raspbian GNU/Linux Bullseye (11)

After Initialization - Httperror

I was able to successfully install the plugin and authenticate with Amazon, or so I thought. I am able to dictate which devices I want to add as accessories and when turning on debug logs as you can see, Homebridge notes all 8 devices are matched, however that is followed by the error: After initialization - HttpError(Error getting smart home device state. Reason: Timeout)

As a result, I can add the child bridge in HomeKit, but no accessories are available to add afterwards.

In the below debug logs I have removed the full listing of Alexa devices detected as there are 92, to reduce clutter,.

Logs:

10/10/2023, 7:37:30 PM] Homebridge v1.6.1 (HAP v0.11.1) (Homebridge 52BC) is running on port 51707.
[10/10/2023, 7:37:31 PM] [homebridge-alexa-smarthome] Launched child bridge with PID 2426
[10/10/2023, 7:37:31 PM] Registering platform 'homebridge-alexa-smarthome.HomebridgeAlexaSmartHome'
[10/10/2023, 7:37:31 PM] [homebridge-alexa-smarthome] Loaded homebridge-alexa-smarthome v2.0.0 child bridge successfully
[10/10/2023, 7:37:31 PM] Loaded 0 cached accessories from cachedAccessories.0EBE82D05A80.
[10/10/2023, 7:37:31 PM] [homebridge-alexa-smarthome] Alexa-Remote: cookie was provided
[10/10/2023, 7:37:31 PM] Homebridge v1.6.1 (HAP v0.11.1) (homebridge-alexa-smarthome) is running on port 51061.
[10/10/2023, 7:37:31 PM] [homebridge-alexa-smarthome] Alexa-Remote: Authentication checked: true
[10/10/2023, 7:37:31 PM] [Ring] Found the following locations:
[10/10/2023, 7:37:31 PM] [Ring]   locationId: b8950aeb-650d-4abc-bc6a-f4e4c8281c7d - Waterloo
[10/10/2023, 7:37:31 PM] [homebridge-alexa-smarthome] Alexa-Remote: Change Base URL for API calls to na-api-alexa.amazon.ca
[10/10/2023, 7:37:31 PM] [Ring] Configuring 3 cameras and 3 devices for location "Waterloo" - locationId: b8950aeb-650d-4abc-bc6a-f4e4c8281c7d
[10/10/2023, 7:37:31 PM] [Ring] Configured camera 58e16552-36da-40d3-9912-f39e54678fab lpd_v4 Front Door
[10/10/2023, 7:37:31 PM] [Ring] Configured camera 34643de9-5817-4985-ba47-bca1786cdfe7 cocoa_camera Driveway
[10/10/2023, 7:37:31 PM] [Ring] Configured camera 2ea0196e-a8d1-4744-bf17-c6a01e58e40f cocoa_camera Backyard
[10/10/2023, 7:37:31 PM] Front Door 02DF is running on port 51956.
[10/10/2023, 7:37:31 PM] Please add [Front Door 02DF] manually in Home app. Setup Code: 173-42-594
[10/10/2023, 7:37:31 PM] Driveway 12B8 is running on port 51957.
[10/10/2023, 7:37:31 PM] Please add [Driveway 12B8] manually in Home app. Setup Code: 173-42-594
[10/10/2023, 7:37:31 PM] Backyard 7419 is running on port 51958.
[10/10/2023, 7:37:31 PM] Please add [Backyard 7419] manually in Home app. Setup Code: 173-42-594
[10/10/2023, 7:37:32 PM] [myQ] myQ API: Switched to myQ cloud region: east.
[10/10/2023, 7:37:32 PM] [myQ] myQ API: Successfully connected to the myQ API using the east myQ cloud region.
[10/10/2023, 7:37:32 PM] [myQ] myQ API: Discovered device family garagedoor: Garage Door [Liftmaster WiFi GDO DC w/Battery Backup] (serial number: CG08602A3C79, gateway: GW0E000FAC74).
[10/10/2023, 7:37:32 PM] [myQ] myQ API: Discovered device family gateway: Garage Door (serial number: GW0E000FAC74).
[10/10/2023, 7:37:32 PM] [homebridge-alexa-smarthome] Successfully authenticated Alexa account.
[10/10/2023, 7:37:34 PM] [homebridge-alexa-smarthome] Found 92 devices connected to the current Alexa account.
[10/10/2023, 7:37:34 PM] [homebridge-alexa-smarthome] BEGIN devices connected to Alexa account

END devices connected to Alexa account
[10/10/2023, 7:37:34 PM] [homebridge-alexa-smarthome] Found all 8 devices in plugin settings.
[10/10/2023, 7:37:34 PM] [homebridge-alexa-smarthome] Updating device states
[10/10/2023, 7:37:49 PM] [homebridge-alexa-smarthome] After initialization - HttpError(Error getting smart home device state. Reason: Timeout)
[10/10/2023, 7:40:39 PM] [homebridge-alexa-smarthome] Updating device states
[10/10/2023, 7:43:29 PM] [homebridge-alexa-smarthome] Updating device states

Plugin Config:

{
    "bridge": {
        "name": "Homebridge 52BC",
        "username": "0E:38:31:A8:52:BC",
        "port": 51707,
        "pin": "173-42-594",
        "advertiser": "ciao",
        "bind": [
            "en0"
        ]
    },
    "accessories": [],
    "platforms": [
        {
            "name": "Config",
            "port": 3123,
            "auth": "form",
            "theme": "dark-mode-blue-grey",
            "tempUnits": "c",
            "lang": "auto",
            "platform": "config"
        },
        {
            "refreshToken": "----",
            "unbridgeCameras": true,
            "platform": "Ring"
        },
        {
            "email": "[email protected]",
            "password": "----",
            "name": "myQ",
            "platform": "myQ"
        },
        {
            "devices": [
                "Bedroom Speaker",
                "End Table Speaker",
                "Kitchen Display",
                "Living Room Display",
                "Office Display",
                "Backyard Plug 1",
                "Backyard Plug 2",
                "Bathroom Speaker"
            ],
            "auth": {
                "refreshInterval": 4,
                "proxy": {
                    "clientHost": "192.168.4.105",
                    "port": 9000
                }
            },
            "amazonDomain": "amazon.ca",
            "language": "en-CA",
            "performance": {
                "cacheTTL": 200,
                "backgroundRefresh": true
            },
            "debug": false,
            "_bridge": {
                "username": "0E:BE:82:D0:5A:80",
                "port": 51061
            },
            "platform": "HomebridgeAlexaSmartHome"
        }
    ]
}

Screenshots:

Environment:

  • Plugin Version: v2.0.0
  • Homebridge Version: v1.6.1
  • Node.js Version: v18.15.0
  • NPM Version: v9.6.4
  • Operating System: MacOS Ventura

Initial Configuration Issue - Alexa Login URL 404 Error

Describe Your Problem:

I have not been able to make it through the Initial configuration of this Homebridge Plugin. After successfully installing the Plugin in Homebridge, I entered my Proxy Client Host and selected a Proxy port as well as amazon domain. I then entered the URL found in my Homebridge log. This took me to an Amazon page with the text “404 Sorry, we couldn’t find that page. Don’t have the app installed? Download the Alexa App (link). Go to the Alexa App (link)”

This is clearly not the Amazon login page that I was intended to land on. Is there anything you can think of that I’m doing wrong?

In step

I’m trying to configure this Alexa Homebridge Plugin.

Logs:

17/09/2023, 13:36:52] [HomebridgeAlexasmartHome] Failed to initialize connection to Alexa.
You can try to get the cookie manually by opening http://Homebridge. local: 8887/ with your brow ser.
[17/09/2023, 13:36:521 [HomebridgeAlexaSmartHomelAfter initialization - HttpError(Error getti ng smart home devices. Reason: Cookie invalid, Renew unsuccessful)
[17/09/2023, 13:36:52] Homebridge v1.6.1 (HAP v0. 11.1) (Homebridge 649C) is running on port 51
876.

Show the Homebridge logs here, remove any sensitive information.

Plugin Config:

Show your Homebridge config.json here, remove any sensitive information.

{
"devices": [],
"auth": {
"refreshInterval": 4,
"proxy": {
"clientHost": "Homebridge.local",
"port": 8887
}
},
"amazonDomain": "amazon.com",
"language": "en-US",
"performance": {
"cacheTTL": 30,
"backgroundRefresh": false
},
"debug": false,
"platform": "HomebridgeAlexaSmartHome"
}
]

Screenshots:
image

Environment:

  • Plugin Version: v1.0.2
  • Homebridge Version: v1.6.1
  • Node.js Version: v18.7.1
  • NPM Version:
  • Operating System:
  • Raspbian

Danfoss Link Thermostat is recognized as a temperature Sensor

Describe The Bug:

Hi joeyhage,

I have eleven thermostats (Danfoss Link System) connected to Alexa and they are working fine (you can find four of them in the screenshot below under favorites). These thermostats are the only devices I control via Alexa. All my other smarthome stuff is controlled via HomeKit.
I wanted to use your plugin to transfer these thermostats to HomeKit. Unfortunately, the plugin recognizes them as temperature sensors.
Have I done something wrong or is it a bug?
Maybe there is one thing. The mode of the thermostats is not changeable in Alexa. The mode is always „Benutzerdefiniert“, in English „custom“.

Best regards,

Patrick

To Reproduce:

Expected behavior:

Logs:

[04/11/2023, 15:22:50] [HB Supervisor] Starting Homebridge with extra flags: -I -P /var/lib/homebridge/node_modules --strict-plugin-resolution
[04/11/2023, 15:22:50] [HB Supervisor] Started Homebridge v1.7.0 with PID: 8077
[04/11/2023, 15:22:51] Loaded config.json with 4 accessories and 6 platforms.
[04/11/2023, 15:22:51] Loaded 12 cached accessories from cachedAccessories.
[04/11/2023, 15:22:51] ---
[04/11/2023, 15:22:52] Loaded plugin: [email protected]
[04/11/2023, 15:22:52] Registering platform 'homebridge-alexa-smarthome.HomebridgeAlexaSmartHome'
[04/11/2023, 15:22:52] ---
[04/11/2023, 15:22:52] Loaded plugin: [email protected]
[04/11/2023, 15:22:52] Registering platform 'homebridge-deconz.deCONZ'
[04/11/2023, 15:22:52] ---
[04/11/2023, 15:22:52] Loaded plugin: [email protected]
[04/11/2023, 15:22:52] Registering accessory 'homebridge-dummy.DummySwitch'
[04/11/2023, 15:22:52] ---
[04/11/2023, 15:22:52] Loaded plugin: [email protected]
[04/11/2023, 15:22:52] Registering platform 'homebridge-eveatmo.eveatmo'
[04/11/2023, 15:22:52] ---
[04/11/2023, 15:22:52] Loaded plugin: [email protected]
[04/11/2023, 15:22:52] Registering platform 'homebridge-harmony.HarmonyHubWebSocket'
[04/11/2023, 15:22:52] ---
[04/11/2023, 15:22:52] Loaded plugin: [email protected]
[04/11/2023, 15:22:52] Registering platform 'homebridge-shelly-switch.Shelly Switch'
[04/11/2023, 15:22:52] ---
[04/11/2023, 15:22:52] Loading 6 platforms...
[04/11/2023, 15:22:52] [Warmwasser] Initializing Shelly Switch platform...
[04/11/2023, 15:22:52] [Wetterstation] Initializing eveatmo platform...
[04/11/2023, 15:22:52] [Wetterstation] Authenticating using 'refresh_token' grant
[04/11/2023, 15:22:55] [Wetterstation] Loading new data from API for: weatherstation
[04/11/2023, 15:22:55] [deCONZ] Initializing deCONZ platform...
[04/11/2023, 15:22:55] [deCONZ] homebridge-deconz v1.0.6, node v18.16.0, homebridge v1.7.0, homebridge-lib v6.6.4
[04/11/2023, 15:22:55] [deCONZ] warning: recommended version: node v20.9.0
[04/11/2023, 15:22:55] [deCONZ] warning: recommended version: homebridge v1.6.1
[04/11/2023, 15:22:55] [HarmonyHub] Initializing HarmonyHubWebSocket platform...
[04/11/2023, 15:22:55] [HarmonyHub] HarmonyPlatform Init
[04/11/2023, 15:22:55] [HomebridgeAlexaSmartHome] Initializing HomebridgeAlexaSmartHome platform...
[04/11/2023, 15:22:55] Loading 4 accessories...
[04/11/2023, 15:22:55] [Fenstersensor] Initializing DummySwitch accessory...
[04/11/2023, 15:22:55] [Fenstersensor] Setting switch to false
[04/11/2023, 15:22:55] [WW Danfoss] Initializing DummySwitch accessory...
[04/11/2023, 15:22:55] [WW Danfoss] Setting switch to false
[04/11/2023, 15:22:55] [WW Timer 10 Minuten] Initializing DummySwitch accessory...
[04/11/2023, 15:22:55] [WW Timer 10 Minuten] Setting switch to false
[04/11/2023, 15:22:55] [Jemand zuhause] Initializing DummySwitch accessory...
[04/11/2023, 15:22:55] [Jemand zuhause] Setting switch to true
[04/11/2023, 15:22:55] [deCONZ] Phoscon-GW: dresden elektronik deCONZ / ConBee II gateway v2.24.1
[04/11/2023, 15:22:55] [deCONZ] Phoscon-GW: warning: recommended version: deCONZ v2.23.2
[04/11/2023, 15:22:55] [HarmonyHub] DidFinishLaunching
[04/11/2023, 15:22:55] [HarmonyHub] (HarmonyHub)INFO - Loading activities...
[04/11/2023, 15:22:55] [HarmonyHub] (undefined)WARNING - platform undefined is empty
[04/11/2023, 15:22:55] [HarmonyHub] INFO - starting hub discovery
[04/11/2023, 15:22:55] [HomebridgeAlexaSmartHome] Alexa-Remote: cookie was provided
[04/11/2023, 15:22:56] [deCONZ] hardware: Raspberry Pi 4B 1.4 (8GB)
[04/11/2023, 15:22:56] [deCONZ] os: Raspbian GNU/Linux 11 (bullseye) [32 bit]
[04/11/2023, 15:22:56] [deCONZ] restored 3 accessories from cache
[04/11/2023, 15:22:56] [deCONZ] ui server: listening on http://127.0.0.1:43333/
[04/11/2023, 15:22:56] [HomebridgeAlexaSmartHome] Alexa-Remote: Authentication checked: true
[04/11/2023, 15:22:56] Initializing platform accessory 'Walküre (Wohnzimmer) Wohnzimmer'...
[04/11/2023, 15:22:56] Initializing platform accessory 'Walküre (Wohnzimmer) Hobbyraum'...
[04/11/2023, 15:22:56] Initializing platform accessory 'Walküre (Wohnzimmer) Außen'...
Setup Payload:
X-HM://0023YKLJ1BGMN
Enter this code with your HomeKit app on your iOS device to pair with Homebridge:
                       
    ┌────────────┐     
    │ 296-28-413 │     
    └────────────┘     
                       
[04/11/2023, 15:22:56] Homebridge v1.7.0 (HAP v0.11.1) (Homebridge A981) is running on port XYZXY.
[04/11/2023, 15:22:56] [HomebridgeAlexaSmartHome] Alexa-Remote: Change Base URL for API calls to eu-api-alexa.amazon.de
[04/11/2023, 15:22:57] [deCONZ] Phoscon-GW: websocket connected to ws://XYZ.XYZ.XYZ.XY:
[04/11/2023, 15:22:57] [HomebridgeAlexaSmartHome] Successfully authenticated Alexa account.
[04/11/2023, 15:22:57] [HomebridgeAlexaSmartHome] Found 11 devices connected to the current Alexa account.
[04/11/2023, 15:22:57] [HomebridgeAlexaSmartHome] BEGIN devices connected to Alexa account

 [
  {
    "displayName": "EG Wohnen",
    "deviceType": "TEMPERATURE_SENSOR"
  },
  {
    "displayName": "OG Kind",
    "deviceType": "TEMPERATURE_SENSOR"
  },
  {
    "displayName": "UG Bad",
    "deviceType": "TEMPERATURE_SENSOR"
  },
  {
    "displayName": "OG Bad",
    "deviceType": "TEMPERATURE_SENSOR"
  },
  {
    "displayName": "UG Gast",
    "deviceType": "TEMPERATURE_SENSOR"
  },
  {
    "displayName": "EG HWR",
    "deviceType": "TEMPERATURE_SENSOR"
  },
  {
    "displayName": "OG Bad HK",
    "deviceType": "TEMPERATURE_SENSOR"
  },
  {
    "displayName": "EG Flur",
    "deviceType": "TEMPERATURE_SENSOR"
  },
  {
    "displayName": "OG Arbeit",
    "deviceType": "TEMPERATURE_SENSOR"
  },
  {
    "displayName": "OG Schlafen",
    "deviceType": "TEMPERATURE_SENSOR"
  },
  {
    "displayName": "EG WC",
    "deviceType": "TEMPERATURE_SENSOR"
  }
]

END devices connected to Alexa account
[04/11/2023, 15:22:57] [HomebridgeAlexaSmartHome] 0 devices provided in settings but 11 matching Alexa smart home devices were discovered.
[04/11/2023, 15:22:57] [HomebridgeAlexaSmartHome] Updating device states
[04/11/2023, 15:22:57] [HarmonyHub] (HarmonyHub)INFO - Discovered Activity : PowerOff
[04/11/2023, 15:22:57] [HarmonyHub] (HarmonyHub)INFO - Discovered Activity : Radio Charivari
[04/11/2023, 15:22:57] [HarmonyHub] (HarmonyHub)INFO - Discovered Activity : Fernsehen
[04/11/2023, 15:22:57] [HarmonyHub] (HarmonyHub)INFO - Discovered Activity : Apple TV
[04/11/2023, 15:22:57] [HarmonyHub] (HarmonyHub)INFO - Discovered Activity : Spielen
[04/11/2023, 15:22:57] [HarmonyHub] (HarmonyHub)INFO - Discovered Activity : Radio Bayern 3
[04/11/2023, 15:22:57] [HarmonyHub] (HarmonyHub)INFO - Discovered Activity : Radio Antenne Bayern
[04/11/2023, 15:22:57] [HarmonyHub] (HarmonyHub)INFO - Discovered Activity : Musik streamen
[04/11/2023, 15:22:58] [deCONZ] Phoscon-GW: warning: BJ Wandsender 1: exposed by draft ddf
[04/11/2023, 15:22:58] [deCONZ] Phoscon-GW: BJ Wandsender 1: add accessory
[04/11/2023, 15:22:58] [deCONZ] BJ Wandsender 1: Busch-Jaeger RB01 v0.0.0 (4 resources)
[04/11/2023, 15:22:58] [deCONZ] Phoscon-GW: warning: BJ Wandsender 2: exposed by draft ddf
[04/11/2023, 15:22:58] [deCONZ] Phoscon-GW: BJ Wandsender 2: add accessory
[04/11/2023, 15:22:58] [deCONZ] BJ Wandsender 2: Busch-Jaeger RB01 v0.0.0 (4 resources)
[04/11/2023, 15:22:58] [deCONZ] Phoscon-GW: dresden elektronik deCONZ / ConBee II gateway v2.24.1 (2 accessories for 6 devices, 8 resources)
[04/11/2023, 15:22:58] [deCONZ] Phoscon-GW: warning: recommended version: deCONZ v2.23.2
[04/11/2023, 15:22:58] [deCONZ] Phoscon-GW: migration: /resourcelinks/1: 8 resources
[04/11/2023, 15:22:58] [deCONZ] 1 gateways
[04/11/2023, 15:22:58] [deCONZ] created debug dump file /var/lib/homebridge/homebridge-deconz.json.gz
[04/11/2023, 15:22:59] [HomebridgeAlexaSmartHome] Initialize Devices - UnsupportedDeviceError(Unsupported device: EG Wohnen with type: TEMPERATURE_SENSOR. Currently supported device types are: LIGHT,SWITCH,SMARTLOCK,SMARTPLUG,THERMOSTAT,ALEXA_VOICE_ENABLED,AIR_QUALITY_MONITOR.)
[04/11/2023, 15:22:59] [HomebridgeAlexaSmartHome] Initialize Devices - UnsupportedDeviceError(Unsupported device: OG Kind with type: TEMPERATURE_SENSOR. Currently supported device types are: LIGHT,SWITCH,SMARTLOCK,SMARTPLUG,THERMOSTAT,ALEXA_VOICE_ENABLED,AIR_QUALITY_MONITOR.)
[04/11/2023, 15:22:59] [HomebridgeAlexaSmartHome] Initialize Devices - UnsupportedDeviceError(Unsupported device: UG Bad with type: TEMPERATURE_SENSOR. Currently supported device types are: LIGHT,SWITCH,SMARTLOCK,SMARTPLUG,THERMOSTAT,ALEXA_VOICE_ENABLED,AIR_QUALITY_MONITOR.)
[04/11/2023, 15:22:59] [HomebridgeAlexaSmartHome] Initialize Devices - UnsupportedDeviceError(Unsupported device: OG Bad with type: TEMPERATURE_SENSOR. Currently supported device types are: LIGHT,SWITCH,SMARTLOCK,SMARTPLUG,THERMOSTAT,ALEXA_VOICE_ENABLED,AIR_QUALITY_MONITOR.)
[04/11/2023, 15:22:59] [HomebridgeAlexaSmartHome] Initialize Devices - UnsupportedDeviceError(Unsupported device: UG Gast with type: TEMPERATURE_SENSOR. Currently supported device types are: LIGHT,SWITCH,SMARTLOCK,SMARTPLUG,THERMOSTAT,ALEXA_VOICE_ENABLED,AIR_QUALITY_MONITOR.)
[04/11/2023, 15:22:59] [HomebridgeAlexaSmartHome] Initialize Devices - UnsupportedDeviceError(Unsupported device: EG HWR with type: TEMPERATURE_SENSOR. Currently supported device types are: LIGHT,SWITCH,SMARTLOCK,SMARTPLUG,THERMOSTAT,ALEXA_VOICE_ENABLED,AIR_QUALITY_MONITOR.)
[04/11/2023, 15:22:59] [HomebridgeAlexaSmartHome] Initialize Devices - UnsupportedDeviceError(Unsupported device: OG Bad HK with type: TEMPERATURE_SENSOR. Currently supported device types are: LIGHT,SWITCH,SMARTLOCK,SMARTPLUG,THERMOSTAT,ALEXA_VOICE_ENABLED,AIR_QUALITY_MONITOR.)
[04/11/2023, 15:22:59] [HomebridgeAlexaSmartHome] Initialize Devices - UnsupportedDeviceError(Unsupported device: EG Flur with type: TEMPERATURE_SENSOR. Currently supported device types are: LIGHT,SWITCH,SMARTLOCK,SMARTPLUG,THERMOSTAT,ALEXA_VOICE_ENABLED,AIR_QUALITY_MONITOR.)
[04/11/2023, 15:22:59] [HomebridgeAlexaSmartHome] Initialize Devices - UnsupportedDeviceError(Unsupported device: OG Arbeit with type: TEMPERATURE_SENSOR. Currently supported device types are: LIGHT,SWITCH,SMARTLOCK,SMARTPLUG,THERMOSTAT,ALEXA_VOICE_ENABLED,AIR_QUALITY_MONITOR.)
[04/11/2023, 15:22:59] [HomebridgeAlexaSmartHome] Initialize Devices - UnsupportedDeviceError(Unsupported device: OG Schlafen with type: TEMPERATURE_SENSOR. Currently supported device types are: LIGHT,SWITCH,SMARTLOCK,SMARTPLUG,THERMOSTAT,ALEXA_VOICE_ENABLED,AIR_QUALITY_MONITOR.)
[04/11/2023, 15:22:59] [HomebridgeAlexaSmartHome] Initialize Devices - UnsupportedDeviceError(Unsupported device: EG WC with type: TEMPERATURE_SENSOR. Currently supported device types are: LIGHT,SWITCH,SMARTLOCK,SMARTPLUG,THERMOSTAT,ALEXA_VOICE_ENABLED,AIR_QUALITY_MONITOR.)
[04/11/2023, 15:23:01] [HarmonyHub] INFO - stopping hub discovery, hubs found : 192.168.178.25|Harmony Hub|17095773

Plugin Config:

{
    "bridge": {
        "name": "Homebridge A981",
        "username": "0E:24:41:4A:A9:81",
        "port": XYZXY,
        "pin": "[296-28-413](tel:296-28-413)",
        "advertiser": "avahi"
    },
    "accessories": [
        {
            "name": "Fenstersensor",
            "stateful": true,
            "dimmer": false,
            "reverse": false,
            "time": 10000,
            "random": false,
            "resettable": false,
            "brightness": 0,
            "disableLogging": false,
            "accessory": "DummySwitch"
        },
        {
            "name": "WW Danfoss",
            "stateful": true,
            "dimmer": false,
            "reverse": false,
            "time": 1000,
            "random": false,
            "resettable": false,
            "brightness": 0,
            "disableLogging": false,
            "accessory": "DummySwitch"
        },
        {
            "name": "WW Timer 10 Minuten",
            "stateful": true,
            "dimmer": false,
            "reverse": false,
            "time": 1000,
            "random": false,
            "resettable": false,
            "brightness": 0,
            "disableLogging": false,
            "accessory": "DummySwitch"
        },
        {
            "name": "Jemand zuhause",
            "stateful": true,
            "dimmer": false,
            "reverse": false,
            "time": 1000,
            "random": false,
            "resettable": false,
            "brightness": 0,
            "disableLogging": false,
            "accessory": "DummySwitch"
        }
    ],
    "platforms": [
        {
            "name": "Config",
            "port": XYZY,
            "platform": "config"
        },
        {
            "platform": "Shelly Switch",
            "name": "Warmwasser",
            "notification_port": XYZXY,
            "devices": [
                {
                    "name": "WW Pumpenrelais",
                    "ip": "XYZ.XYZ.XYZ.XY",
                    "authetification": "xyzxyzxyz"
                }
            ]
        },
        {
            "name": "Wetterstation",
            "ttl": 540,
            "extra_co2_sensor": false,
            "weatherstation": true,
            "airquality": false,
            "co2_alert_threshold": 2000,
            "log_info_msg": true,
            "auth": {
                "client_id": "XYZXYZ",
                "client_secret": "XYZXYZXYZ,
                "grant_type": "refresh_token",
                "refresh_token": "XYZXYZ"
            },
            "platform": "eveatmo"
        },
        {
            "name": "deCONZ",
            "platform": "deCONZ"
        },
        {
            "name": "HarmonyHub",
            "hubIP": "XYZ.XYZ.XYZ.XY",
            "DELAY_BEFORE_RETRY_AFTER_NETWORK_LOSS": 60000,
            "HUB_CONNECT_TIMEOUT": 10000,
            "HUB_SEND_TIMEOUT": 30000,
            "TVAccessory": false,
            "sortInput": 0,
            "switchAccessories": true,
            "showTurnOffActivity": "inverted",
            "otherPlatforms": [
                {
                    "TVAccessory": false,
                    "sortInput": 0
                }
            ],
            "platform": "HarmonyHubWebSocket"
        },
        {
            "devices": [],
            "auth": {
                "refreshInterval": 4,
                "proxy": {
                    "clientHost": "homebridge.local",
                    "port": 9000
                }
            },
            "amazonDomain": "amazon.de",
            "language": "de-DE",
            "performance": {
                "cacheTTL": 30,
                "backgroundRefresh": false
            },
            "debug": true,
            "platform": "HomebridgeAlexaSmartHome"
        }
    ]
}

Screenshots:
image

Environment:

  • Plugin Version: v2.0.1
  • Homebridge Version: v1.7.0
  • Node.js Version: v18.16.0
  • NPM Version: don’t know, but its new installed less than one week ago
  • Operating System: Raspbian

Cannot log into Alexa account for first time setup

I am trying to setup this plugin but I do not ever get the Amazon login screen as shown in the setup instructions. I only ever get the webpage with the QR code that attempts to install the Alexa app. When I click on the "Go To Alexa App" button on that page, the Alexa app is brought to fore ground but then nothing happens.
I tried to turn off JS and clear cookies as instructed in common-issues, but then localhost:7002 landing page says I need to turn on JS to it to work.
So to summarize, I can neither login to Alexa using the credential dialog box in the browser nor login/get the cookie using the Alexa app.

Logs:
[11/27/2023, 9:57:23 AM] [homebridge-alexa-smarthome] Failed to initialize connection to Alexa. - You can try to get the cookie manually by opening http://localhost:7002/ with your browser.
[11/27/2023, 9:57:23 AM] [homebridge-alexa-smarthome] Alexa-Remote: Authentication check Error, try re-init
[11/27/2023, 9:57:23 AM] [homebridge-alexa-smarthome] Alexa-Remote: No cookie given, generate one
[11/27/2023, 9:57:23 AM] [homebridge-alexa-smarthome] Alexa-Remote: Error from retrieving cookies
[11/27/2023, 9:57:23 AM] [homebridge-alexa-smarthome] Alexa-Remote: Authentication check Error and renew unsuccessful. STOP
[11/27/2023, 9:57:23 AM] [homebridge-alexa-smarthome] After initialization - HttpError(Error getting smart home devices. Reason: Cookie invalid, Renew unsuccessful)
[11/27/2023, 10:01:23 AM] [homebridge-alexa-smarthome] Updating device states
[11/27/2023, 10:01:23 AM] [homebridge-alexa-smarthome] Alexa-Remote: Authentication check Error, try re-init
[11/27/2023, 10:01:23 AM] [homebridge-alexa-smarthome] Alexa-Remote: No cookie given, generate one
[11/27/2023, 10:01:23 AM] [homebridge-alexa-smarthome] Alexa-Remote: Error from retrieving cookies
[11/27/2023, 10:01:23 AM] [homebridge-alexa-smarthome] Alexa-Remote: Authentication check Error and renew unsuccessful. STOP

Plugin Config:
{
"devices": [],
"auth": {
"refreshInterval": 4,
"proxy": {
"clientHost": "localhost",
"port": 7002
}
},
"language": "en-US",
"performance": {
"cacheTTL": 300,
"backgroundRefresh": true
},
"debug": true,
"_bridge": {
"username": "0E:81:E1:5D:A2:A5",
"port": 41780
},
"platform": "HomebridgeAlexaSmartHome"
}

Screenshots:

Environment:

  • Plugin Version: v2.0.1
  • Homebridge Version: v1.7.0
  • Node.js Version: v20.9.0
  • NPM Version: v10.1.0
  • Operating System: Docker

getting cookie

when i restart the homebridge raspberry i get an error message about needing a cookie. in your documentation it says to logon to my browser to get the cookie but it does not say which device's browser to use (windows, my raspberry, my phone...)

Issue with HomeBridge.local:9000

Describe Your Problem:

when I go to homebridge.local:9000 I land on an Alexa page but then when I click the link it takes me to the App Store listing for the Alexa app. It’s already installed so I click the open button; the app opens but without any context of what I was trying to do. I do have my Amazon account set up with google authenticator .

Logs:

It’s just the standard logs you see during initial setup. 

Plugin Config:

Attached 

Screenshots:

Environment:

  • Plugin Version: v2.1.2
  • Homebridge Version: homebridge -V?
  • Node.js Version: node -v20.10.0
    IMG_2138
    -->
  • NPM Version:
  • Operating System: Raspbian GNU/Linux Bullseye (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.