-
-
Notifications
You must be signed in to change notification settings - Fork 17
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
Feature Request: Expose CLIPGenericFlag sensors/switches to Home Assistant #14
Comments
What is the use case for this? From the look of it this will be a binary sensor. Could you post the json data for a generic flag? |
My use case is similar the the one described in this comment: dresden-elektronik/deconz-rest-plugin#98 (comment) Binary sensor would be ok for me.
|
Seems about right for the flag to be the main state. The Json data you gave me is good enough 👍 |
Solved in v40. PR is submitted to HASS, you can expect it to show up with release 0.74 |
Thanks! One remark:
shouldn't that be:
if matching is case sensitive? |
You're right. Good catch! |
Updated PR |
I'm sorry to bother you again. I think I've found an issue in the GenericFlag class. The is_tripped function is missing. When I use the new code in Home Assistant I get:
|
Thanks for verifying, will fix immediately |
PR is updated |
Would it be possible to expose the CLIPGenericFlag as a switch to home assistant so we can toggle the flag easily in Home Assistant on and off? |
@Krocko can you create a new issue with examples on how it is set, and why it is useful |
Hi @Kane610. Any news? |
I'm nearly done working on the UniFi integration, but I will put my time on the Axis integration prior to revisiting deconz |
Ok. Thank you for the info. |
Hello @Kane610 any update on this? |
No news, haven't investigated this at all |
Hi @Kane610. Do you have any news? |
Still waiting on examples
|
Hello @Kane610 |
Possible implementations:
or
Map flag
true
to state 'on' and flagfalse
to state 'off'turn_on service to
PUT /sensors/#/state {"flag": true}
turn_off service to
PUT /sensors/#/state {"flag": false}
I would prefer the second one.
The text was updated successfully, but these errors were encountered: