-
Notifications
You must be signed in to change notification settings - Fork 23
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
Firey protons patch 1 #2
base: master
Are you sure you want to change the base?
Firey protons patch 1 #2
Conversation
adding night mode and httpCall needs hex value for code sent in URL
added night mode and group as input set code input requirement to false as it is optional
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than that one comment, I'd love to accept this pull request.
It's a great addition!
@@ -35,8 +35,9 @@ def nameMiLights() { | |||
dynamicPage(name: "nameMiLights", title: "MiLight Wifi Hub Setup", uninstall: true, install: true) { | |||
section("Light") { | |||
input "miLightName", "text", title: "Light name", description: "i.e. Living Room", required: true, submitOnChange: false | |||
input "code", "number", title: "Code", required: true, description: "Optional: will be autoassigned" | |||
input "code", "number", title: "Code", required: false, description: "Optional: will be autoassigned" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this isn't actually autoassigned (because I couldn't figure out a way to do that after an hour or so of looking), this is actually needed, and the app was throwing exceptions when I didn't require it. So this would produce a bug.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess i felt like if something were optional, it shouldn't be required... :)
I can't seem to get nighten to work. There are no log messages so it isn't sending the HTTP request. Could someone confirm that it works? |
Added night-mode since sidoh's last update added it into the commands
the device's httpCall needed hexcode in the URL for mine to work with on/off commands...
I wanted some more flexibility with the group code, so I added it on installation.