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

Added a function to turn on the oven lights, updated ReadMe #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ While operating in native mode, the developer must adhere to the following rules
- [range.glassTouchErrors](#rangeglasstoucherrors)
- [range.leds](#rangeleds)
- [range.buzzerTone](#rangebuzzertone)
- [range.ovenLight](#rangeoventlight)
1. [Appendix](#appendix)
- [Enabled state](#enabled-state)
- [Probe presence](#probe-presence)
Expand Down Expand Up @@ -1024,6 +1025,17 @@ greenBean.connect("range", function(range) {
});
```

#### *range.ovenLight*
The oven light is a write-only integer value of (0 = Off or 1 = On).
*Note that this functionality is only available in FCT mode (see [range.fctMode](#rangefctmode) above).*

``` javascript
var greenBean = require("green-bean");

greenBean.connect("range", function(range) {
range.ovenLight.write(1);
});
```
### Appendix

#### Enabled state
Expand Down
7 changes: 6 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,12 @@ function Range (bus, appliance, base) {
command: 0xb5,
format: "UInt8"
});


appliance.ovenLight = appliance.command({
command: 0x71,
format: "UInt8"
});

return appliance;
}

Expand Down