elad-bar / ha-dahuavto Goto Github PK
View Code? Open in Web Editor NEWDahua VTO Integration
Dahua VTO Integration
hi,
I installed your Dahua VTO integration. Now I get loads of entries from the module:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 314, in data_received
messages, upgraded, tail = self._request_parser.feed_data(data)
File "aiohttp/_http_parser.pyx", line 546, in aiohttp.http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadStatusLine: 400, message="Bad status line 'invalid HTTP method'"
2020-12-08 17:17:23 WARNING (MainThread) [homeassistant.util.async] Detected I/O inside the event loop. This is causing stability issues. Please report issue to the custom component author for dahuavto doing I/O at custom_components/dahuavto/dahuavto_data.py, line 98: response = requests.get(url, timeout=5, auth=self.auth)
2020-12-08 17:17:23 WARNING (MainThread) [homeassistant.util.async] Detected I/O inside the event loop. This is causing stability issues. Please report issue to the custom component author for dahuavto doing I/O at custom_components/dahuavto/dahuavto_data.py, line 98: response = requests.get(url, timeout=5, auth=self.auth)
2020-12-08 17:17:28 WARNING (MainThread) [homeassistant.util.async] Detected I/O inside the event loop. This is causing stability issues. Please report issue to the custom component author for dahuavto doing I/O at custom_components/dahuavto/dahuavto_data.py, line 98: response = requests.get(url, timeout=5, auth=self.auth)
2020-12-08 17:17:28 WARNING (MainThread) [homeassistant.util.async] Detected I/O inside the event loop. This is causing stability issues. Please report issue to the custom component author for dahuavto doing I/O at custom_components/dahuavto/dahuavto_data.py, line 98: response = requests.get(url, timeout=5, auth=self._auth)
Can you help me?
greetings
Kay
File: https://github.com/elad-bar/ha-dahuavto/blob/master/README.md
At the moment:
this integration is depreacted as the call event didn't work fluently,
instead you can use the <a href="https://github.com/elad-bar/Dahua">DahuaVTO2MQTT</a> to get all events.
Expected:
this integration is depreacted as the call event didn't work fluently,
instead you can use the <a href="https://github.com/elad-bar/DahuaVTO2MQTT">DahuaVTO2MQTT</a> to get all events.
Hello
My HA logs have returned the following message and ask to report it as issue :
2020-09-13 09:19:27 WARNING (MainThread) [homeassistant.util.async_] Detected I/O inside the event loop. This is causing stability issues. Please report issue to the custom component author for dahuavto doing I/O at custom_components/dahuavto/dahuavto_data.py, line 98: response = requests.get(url, timeout=5, auth=self._auth)
Do you know if I have to do something to stop these logs to pop ?
Thanks for your help
Regards
Ben
please tell me an example of automation, when you click on the intercom button, a screenshot was saved
This custom integration uses deprecated DEVICE_CLASS_*
constants in its codebase.
The DEVICE_CLASS_*
constants have been deprecated and replaced in Home Assistant Core 2021.12 (over a year ago). I would highly suggest updating/migrating this integration to the new enums.
For example, for the device classes supported by the sensor
platform, there is now a SensorDeviceClass
enum. So if a sensor previously used the DEVICE_CLASS_ENERGY
constant, it should now use SensorDeviceClass.ENERGY
. Other platforms (like binary_sensor
, and number
) provide similar enumerations for their supported device classes.
The migration thus only consists of replacing constants with an enumeration member and is, therefore, very low impact and should be fairly straightforward.
If I can help resolve any questions regarding this change or migration, feel free to ask or respond to this issue. I'm happy to help!
Kindest regards,
../Frenck
Not sure if you are using Hassio - but I've created an addon so spinning up the docker container is easier.
Awesome work with the integration - if you want to take over the addon - just grab the build and config code.
https://github.com/troykelly/hassio-addons/tree/master/DahuaVTO2MQTT
I have no idea what to do next... :((((
Detalles de registro (ERROR)
Logger: custom_components.dahuavto.dahuavto_data
Source: custom_components/dahuavto/dahuavto_data.py:112
Integration: Dahua VTO Integration (documentation)
First occurred: 3 de mayo de 2021 21:05:11 (10264 occurrences)
Last logged: 11:20:51
VTO Request to /cgi-bin/magicBox.cgi?action=getSystemInfo failed, Error: I/O must be done in the executor; Use `await hass.async_add_executor_job()` at custom_components/dahuavto/dahuavto_data.py, line 98: response = requests.get(url, timeout=5, auth=self._auth), Line: 98
VTO Request to /cgi-bin/recordFinder.cgi?action=find&name=VideoTalkLog failed, Error: I/O must be done in the executor; Use `await hass.async_add_executor_job()` at custom_components/dahuavto/dahuavto_data.py, line 98: response = requests.get(url, timeout=5, auth=self._auth), Line: 98
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.