Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

startOnReboot doesn't take effect #74

Open
maisun opened this issue Dec 26, 2023 · 4 comments
Open

startOnReboot doesn't take effect #74

maisun opened this issue Dec 26, 2023 · 4 comments

Comments

@maisun
Copy link

maisun commented Dec 26, 2023

After upgrading to 3.2.5 I notice startOnReboot=true doesn't seem to take effect. After restarting HomeBridge all my delayed switches stays OFF. An example configuration is as below:
{
"name": "Kitchen Delayed Switch",
"delay": 20,
"delayUnit": "m",
"flipSensorState": false,
"startOnReboot": true,
"debug": false,
"_bridge": {
"username": "XXXXXXX",
"port": XXXXX
},
"accessory": "DelaySwitch"
}

@laurika-lewis
Copy link

Have the same issue after upgrading to v3.2.5

"startOnReboot" do not turn on the switch after restarting Homebridge.

@mkz212
Copy link

mkz212 commented Jan 21, 2024

I did PR with fix + some extra #78

@sucitram
Copy link

PR #78 appears to be based on the original nfarina/homebridge-dummy repository rather than nitaybz/homebridge-delay-switch.
I have created an alternate PR with minimal changes #82

A temporary fix can be applied locally:

git clone https://github.com/sucitram/homebridge-delay-switch.git
sudo cp homebridge-delay-switch/index.js /var/lib/homebridge/node_modules/homebridge-delay-switch/.
sudo cp homebridge-delay-switch/config.schema.json /var/lib/homebridge/node_modules/homebridge-delay-switch/.
sudo chown homebridge:homebridge /var/lib/homebridge/node_modules/homebridge-delay-switch

The above commands assume that homebridge runs as 'homebridge' user and is installed to /var/lib/homebridge

@Michkal1991
Copy link

I have the same problem. Any recommendations?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants