GithubHelp home page GithubHelp logo

Comments (14)

renemarc avatar renemarc commented on May 26, 2024

Hi @JamiePryer,

Home Assistant has indeed recently changed its file structure for components. This custom component should instead be renamed from doomsday_clock.py to sensor.py and placed into its own folder: \HASSIO\config\custom_components\doomsday_clock\

Thanks for the heads up, I'll update the repo to match this new structure!

from home-assistant-doomsday-clock.

JamieP83 avatar JamieP83 commented on May 26, 2024

thanks a lot!! :)

from home-assistant-doomsday-clock.

JamieP83 avatar JamieP83 commented on May 26, 2024

didnt work im afraid.
anything else to change sorry?

from home-assistant-doomsday-clock.

renemarc avatar renemarc commented on May 26, 2024

That's strange. What's your Home Assistant version? Any related errors showing if you set the logger component to debug level?

For reference, my HA configuration is set this way on its develop branch:

/custom_components/doomsday_clock/sensor.py

The component is configured with:

sensor:
  - platform: doomsday_clock
    scan_interval: 86400

Then using Lovelace, the card is displayed on the frontend:

views:
  - title: Weather
    cards:
      - type: entities
        entities:
          - sensor.doomsday_clock

from home-assistant-doomsday-clock.

JamieP83 avatar JamieP83 commented on May 26, 2024

Hey,
so i have this:
Raspberry PI, V0.93.2

arch armv7l
dev false
docker true
hassio true
os_name Linux
python_version 3.7.3
timezone Europe/London
version 0.93.2
virtualenv false

\HASSIO\config\custom_components\doomsday_clock

same file as from your pull.

then when i add to my config yaml, i get this error when i do a "check config"
Platform not found: sensor.doomsday_clock

Logs

019-06-03 07:51:26 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for doomsday_clock which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
2019-06-03 07:51:26 INFO (MainThread) [homeassistant.loader] Loaded doomsday_clock from custom_components.doomsday_clock

from home-assistant-doomsday-clock.

renemarc avatar renemarc commented on May 26, 2024

Thanks for the details! My Home Assistant version was a bit older than yours, and recent versions actually required further file changes. Starting with release 2.0.1 this component should now work properly on Home Assistant 0.91+.

Do let me know if this latest iteration works well on your end!

from home-assistant-doomsday-clock.

JamieP83 avatar JamieP83 commented on May 26, 2024

awesome!! thanks a lot, thats done it :)

from home-assistant-doomsday-clock.

renemarc avatar renemarc commented on May 26, 2024

Yay, glad that we got this working again! 😃

from home-assistant-doomsday-clock.

renemarc avatar renemarc commented on May 26, 2024

@all-contributors add @JamiePryer for bug

from home-assistant-doomsday-clock.

allcontributors avatar allcontributors commented on May 26, 2024

@renemarc

We had trouble processing your request. Please try again later.

from home-assistant-doomsday-clock.

renemarc avatar renemarc commented on May 26, 2024

@all-contributors add @JamiePryer for bug

from home-assistant-doomsday-clock.

allcontributors avatar allcontributors commented on May 26, 2024

@renemarc

We had trouble processing your request. Please try again later.

from home-assistant-doomsday-clock.

renemarc avatar renemarc commented on May 26, 2024

@all-contributors please add @JamiePryer for bug

from home-assistant-doomsday-clock.

allcontributors avatar allcontributors commented on May 26, 2024

@renemarc

I've put up a pull request to add @JamiePryer! 🎉

from home-assistant-doomsday-clock.

Related Issues (6)

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.