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

Implementation of a "toggle" state #16

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Open

Conversation

jpg06
Copy link

@jpg06 jpg06 commented Feb 13, 2019

Implementation of a "toggle" state
The msg.payload.on can now have tri-state:

  • true : to turn the light on (as before)
  • false: to turn the light off (as before)
  • "toggle" : to invert the state of the light

jpg06 added 8 commits February 5, 2019 23:04
Implementation of a "toggle" state
The msg.payload.on can now have tre-state:
  - true : to turn the light on (as before)
  - false: to turn the light off (as before)
  - "toggle" : to invert the state of the light
Correction of a travis error
@jpg06
Copy link
Author

jpg06 commented Dec 25, 2019

Correction of the manual by adding the "toggle state"
Correction of incorrect inline code for toggle

Replace line 
  const { on, hex, bri, hue, sat, duration = 500, ct } = msg.payload;
by 
  let { on, hex, bri, hue, sat, duration = 500, ct } = msg.payload;
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

Successfully merging this pull request may close these issues.

1 participant