Comments (14)
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.
thanks a lot!! :)
from home-assistant-doomsday-clock.
didnt work im afraid.
anything else to change sorry?
from home-assistant-doomsday-clock.
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.
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.
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.
awesome!! thanks a lot, thats done it :)
from home-assistant-doomsday-clock.
Yay, glad that we got this working again! 😃
from home-assistant-doomsday-clock.
@all-contributors add @JamiePryer for bug
from home-assistant-doomsday-clock.
We had trouble processing your request. Please try again later.
from home-assistant-doomsday-clock.
@all-contributors add @JamiePryer for bug
from home-assistant-doomsday-clock.
We had trouble processing your request. Please try again later.
from home-assistant-doomsday-clock.
@all-contributors please add @JamiePryer for bug
from home-assistant-doomsday-clock.
I've put up a pull request to add @JamiePryer! 🎉
from home-assistant-doomsday-clock.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from home-assistant-doomsday-clock.