Comments (11)
Thanks for your fast response.
Haven't seen a log entry.
I will check (logs and the rest) when it occurs the next time.
from hacs-homee.
It happened again.
-
Does the Fibaro plug actually turn off despite the UI not updating correctly?
No, it does not change it's state -
Are there any errors in your HA logs?
2021-07-15 08:49:04 ERROR (MainThread) [frontend.js.latest.202106030] https://myHomeassistant/lovelace/repeater?edit=1:0:0 Uncaught
2021-07-15 08:50:08 ERROR (MainThread) [frontend.js.latest.202106030] https://myHomeassistant/lovelace/repeater?edit=1:0:0 Uncaught
2021-07-15 08:58:10 ERROR (MainThread) [frontend.js.latest.202106030] https://myHomeassistant/lovelace/repeater:0:0 Uncaught
And after HA Restart, I saw:
Logger: homeassistant
Source: custom_components/homee/config_flow.py:140
Integration: homee (documentation, issues)
First occurred: 13:02:59 (1 occurrences)
Last logged: 13:02:59
Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 153, in async_init
flow, result = await task
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 179, in _async_init
result = await self._async_handle_step(flow, flow.init_step, data, init_done)
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 260, in _async_handle_step
result: FlowResult = await getattr(flow, method)(user_input)
File "/config/custom_components/homee/config_flow.py", line 140, in async_step_zeroconf
self.homee_id = discovery_info.get(zeroconf.ATTR_NAME)
AttributeError: module 'homeassistant.components.zeroconf' has no attribute 'ATTR_NAME'
Regarding the debug info: I missed to set the switch. Just set it now and that's what I see on Developer Tools / Entities / Attributes:
current_power_w: 0
today_energy_kwh: 0.07
homee_data:
id: 11
name: FIBARO Repeater
profile: 13
attributes:
- id: 100
type: 1
- id: 101
type: 44
- id: 102
type: 45
- id: 103
type: 4
- id: 104
type: 47
- id: 105
type: 48
- id: 106
type: 3
- id: 107
type: 347
friendly_name: FIBARO Repeater
device_class: outlet
Not sure if set helps. Will do a HA restart and look if the next failure will show more info in the attributes. Or would I see the debug info?
(I had mixed some log entires and therefore posted this although in the HA forum. But there someone ansered this:
https://community.home-assistant.io/t/correct-reasons-for-log-entries/322494/3
I think, it's useful)
from hacs-homee.
I'll close the issue.
Looks like it works - although I haven't changed something except the HA version to 2021.11.4
from hacs-homee.
This happens commonly if HA has lost the connection to homee or homee takes to long to respond. Once you toggle the switch a command should be dispatched to homee but the switch will return to the actual state of the HA entity after a few seconds. So if homee does not update and report the new state back to HA the switch will flip back on/off to the last known state.
I will need some additional information:
- Does the Fibaro plug actually turn off despite the UI not updating correctly?
- Are there any errors in your HA logs?
- What is the debug information of the Fibaro plug entity? (toggle "Add debug information" in the configuration and click on the entity)
Restarting HA will reload the integration and perform a fresh reconnect to homee which fixes any previous connection problems.
from hacs-homee.
Thanks for the info. At first glance, it looks like the integration is just losing the connection to homee. You could try to verify this by checking if you get the same behavior for other devices or if the problem only occurs for the Fibaro plug.
Although very unlikely, it could also be a problem between homee and the plug. You could verify this by toggling the plug from the homee UI and check if it actually switches and if the HA UI updates as well.
If it is "just" a connection problem there is unfortunately very little I can do to help. I am struggling with occasional disconnects myself and the integration should try to reconnect after it lost the connection to homee but sometimes restarting HA is the only way to restore the connection.
from hacs-homee.
Hi,
- Same behavior for other devices: Yes
- Toggling the plug from the homee UI: That works well as well as the state change is shown in HA, too.
from hacs-homee.
That works well as well as the state change is shown in HA
This is strange. This may suggest that there is a problem with the service that is used to send new values to homee. Do you have more than one homee configured in HA?
You can also try to manually call the service next time the issue occurs by going to the services section of the HA developer tools and calling the homee.set_value
service with the following data:
node: 11
attribute: 100
value: 0 # 0 for off, 1 for on
from hacs-homee.
Just one homee.
Like this?
Looks like it does not work, too.
Edited: I think I made a mistake. Haven't got it to run manually again. Just a short time after HA restart.
Could I assist to grab useful debug information?
from hacs-homee.
Same problem with my HA and Homee
from hacs-homee.
As mentioned on the forum, you could try to reload the integration to force it to reconnect:
This could even be automated using the reload_config_entry
service, however, I have not tried it yet.
from hacs-homee.
Yeah it`s working with reload, meanwhile i have a workaround with mqqt.
greets
from hacs-homee.
Related Issues (20)
- Error configuring homee integration with HA version 8 HOT 13
- Reloading the 1.5.0 integration disables all Homee entities in Homeassistant. HA needs restart to get them re-enabled. HOT 7
- Unable to prepare setup for platform homee.sensor: Platform not found (No module named 'custom_components.homee.sensor') HOT 2
- No entities generated HOT 3
- Shutter status is not displayed correctly HOT 6
- Expose homee status HOT 3
- No devices showing HOT 6
- Impulse type switches not discovered HOT 27
- Error messages from Websockets HOT 3
- Garage doors discovered but commands dont exist or do not work HOT 38
- Warema WMS Cube cover for slat roof and light not working HOT 26
- hacs-homee does not work at all in the latest home assistant HOT 7
- Integration ABUS Sirene HOT 3
- Automatic pull request to homee for status update of garage door HOT 5
- Update to pymee 1.7.1 HOT 1
- Wrong position display after update V2.5 HOT 5
- Invalid device info HOT 4
- AEON Labs ZW095 Home Energy Meter Gen5 not supported HOT 7
- Entities disappeared after upgrading HomeAssistant to 2023.9 HOT 2
- German translation HOT 1
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 hacs-homee.