I have a smart plug and a dumb lamp, and it's connected by Zigbee to the hub. It's been working for a couple weeks, but I had this experience recently where it didn't turn off at 10pm like I expected it to.
How do I even go about debugging something like this? Is it the Zigbee connection, or something else? Please advise.
Thanks. I used the Basic Rules app to make the rule. Is that what you mean?
I tried to check the logs but I guess I didn't know the right place to look. I found the log of the smart plug, but it just .... has a void. The only entry in the log is "physical turn off" or something like that, when I clicked it off myself.
If only as an exercise in knowing how to work this out, if you check the logs section of the web Ui there is a tab that includes hub events like this, it may be worth familiarising yourself with that.
With such a (potentially) long time between triggering and 10pm, it is probably a good idea. Certainly not to say never use wait's, but maybe just for shorter windows of time.
EDIT: This is not entirely true, see my post below
But since we have a few more details now than in the original post, I might try two three things:
Just open the Basic Rule you created and hit Done to re-initalize things (note that this will cancel the wait--i.e., it won't turn off at 10 PM until it starts over again, which looks like sunset-30 for you, so maybe wait until sometime that isn't between these two times if you want to test the 10 PM thing).
Check the App Status (gear icon) page, particularly the "Event Subscriptions" and "Scheduled Jobs" sectoion. In your case, it looks like you should see a scheduled job for either sunset-30 or 10 PM, depending on when you look.
Make sure your time and location (which are used to calculate sun times) are correct in Settings > Hub Details.
I recreated this rule two more time and both are scheduling the Waits correctly. Not sure why the first one didn't work. @user1378 for testing purposes, can you change your On and Wait times to see if it schedules everything correctly? Make sure logging is on.
Unfortunately it probably doesn't, at least not for me...
It's certainly odd that turning the lamp on manually worked but the rule didn't. If you physically turned the lamp on and there was no log of that I would suspect communication issues with the device and HE, but the fact you see the manual turning on recorded, that kind of puts that in doubt.
If you open the device edit page in HE (TIP - access this by clicking the INFO icon / text in the logs), do you see the Basic Rule in the In Use By section at the bottom? Not expecting this to be the issue...
Can't believe I didn't ask earlier, but what driver are you using for the device?
Regarding the communication issues: when I say "manually turned it on", I mean that I clicked the physical button on the device, not through the app. That being said, I am also able to toggle it via the app (if I click "On" or "Off" from the device page, it responds).
edit: I'm wondering if there could be some intermittent zigbee connectivity problem? If there is, how would I diagnose that?