NorthernMan54 / homebridge-alexa

Expose your homebridge controlled devices to Amazon Alexa.
https://www.homebridge.ca
441 stars 77 forks source link

Alexa not turning off all items in the routine #633

Open jimcords opened 1 month ago

jimcords commented 1 month ago

Current Situation

Whenever I add items to a routine and call this routine to run, Alexa does not turn off all the lights, while manually from inside the app I can turn them on and off, as well if I tell alexa turn off Living room and Living room is set as a group it turns it off, but when i tell her Goodnight and this routine includes living room and bedroom it randomly leaves a couple of lights open in each group and not the same ones they change each time and if i tell her good night like 4 or 5 times it eventually turns off everything

I have fresh installed my server with everything from scratch again even created a new alexa account but without success. running openhab with homebridge all latest.

Logs

[5/19/2024, 5:37:53 PM] [Alexa] PowerController TurnOff 0E:2B:EE:4E:25:C8 null null
[5/19/2024, 5:37:53 PM] [Alexa] PowerController TurnOff 0E:2B:EE:4E:25:C8 null null
[5/19/2024, 5:37:53 PM] [Alexa] PowerController TurnOff 0E:2B:EE:4E:25:C8 null null
[5/19/2024, 5:37:53 PM] [Alexa] PowerController TurnOff 0E:2B:EE:4E:25:C8 null null
[5/19/2024, 5:37:53 PM] [openHAB2-Complete] Received push with new state for item S1LED2: OFF
[5/19/2024, 5:37:53 PM] [openHAB2-Complete] Setting new transformed state for item S1LED2: false
[5/19/2024, 5:37:53 PM] [openHAB2-Complete] Updating state of Reception Light with item S1LED7 to OFF
[5/19/2024, 5:37:53 PM] [Alexa] PowerController TurnOff 0E:2B:EE:4E:25:C8 null null
[5/19/2024, 5:37:53 PM] [openHAB2-Complete] Received push with new state for item S1LED7: OFF
[5/19/2024, 5:37:53 PM] [openHAB2-Complete] Setting new transformed state for item S1LED7: false

Configuration

{
            "name": "Alexa",
            "username": "------",
            "password": "------",
            "pin": "676-94-869",
            "routines": true,
            "blind": true,
            "door": true,
            "refresh": 900,
            "keepalive": 5,
            "CloudTransport": "mqtts",
            "deviceListHandling": "none",
            "_bridge": {
                "username": "0E:D7:ED:E3:FE:29",
                "port": 51962
            },
            "platform": "Alexa"
        }

Environment

Process Supervisor

hb-service

Additional Context

No response

NorthernMan54 commented 1 month ago

@jimcords Can you share a bit more of the log from this. If you could get a log from just using the routine and from individual commands. The log you shared did not indicate that any errors occurred. Also in your routine, how devices are you controlling at the same time.

jimcords commented 1 month ago

This is the log for the routine [5/19/2024, 6:15:48 PM] [openHAB2-Complete] Updating state of Reception Middle Light 2 with item S2LED1 to OFF [5/19/2024, 6:15:48 PM] [openHAB2-Complete] Received push with new state for item S2LED1: OFF [5/19/2024, 6:15:48 PM] [openHAB2-Complete] Setting new transformed state for item S2LED1: false [5/19/2024, 6:15:48 PM] [openHAB2-Complete] Updating state of Reception Stairs Applique with item S10LED6 to OFF [5/19/2024, 6:15:48 PM] [openHAB2-Complete] Updating state of Reception Hidden Light with item S1LED8 to OFF [5/19/2024, 6:15:48 PM] [openHAB2-Complete] Received push with new state for item S10LED6: OFF [5/19/2024, 6:15:48 PM] [openHAB2-Complete] Setting new transformed state for item S10LED6: false [5/19/2024, 6:15:48 PM] [Alexa] PowerController TurnOff 0E:2B:EE:4E:25:C8 null null [5/19/2024, 6:15:48 PM] [openHAB2-Complete] Received push with new state for item S1LED8: OFF [5/19/2024, 6:15:48 PM] [openHAB2-Complete] Setting new transformed state for item S1LED8: false [5/19/2024, 6:15:48 PM] [openHAB2-Complete] Updating state of Reception Applique with item S1LED6 to OFF [5/19/2024, 6:15:48 PM] [Alexa] PowerController TurnOff 0E:2B:EE:4E:25:C8 null null [5/19/2024, 6:15:48 PM] [Alexa] PowerController TurnOff 0E:2B:EE:4E:25:C8 null null [5/19/2024, 6:15:48 PM] [openHAB2-Complete] Updating state of Reception Spots 2 with item S1LED3 to OFF [5/19/2024, 6:15:48 PM] [openHAB2-Complete] Updating state of Reception Middle Light 1 with item S1LED7 to OFF [5/19/2024, 6:15:48 PM] [Alexa] PowerController TurnOff 0E:2B:EE:4E:25:C8 null null [5/19/2024, 6:15:49 PM] [Alexa] PowerController TurnOff 0E:2B:EE:4E:25:C8 null null [5/19/2024, 6:15:49 PM] [Alexa] PowerController TurnOff 0E:2B:EE:4E:25:C8 null null [5/19/2024, 6:15:49 PM] [openHAB2-Complete] Received push with new state for item S1LED6: OFF [5/19/2024, 6:15:49 PM] [openHAB2-Complete] Setting new transformed state for item S1LED6: false [5/19/2024, 6:15:49 PM] [openHAB2-Complete] Received push with new state for item S1LED3: OFF [5/19/2024, 6:15:49 PM] [openHAB2-Complete] Setting new transformed state for item S1LED3: false [5/19/2024, 6:15:49 PM] [openHAB2-Complete] Received push with new state for item S1LED7: OFF [5/19/2024, 6:15:49 PM] [openHAB2-Complete] Setting new transformed state for item S1LED7: false [5/19/2024, 6:15:49 PM] [openHAB2-Complete] Updating state of Reception Stairs Hidden Lights with item S10LED5 to OFF [5/19/2024, 6:15:49 PM] [openHAB2-Complete] Updating state of Reception Spots 1 with item S1LED2 to OFF [5/19/2024, 6:15:49 PM] [Alexa] PowerController TurnOff 0E:2B:EE:4E:25:C8 null null [5/19/2024, 6:15:49 PM] [openHAB2-Complete] Updating state of Living Room Spots 2 with item S7LED8 to OFF [5/19/2024, 6:15:49 PM] [openHAB2-Complete] Updating state of Living Room Hidden Light with item S7LED6 to OFF [5/19/2024, 6:15:49 PM] [Alexa] PowerController TurnOff 0E:2B:EE:4E:25:C8 null null [5/19/2024, 6:15:49 PM] [Alexa] PowerController TurnOff 0E:2B:EE:4E:25:C8 null null [5/19/2024, 6:15:49 PM] [openHAB2-Complete] Received push with new state for item S10LED5: OFF [5/19/2024, 6:15:49 PM] [openHAB2-Complete] Setting new transformed state for item S10LED5: false [5/19/2024, 6:15:49 PM] [openHAB2-Complete] Received push with new state for item S1LED2: OFF [5/19/2024, 6:15:49 PM] [openHAB2-Complete] Setting new transformed state for item S1LED2: false [5/19/2024, 6:15:49 PM] [openHAB2-Complete] Received push with new state for item S7LED8: OFF [5/19/2024, 6:15:49 PM] [openHAB2-Complete] Setting new transformed state for item S7LED8: false [5/19/2024, 6:15:49 PM] [Alexa] PowerController TurnOff 0E:2B:EE:4E:25:C8 null null [5/19/2024, 6:15:49 PM] [openHAB2-Complete] Received push with new state for item S7LED6: OFF [5/19/2024, 6:15:49 PM] [openHAB2-Complete] Setting new transformed state for item S7LED6: false

running individual lights for living room only [5/19/2024, 6:14:46 PM] [openHAB2-Complete] Updating state of Living Room Spots 2 with item S7LED8 to ON [5/19/2024, 6:14:46 PM] [openHAB2-Complete] Received push with new state for item S7LED8: ON [5/19/2024, 6:14:46 PM] [openHAB2-Complete] Setting new transformed state for item S7LED8: true [5/19/2024, 6:14:46 PM] [Alexa] PowerController TurnOn 0E:2B:EE:4E:25:C8 null null [5/19/2024, 6:14:47 PM] [openHAB2-Complete] Updating state of Living Room Spots 1 with item S8LED1 to ON [5/19/2024, 6:14:47 PM] [openHAB2-Complete] Received push with new state for item S8LED1: ON [5/19/2024, 6:14:47 PM] [openHAB2-Complete] Setting new transformed state for item S8LED1: true [5/19/2024, 6:14:47 PM] [Alexa] PowerController TurnOn 0E:2B:EE:4E:25:C8 null null [5/19/2024, 6:14:47 PM] [openHAB2-Complete] Updating state of Living Room Hidden Light with item S7LED6 to ON [5/19/2024, 6:14:47 PM] [openHAB2-Complete] Received push with new state for item S7LED6: ON [5/19/2024, 6:14:47 PM] [openHAB2-Complete] Setting new transformed state for item S7LED6: true [5/19/2024, 6:14:47 PM] [Alexa] PowerController TurnOn 0E:2B:EE:4E:25:C8 null null [5/19/2024, 6:14:48 PM] [openHAB2-Complete] Updating state of Living Room Hallway Spots with item S6LED1 to ON [5/19/2024, 6:14:48 PM] [openHAB2-Complete] Received push with new state for item S6LED1: ON [5/19/2024, 6:14:48 PM] [openHAB2-Complete] Setting new transformed state for item S6LED1: true [5/19/2024, 6:14:48 PM] [Alexa] PowerController TurnOn 0E:2B:EE:4E:25:C8 null null [5/19/2024, 6:14:49 PM] [openHAB2-Complete] Updating state of Living Room Hallway Hidden light with item S6LED2 to ON [5/19/2024, 6:14:49 PM] [openHAB2-Complete] Received push with new state for item S6LED2: ON [5/19/2024, 6:14:49 PM] [openHAB2-Complete] Setting new transformed state for item S6LED2: true [5/19/2024, 6:14:49 PM] [Alexa] PowerController TurnOn 0E:2B:EE:4E:25:C8 null null [5/19/2024, 6:14:50 PM] [openHAB2-Complete] Updating state of Living Room Center with item S8LED3 to ON [5/19/2024, 6:14:50 PM] [openHAB2-Complete] Received push with new state for item S8LED3: ON [5/19/2024, 6:14:50 PM] [openHAB2-Complete] Setting new transformed state for item S8LED3: true [5/19/2024, 6:14:50 PM] [Alexa] PowerController TurnOn 0E:2B:EE:4E:25:C8 null null

jimcords commented 1 month ago

in the routines I am controlling 2 groups i just send command power > off

i tried adding the items individually to the routine not as a group and the same issue occurs, this started to show a couple of weeks ago, and today i rebuilt the server from scratch but with no luck to fix this issue

NorthernMan54 commented 1 month ago

When you try the routine, are the number of power controller messages the same as the number of devices you have in the routine?

jimcords commented 1 month ago

@NorthernMan54 10 power controller messages and devices in routine are 14 devices

NorthernMan54 commented 1 month ago

That difference in the number of messages is odd, as each device controlled via homebridge in the routine should receive a power controller message.

To assist in triaging this issue, I would need to look at the cloud server logs associated with your account when you are testing the routine. Could you try the following

Don't use Alexa for about 15 minutes, use the routine once, wait about 10 minutes, try the routine again. And can you share the logs from your setup at the same time.

For this I would need to know your login credential so I can find your account. To securely share this, you could use the homebridge discord server - https://discord.gg/kqNCe2D and you can find me in the homebridge-alexa channel