Comments (3)
You can simply do this by adding in config.schema.json:
"default": {
"title": "Default On",
"type": "boolean",
"default": false,
"description": "The switch's default state is on (after homebridge start)."
},
Reverse should not start the switch at homebridge start, it should only change when timer is executed, so description of Reverse should be:
"description": "The delay timer will start when the switch is turned off (normaly when turned on)."
And in index.js, add in line 22:
this.default = config.default;
And replace:
if (this.reverse) this._service.setCharacteristic(Characteristic.On, true);`
to:
if (this.default) this._service.setCharacteristic(Characteristic.On, true);
from homebridge-dummy.
included in #84
from homebridge-dummy.
hi trying to do this. unclear how to add this into the switch. what do I add to where in the config to make this work. this is a screenshot of one of my dummy and I would like it to be off on Homebridge reboot. either stay off if off or turn off if on.
Thanks
from homebridge-dummy.
Related Issues (20)
- Can't change room? HOT 1
- iOS 16.2 Beta 1 HOT 1
- Child Bridge HOT 2
- Random not responding in home app HOT 1
- Dummy Switch + Geo Location resulting in random trigger of dummy switch HOT 3
- No response in HomeKit after HomePods updated to 16.2
- Is this project abandoned? Use Delay Switch plugin.
- How to Limit Dimmer Values HOT 1
- Resettable timed switch HOT 16
- Feature request: timed fader HOT 7
- Feature request: dimmer option to set timeout HOT 1
- Homebridge HOT 1
- Switch delay in minutes and hours HOT 2
- Delay reset HOT 1
- Logs
- Big update HOT 41
- Home App not refreshing HOT 1
- How do you get a new dummy switch to show up? HOT 1
- Plugin icon
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebridge-dummy.