Skip to content

Update PCControllerDriver.groovy: Convert boolean attribute to enum - #3

Open
LibraSun wants to merge 1 commit into
gilshallem:mainfrom
LibraSun:patch-1
Open

Update PCControllerDriver.groovy: Convert boolean attribute to enum#3
LibraSun wants to merge 1 commit into
gilshallem:mainfrom
LibraSun:patch-1

Conversation

@LibraSun

Copy link
Copy Markdown

…enum

Because of the way Rule Machine and other apps set/get device attribute values, the Hubitat platform requires preset values to be listed within an enum structure. This applies to true/false values as well, which should be treated as strings rather than Boolean truth values. I'm proposing such changes to two of the attributes in PC Controller's device driver for maximum compatibility and to avoid certain warnings in RM5.1. Unfortunately, it's unclear whether @gilshallem is still active on github, as he seems to have left the Hubitat Community years ago, and I've been unable to reach him through other channels for a while now. If it's helpful to all parties involved, I'd gladly "adopt" (maintain) this particular integration going forward.

…enum

Because of the way Rule Machine and other apps set/get device attribute values, the Hubitat platform requires preset values to be listed within an enum structure. This applies to true/false values as well, which should be treated as strings rather than Boolean truth values. 
I'm proposing such changes to two of the attributes in PC Controller's device driver for maximum compatibility and to avoid certain warnings in RM5.1. Unfortunately, it's unclear whether @gilshallem is still active on github, as he seems to have left the Hubitat Community years ago, and I've been unable to reach him through other channels for a while now.
If it's helpful to all parties involved, I'd gladly "adopt" (maintain) this particular integration going forward.
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