joeyhage / homebridge-alexa-smarthome

Connect Alexa devices to HomeKit
MIT License
84 stars 20 forks source link

Red Error Messages in Log - InvalidResponse(State not available) #160

Open colinrblake opened 3 months ago

colinrblake commented 3 months ago

Describe The Bug:

I upgraded from 2.2.0 Alpha 5 to the released 2.2.0 and now I'm getting lots of red messages in my Homebridge status log (I don't think I had these before). However, the lights in question DO operate correctly from the Home app.

To Reproduce:

Nothing special to reproduce. As soon as I restart Homebridge the errors appear.

Expected behavior:

No error messages.

Logs:

[7/25/2024, 1:18:01 PM] [HomebridgeAlexaSmartHome] Patio Light 1 - Get saturation - InvalidResponse(State not available)
[7/25/2024, 1:18:01 PM] [HomebridgeAlexaSmartHome] Porch Light 2 - Get saturation - InvalidResponse(State not available)
[7/25/2024, 1:18:01 PM] [HomebridgeAlexaSmartHome] Patio Light 1 - Get hue - InvalidResponse(State not available)
[7/25/2024, 1:18:01 PM] [HomebridgeAlexaSmartHome] Porch Light 2 - Get hue - InvalidResponse(State not available)
[7/25/2024, 1:18:02 PM] [HomebridgeAlexaSmartHome] Patio Light 2 - Get saturation - InvalidResponse(State not available)
[7/25/2024, 1:18:02 PM] [HomebridgeAlexaSmartHome] Patio Light 2 - Get hue - InvalidResponse(State not available)
[7/25/2024, 1:18:03 PM] [HomebridgeAlexaSmartHome] Porch Light 3 - Get saturation - InvalidResponse(State not available)
[7/25/2024, 1:18:03 PM] [HomebridgeAlexaSmartHome] Porch Light 3 - Get hue - InvalidResponse(State not available)
[7/25/2024, 1:18:03 PM] [HomebridgeAlexaSmartHome] Patio Light 3 - Get hue - InvalidResponse(State not available)
[7/25/2024, 1:18:03 PM] [HomebridgeAlexaSmartHome] Patio Light 3 - Get saturation - InvalidResponse(State not available)
[7/25/2024, 1:18:04 PM] [HomebridgeAlexaSmartHome] Porch Light 1 - Get saturation - InvalidResponse(State not available)
[7/25/2024, 1:18:04 PM] [HomebridgeAlexaSmartHome] Porch Light 1 - Get hue - InvalidResponse(State not available)

Plugin Config:

{
    "devices": [
        "Porch Light 1",
        "Porch Light 2",
        "Porch Light 3",
        "Patio Light 1",
        "Patio Light 2",
        "Patio Light 3",
        "Porch Lights Switch",
        "Patio Light Switch"
    ],
    "auth": {
        "refreshInterval": 4,
        "proxy": {
            "clientHost": "colins-mac-mini.local",
            "port": 8987
        }
    },
    "amazonDomain": "amazon.com",
    "language": "en-US",
    "performance": {
        "cacheTTL": 300,
        "backgroundRefresh": true
    },
    "debug": false,
    "platform": "HomebridgeAlexaSmartHome"
}

Screenshots:

N/A

Environment:

joeyhage commented 2 months ago

@colinrblake This seems like an issue with the Alexa skill that links these lights. What is the manufacturer of these lights and what Alexa skill are they linked through?

winstonstwn commented 2 months ago

I'm also having this issue, and it seems to affect every device included. I mostly used all hue lights and it still manage to control properly albeit the errors in log. However, the broadlink ac control that I linked now gives "no response" :\

image

colinrblake commented 2 months ago

@joeyhage These are Sylvania lights and I linked them to Alexa via the Sylvania app on my iPhone. On Alexa I have the "Sylvania Smart Wifi" skill.

SheldorSheldonDZ commented 2 months ago

@joeyhage I have the same issue with all of my lights which have a change-color option in Alexa app. When using the newest version (v2.2.1) I get this message for all of my lights. Those lights are connect through different skills in Alexa and they are not all from the same manufacture. Downgrading to v.2.1.5 helped me to "fix" it for now.

Aekung commented 2 months ago

Confirmed the issue. Temporary fixed with @SheldorSheldonDZ method by downgrading to v2.1.5.