Comments (21)
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:
File "homeassistant\components\binary_sensor\deconz.py", line 71, in is_on
return self._sensor.is_tripped
AttributeError: 'GenericFlag' object has no attribute 'is_tripped'
from deconz.
PR is updated
from deconz.
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?
from deconz.
My use case is similar the the one described in this comment: dresden-elektronik/deconz-rest-plugin#98 (comment)
I'm using the rule engine of deCONZ and the CLIPGenericFlag is acting as a room's master switch.
I would like to see the state of this "master switch" (the flag) in Home Assistant.
Binary sensor would be ok for me.
What kind of JSON data do you need?
My flag sensor:
{
"config": {
"on": true,
"reachable": true
},
"modelid": "Switch",
"name": "Kitchen Switch",
"state": {
"flag": true,
"lastupdated": "2018-07-01T10:40:35"
},
"swversion": "1.0.0",
"type": "CLIPGenericFlag",
"uniqueid": "kitchen-switch"
}
from deconz.
Seems about right for the flag to be the main state. The Json data you gave me is good enough 👍
from deconz.
Solved in v40.
PR is submitted to HASS, you can expect it to show up with release 0.74
from deconz.
Thanks! One remark:
In the code is see:
GENERICFLAG = ['CLIPGenericFLAG']
shouldn't that be:
GENERICFLAG = ['CLIPGenericFlag']
if matching is case sensitive?
My JSON shows "type": "CLIPGenericFlag",
from deconz.
You're right. Good catch!
from deconz.
Updated PR
from deconz.
Thanks for verifying, will fix immediately
from deconz.
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?
from deconz.
@Krocko can you create a new issue with examples on how it is set, and why it is useful
from deconz.
https://github.com/ebaauw/homebridge-hue/wiki/Getting-Started#24-clip-sensors
from deconz.
Hi @Kane610. Any news?
from deconz.
I'm nearly done working on the UniFi integration, but I will put my time on the Axis integration prior to revisiting deconz
from deconz.
Ok. Thank you for the info.
from deconz.
Hello @Kane610 any update on this?
from deconz.
No news, haven't investigated this at all
from deconz.
Hi @Kane610. Do you have any news?
from deconz.
Still waiting on examples
[Kane610](https://github.com/Kane610) commented [on 21 Dec 2019](https://github.com/Kane610/deconz/issues/14#issuecomment-568201742)
@Krocko can you create a new issue with examples on how it is set, and why it is useful
from deconz.
Hello @Kane610
Do you need more info?
from deconz.
Related Issues (20)
- Error with the configuration of a light dimmer HOT 1
- Error doing job: Task exception was never retrieved - KeyError: 'e' HOT 4
- Additional lighting effects and control HOT 2
- Expose CLIPGenericFlag sensors from deCONZ as switches to Home Assistant HOT 1
- Support for Philips Hue wall switch module HOT 4
- Deconz integration test issue HOT 1
- Add support for "Range extender" light type HOT 2
- Stuff to clean up from typing HOT 1
- Expose all available attributes of thermostat to HA bundled as device HOT 2
- 'requirements.txt' is missing in Pypi's SDIST since v90 HOT 3
- Feature request: expose more IKEA Starkvind functions to Home Assistant HOT 16
- Support events for Philips Tap Dial Switch HOT 30
- Feature request: expose more Aqara FP1 functions to Home Assistant HOT 5
- Device IP snippets
- Sensors are added to deConz but are not appearing in HA HOT 8
- Styrbar Automations deleted after update to 2023.1 HOT 2
- Smart plug consumption sensor "state is not strictly increasing" in HA HOT 1
- Legrand netatmo thermostat entitie doesn't work
- Unsupported device type ZHAParticulateMatter HOT 5
- Unknown devices for air quality HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deconz.