Comments (10)
Can you turn on additional logging and send me the logs from the startup of the component?
from homeassistant-lightwave2.
I've set debug on custom_components.lightwave2
but not sure this shows anything useful. See attached.
Interestingly, these logs don't show the binary sensor for my two door sensors even though they are working in HA.
from homeassistant-lightwave2.
Sorry ignore last sentence - the log does show the magnetic door binary sensors being added, I missed this as was looking in the sensor
section.
So I would expect to see 5 additional binary sensors there as there are 5 motion detectors.
from homeassistant-lightwave2.
Can you also please set debug on lightwave2.lightwave2
?
from homeassistant-lightwave2.
See attached.
Presumably the relevant lightwave "feature" is this one of type movement
:
"61dc5c2c18685a0a5f6a4f02-221-3157344058+1":{
"featureId":"61dc5c2c18685a0a5f6a4f02-221-3157344058+1",
"name":"Kitchen motion",
"deviceId":"61dc5c2c18685a0a5f6a4f02-51-3157344058+1",
"groups":[
"61dc5c2c18685a0a5f6a4f02-6355806eca43974156867845"
],
"createdDate":"2022-10-23T17:57:02.260Z",
"attributes":{
"featureId":221,
"deviceId":51,
"type":"movement",
"channel":0,
"writable":false,
"stateless":false,
"virtual":false,
"status":"init",
"name":"Kitchen motion"
}
}
from homeassistant-lightwave2.
I've just pushed a new beta release where I've tried to include this. I also noticed there is a "lightlevel" sensor which I've tried to include too. Can you test and feed back please?
from homeassistant-lightwave2.
That's great thanks, I won't be able to test till next week so will feed back then.
from homeassistant-lightwave2.
I have tested this - I'm afraid it seems to add only the lightlevel sensor but not the actual motion binary sensor.
I had a look in the code, and I think this is what needs to be fixed up:
https://github.com/bigbadblunt/lightwave2/pull/5/files
https://github.com/bigbadblunt/homeassistant-lightwave2/pull/103/files
I have raised these as draft PRs because I haven't tested this code, and I'm new to both Home Assistant and Python.
I'll happily test if I can work out how to get this code into my HA instance.
I could drop in the custom component easily, but I can't work out where home assistant stores the underlying library to drop that in.
from homeassistant-lightwave2.
Code looks fine, I have included in a new beta release. Thanks!
Getting your edits to the lightwave2 library into your local HA instance is not something I know how to do. Lightwave automatically pulls the libraries using pip. The version number for the library is included in manifest.json. I have to fix the underlying library, upload to pypi, change the version number in the manifest and then HA automatically pulls the new library version. Obviously you can't do this without access to pypi. How to make the changes locally is beyond me.
from homeassistant-lightwave2.
Yay it works now!
I have just made one further PR because I noticed HA wasn't showing the correct icon for motion: #104
from homeassistant-lightwave2.
Related Issues (20)
- Control not available on v1 devices when Homekit devices hidden HOT 1
- Plug sensor is not hidden when hiding Homekit devices HOT 1
- Door sensor open/close state not hidden when hiding Homekit events HOT 5
- Unable to connect HOT 12
- Functionality question... HOT 2
- Status not updating in HA HOT 2
- Public API: Attempt to decode JSON with unexpected mimetype: text/html HOT 10
- All my lightwave lights are hidden HOT 3
- General sign in problem HOT 22
- AttributeError when adding integration - object has no attribute 'product_code' HOT 14
- Inline relays not discovered (both Connect and Smart Series) HOT 3
- Individual LED status colours HOT 3
- Error while setting up lightwave2 platform for sensor
- Lightwave RF using Honeywell Wireless Thermostat causes integration to fail. Error: AttributeError: 'NoneType' object has no attribute 'state' HOT 2
- Control of the LED on Gen2 Sockets not shown in HA (whereas the LED is controllable in HA for Light Switches) HOT 7
- Not pulling in correct names of devices HOT 35
- Lightwave Wirefree dimmers (scene selector) HOT 5
- HASS 2024.1.x - Deprecated Constants HOT 19
- Lightwave click events not received when Homekit devices hidden HOT 2
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 homeassistant-lightwave2.