Closed MaBeniu closed 7 months ago
Hey there @prostosanja, mind taking a look at this issue as it has been labeled with an integration (komfovent
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
komfovent documentation komfovent source (message by IssueLinks)
Anything in the logs?
Also, share device info, model, type etc
I cannot find any errors in the logs, is there anyway to enable more logging?
Here is device software version:
Could it be that in the config port also needs to be added? I know modbus protocol is open via 502 port
to enable debug logging add the following to your configuration.yaml
restart HA and provide the home-assistant.log after you got the error message:
logger:
default: info
logs:
homeassistant.components.komfovent: debug
komfovent-api: debug
Note: it is better to drag the log into the comment (which will add it as an attachment) and not copy paste as it is hard to read logs in GitHub.
now with these logger settings when I choose komfovent integation from the list of available integrations to add and then I add host, user and password and press submit no new events are captured. like it wouldnt do anything and just fail capturing entered values. here are log events that are captured at the similar time. but nothing in relation to this integration. 2023-11-30 15:35:42.403 INFO (Thread-7) [pychromecast.controllers] Receiver:channel_disconnected 2023-11-30 15:35:42.432 INFO (Thread-7) [pychromecast.socket_client] [Living Room TV(192.168.0.133):8009] Connection reestablished! 2023-11-30 15:37:08.705 INFO (MainThread) [homeassistant.components.bluetooth.scanner] hci0 (E0:E1:A9:38:85:0A): Bluetooth scanner has gone quiet for 90s, restarting
need deeper logging probably, if anyone know the params please share
interesting, neither the configuration flow part in HA, nor the komfovent-api
has any logging implemented 🙄
EDIT:
as far as I can see from the code of komfovent-api
, it assumes the device to be reachable via http on port 80 and tries at first to fetch some status information. Please show us the result of http://192.168.0.150/st.html from a browser of your choise
also I did enabled logger with debug mode on the whole HA. it took some time to delete all the noise. here is the log at the event of adding integration.
komfovent lines in HA debug log.txt It doesnt seem to include anything valuable
I did also ran LAN scanning and I see that it has port 80 open for sure. with the st.html I can logging and I end up in the settings page of the unit.
the komfovent-api
lib seems to be based on web scraping which is not allowed by adr-004 Webscraping for multiple reasons :monocle_face:
Well spotted @mib1185 đź‘Ť
This unfortunately means, this integration should never have been merged. I've opened up a PR to remove it from Core again.
../Frenck
For the better world you say... 🙂
That was quick, didn’t even have time to check this thread before you reverted everything. I guess nothing more can be done at this point? Yes it was scraping, but they actually dont provide local api. The only one they have is cloud based, so that’s why i prioritised local one.
Isn’t the whole point of hass to be able to integrate anything? Or what’s happening here?
As written in the documentation link above - It will still be possible to have custom integrations provide information via webscraping. would you consider that @ProstoSanja ? that would be appreciated. currently I use a package https://github.com/borpin/ha_komfovent_config via modbus which actually is buggy.
@MaBeniu added it as a custom integration and with hacs support at my repo https://github.com/ProstoSanja/komfovent-api-python . Also fixed the bug you were experiencing (probably)
The problem
when trying to add a device I get error that host is required or failed to connect though I add correct IP address and add password that is 10 symbols long.![image](https://github.com/home-assistant/core/assets/107912005/ce1dc540-4964-4901-abee-93410f5dbca5)
I did full restart of the Home Assistant machine.
What version of Home Assistant Core has the issue?
2023.12.0b0
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Komfovent
Link to integration documentation on our website
https://rc.home-assistant.io/integrations/komfovent
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
In system logs menu I dont see any captured event for the error.