Giter Site home page Giter Site logo

kpisacic / dhmz-home-assistant-custom-component Goto Github PK

View Code? Open in Web Editor NEW
12.0 4.0 0.0 109 KB

Home Assistant Custom Components for DHMZ service ("Državni hidrometeorološki zavod Republike Hrvatske / "Croatian Meteorological and Hydrological Service" )

License: MIT License

Python 74.06% JavaScript 25.94%
home-assistant custom-component croatia croatian-meteorological weather weather-platform hacs home-assistant-component home-assistant-custom home-assistant-sensor

dhmz-home-assistant-custom-component's Issues

update to python 3.9

Active graph is broken, seems that discontinued support for python 3.7 is the issue.

Log errors and warnings

There are few errors and warnings in log file:
Logger: homeassistant.components.weather
Source: custom_components/dhmz/weather.py:182
Integration: Weather (documentation, issues)
First occurred: 11:34:33 AM (2 occurrences)
Last logged: 11:34:33 AM

Error adding entities for domain weather with platform dhmz
Error while setting up dhmz platform for weather
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 428, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 691, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 777, in add_to_platform_finish
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 533, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 574, in _async_write_ha_state
attr.update(self.extra_state_attributes or {})
File "/config/custom_components/dhmz/weather.py", line 182, in extra_state_attributes
"pressure_tendency": self.dhmz_data.get_data(SENSOR_TYPES["pressure_tendency"][4]) + " hPa",
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'

Logger: homeassistant.components.weather
Source: components/weather/init.py:308
Integration: Weather (documentation, issues)
First occurred: 11:34:29 AM (2 occurrences)
Last logged: 11:34:29 AM

custom_components.dhmz.weather::DhmzWeather is overriding deprecated methods on an instance of WeatherEntity, this is not valid and will be unsupported from Home Assistant 2023.1. Please report it to the custom integration author.
custom_components.eko_karta_zagreb.weather::EkoKartaZagrebWeather is overriding deprecated methods on an instance of WeatherEntity, this is not valid and will be unsupported from Home Assistant 2023.1. Please report it to the custom integration author.

Logger: custom_components.dhmz.weather
Source: custom_components/dhmz/weather.py:123
Integration: dhmz
First occurred: 11:34:30 AM (1 occurrences)
Last logged: 11:34:30 AM

Unknown DHMZ weather symbol: None

  1. (also for other sensors - wind, pressure etc)
    Logger: custom_components.dhmz.weather
    Source: custom_components/dhmz/weather.py:223
    Integration: dhmz
    First occurred: 11:34:33 AM (1 occurrences)
    Last logged: 11:34:33 AM

Humidity - value not float:

Error in log file

Hi,

I'm getting this error in my log file every now and then:

This error originated from a custom integration.

Logger: custom_components.dhmz.sensor
Source: custom_components/dhmz/sensor.py:207
Integration: dhmz
First occurred: 12:18:22 (1 occurrences)
Last logged: 12:18:22

LXML PARSE error: expected '>', line 694, column 23 as position: (694, 23), offset: 22, line: 694

Thanks for this great integration!
Robert

Pressure_tendency error

Home assistant 0.115.3

3 errors in new version.

ERROR 1:

Logger: homeassistant.components.weather
Source: custom_components/dhmz/weather.py:260
Integration: Weather (documentation, issues)
First occurred: 5:58:44 PM (1 occurrences)
Last logged: 5:58:44 PM
Error while setting up dhmz platform for weather

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 193, in _async_setup_platform
await asyncio.shield(task)
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/dhmz/weather.py", line 124, in setup_platform
add_entities([DhmzWeather(probe, name)], True)
File "/config/custom_components/dhmz/weather.py", line 134, in init
self._state = self.format_condition(self.dhmz_data.get_data(SENSOR_TYPES["weather_symbol"][4]))
File "/config/custom_components/dhmz/weather.py", line 260, in format_condition
return [
IndexError: list index out of range

ERROR 2:

Logger: homeassistant.components.sensor
Source: custom_components/dhmz/sensor.py:185
Integration: Sensor (documentation, issues)
First occurred: 5:59:06 PM (1 occurrences)
Last logged: 5:59:06 PM
Error while setting up dhmz platform for sensor

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 201, in _async_setup_platform
await asyncio.gather(*pending)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 310, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 481, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 522, in add_to_platform_finish
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 296, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 323, in _async_write_ha_state
attr.update(self.device_state_attributes or {})
File "/config/custom_components/dhmz/sensor.py", line 185, in device_state_attributes
ret["pressure_tendency"] = self.probe.get_data(SENSOR_TYPES["pressure_tendency"][4]) + " hPa"
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'

Those above causes following ERROR 3:

2020-09-25 18:01:08 ERROR (MainThread) [frontend.js.latest.202009182] https://[redacted]:8123/local/dhmz-weather-card.js:244:45 Uncaught TypeError: Cannot read property 'forecast' of undefined

Weather Card

Čini se da je weather card depricated sa novom verzijom Home Assistanta?

image

No "version" key

Home Assistant 2021.3.0

Log file says:
No 'version' key in the manifest file for custom integration 'dhmz'. This will not be allowed in a future version of Home Assistant. Please report this to the maintainer of 'dhmz'

Type Error - Undefined

Home assistant version 0.113 - 0.115

Logger: frontend.js.latest.202009171
Source: components/system_log/init.py:193
First occurred: 11:37:33 AM (242 occurrences)
Last logged: 11:40:53 AM

https://xxx.xxx.xxx.xxx:8123/local/dhmz-weather-card.js:248:47 Uncaught TypeError: Cannot read property 'forecast' of undefined
https://xxx.xxx.xxx.xxx:8123/local/dhmz-weather-card.js:248:20 TypeError: this.weatherObj.attributes is undefined
https://xxx.xxx.xxx.xxx:8123/frontend_latest/chunk.d9cbf2fe4e32a009641f.js:2:69001 TypeError: s._view is undefined
https://xxx.xxx.xxx.xxx:8123/local/dhmz-weather-card.js:248:18 TypeError: this.weatherObj.attributes is undefined

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.