Coder Social home page Coder Social logo

Comments (17)

ciechompl avatar ciechompl commented on August 26, 2024 2

update to .23 , HA restart nad hourly sensor works :) ... even without full component reinstall ... thx

from hasmartirrigation.

ciechompl avatar ciechompl commented on August 26, 2024 1

so far so good :) closing

from hasmartirrigation.

posixx avatar posixx commented on August 26, 2024

Ok, so you didn;t rename your integration.. Can you set your own integration name during setup (first popup above the OWM Api key). I'm using v0.0.22 using 2 integrations and didn't see this problem at all.

from hasmartirrigation.

ciechompl avatar ciechompl commented on August 26, 2024

i do not have to rename it as default name is perfectly fine for me :) further, all my other template sensors are ready for default name so do want to do it :)
anyway ... it is strange that only hourly sensor is unavailable , daily and base are ok

from hasmartirrigation.

ciechompl avatar ciechompl commented on August 26, 2024

but for test purposes I added second integration with some new name and all works ok. So must be issue with default name used during first setup

from hasmartirrigation.

jeroenterheerdt avatar jeroenterheerdt commented on August 26, 2024

Huh? I am using the default name in my production setup and it works fine. Please don't change anything. I will add some debug logging and push a new version so we can iron this out.

from hasmartirrigation.

jeroenterheerdt avatar jeroenterheerdt commented on August 26, 2024

In the meantime can you please share screenshots of all details so I can replicate your situation here?

from hasmartirrigation.

ciechompl avatar ciechompl commented on August 26, 2024

funny but when I added second integration with some new name and removed it from integration list, without even touching the original one where I had broken sensor , everything is ok now .. .so really strange :) I have not done anything despite adding second integration and removing it .. .that's all .. I haven't even restarted HA :)

look at the blank line in the history graph :)

Start yesterday night:
image

back again ~1h ago

image

from hasmartirrigation.

jeroenterheerdt avatar jeroenterheerdt commented on August 26, 2024

Weird. Without knowledge of the data at the time I cannot fix this. I will build some extra safeguards for what I think is going on though.

from hasmartirrigation.

ciechompl avatar ciechompl commented on August 26, 2024

indeed weird :) what kind of data/screenshots shall I collect next time ?

from hasmartirrigation.

jeroenterheerdt avatar jeroenterheerdt commented on August 26, 2024

The screenshots that you shared: entities and their attributes are enough

from hasmartirrigation.

ciechompl avatar ciechompl commented on August 26, 2024

you will not gonna believe :) just restarted HA and again my hourly sensor unavailable

screenshots:
image

image

image

log:

2020-05-30 19:09:17 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 111, in _handle_refresh_interval
    await self.async_refresh()
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 177, in async_refresh
    update_callback()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 297, in async_write_ha_state
    self._async_write_ha_state()  # type: ignore
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 320, in _async_write_ha_state
    state = self.state
  File "/config/custom_components/smart_irrigation/sensor.py", line 308, in state
    self._state = self.update_state()
  File "/config/custom_components/smart_irrigation/sensor.py", line 286, in update_state
    self.precipitation = self.get_precipitation(data)
  File "/config/custom_components/smart_irrigation/sensor.py", line 410, in get_precipitation
    retval = self.rain + self.snow
TypeError: unsupported operand type(s) for +: 'float' and 'str'

from hasmartirrigation.

jeroenterheerdt avatar jeroenterheerdt commented on August 26, 2024

thanks, stay tuned for an update soonish ;)

from hasmartirrigation.

ciechompl avatar ciechompl commented on August 26, 2024

no rush :) ... raining second day in a row and tomorrow seem to be the same so zero stress :)

from hasmartirrigation.

jeroenterheerdt avatar jeroenterheerdt commented on August 26, 2024

;)

from hasmartirrigation.

jeroenterheerdt avatar jeroenterheerdt commented on August 26, 2024

Please give in another day and if it still works go ahead and close the issue

from hasmartirrigation.

jeroenterheerdt avatar jeroenterheerdt commented on August 26, 2024

Thanks!

from hasmartirrigation.

Related Issues (20)

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.