Skip to content

Add 'level' reporting to mirror position#2

Open
joshualyon wants to merge 1 commit intoYoonoo:masterfrom
joshualyon:patch-1
Open

Add 'level' reporting to mirror position#2
joshualyon wants to merge 1 commit intoYoonoo:masterfrom
joshualyon:patch-1

Conversation

@joshualyon
Copy link
Copy Markdown

Improve compatibility with automations and other apps by also reporting the 'level' attribute since the device declares the Switch Level capability.

Improve compatibility with automations and other apps by also reporting the 'level' attribute since the device declares the Switch Level capability.
@joshualyon
Copy link
Copy Markdown
Author

For full compatibility, the Switch capability should also be implemented. For example, mirroring the "open" state to "on" and the "closed" state to "off".

This initial PR resolves a request by a SharpTools.io dashboard user where the level attribute is needed. I left the 'switch' mapping out of the initial PR in case you, the original driver author, had a preference on the mapping. (eg "open"="on", "closed"="off" or the reverse with "closed"="on", "open"="off")

@Kick4U2
Copy link
Copy Markdown

Kick4U2 commented Nov 29, 2021

Hello! Not sure if you found my fork useful, but I have included the switch and dimmer capabilities for automating with other devices and systems. I use Lutron keypads and toggle my shades by creating a virtual shade within Ra2.

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.

2 participants