Comments (10)
Not sure, I will have a look when I have time. I've had a reasonable number of issues in the past with stability of the public API.
from homeassistant-lightwave2.
Hi @ianphillpott , can you turn on logging, and reperform the action you're having trouble with please? Please also let me know what behaviour you expect (I don't have any TRVs so I'm not sure how they operate and what you expect).
To enable additional logging, add the following to configuration.yaml
logger:
default: warning
logs:
lightwave2.lightwave2: debug
custom_components.lightwave2: debug
from homeassistant-lightwave2.
I shall try and sort on Wednesday as likely have some time to sort.
from homeassistant-lightwave2.
This is the error showing in the log.
Logger: homeassistant.config_entries
Source: custom_components/lightwave2/init.py:111
Integration: Lightwave v2 (Smart Series) custom component (documentation)
First occurred: 11:33:03 AM (1 occurrences)
Last logged: 11:33:03 AM
Error setting up entry i*************[email protected] for lightwave2
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 293, in async_setup
result = await component.async_setup_entry(hass, self) # type: ignore
File "/config/custom_components/lightwave2/init.py", line 111, in async_setup_entry
await link.async_get_hierarchy()
File "/usr/local/lib/python3.9/site-packages/lightwave2/lightwave2.py", line 570, in async_get_hierarchy
await self.async_update_featureset_states()
File "/usr/local/lib/python3.9/site-packages/lightwave2/lightwave2.py", line 615, in async_update_featureset_states
req = await self._async_postrequest("features/read", body)
File "/usr/local/lib/python3.9/site-packages/lightwave2/lightwave2.py", line 526, in _async_postrequest
_LOGGER.debug("async_postrequest: Received API response {} {} {}".format(req.status, await req.text(), await req.json()))
File "/usr/local/lib/python3.9/site-packages/aiohttp/client_reqrep.py", line 1097, in json
raise ContentTypeError(
aiohttp.client_exceptions.ContentTypeError: 0, message='Attempt to decode JSON with unexpected mimetype: text/html', url=URL('https://publicapi.lightwaverf.com/v1/features/read')
Just going to add the logging commands and try some actions.
from homeassistant-lightwave2.
It is now doing basically nothing - can't get any of the integration to work!
LW Debug Log.txt
from homeassistant-lightwave2.
Thanks @ianphillpott
Looks like you're using the "public API" setting. Can you turn this off (in the integrations page of HA, you should be able to change the settings for this component). Then restart and let me know what happens.
from homeassistant-lightwave2.
Ooo things seem to be working. Will do some testing and let you know! Odd how that managed to turn on randomly!
from homeassistant-lightwave2.
Curious to know why the public API breaks it?
from homeassistant-lightwave2.
I can't reproduce the problem with the public API code, but if the normal setup is worked then I'm not inclined to keep investigating. I've added some more debugging code to the next release, so if this kind of thing happens again it'll be easier to track down.
@ianphillpott let me know if it's working now and you're happy to close this.
from homeassistant-lightwave2.
I'm going to assume this is working now. Also the public API seems to be fixed now - I'm not sure if anyone is using it, and I'd still recommend not doing so.
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 smart motion sensors LP70 only expose battery level HOT 10
- 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.