Skip to content

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!

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