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

Firey protons patch 1 #2

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

Conversation

FireyProtons
Copy link

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.

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
Copy link
Owner

@fireboy1919 fireboy1919 left a 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"
Copy link
Owner

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.

Copy link
Author

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... :)

@ClayF
Copy link

ClayF commented Sep 6, 2018

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?

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.

3 participants