laggat / ha-jokes Goto Github PK
View Code? Open in Web Editor NEWHome Assistant Sensor providing a random joke every minute.
License: MIT License
Home Assistant Sensor providing a random joke every minute.
License: MIT License
Hi, not sure how much you are planning to update this integration as it is marked as an example, but it would be nice if the default icon for the sensor would be a bit more random or "joke-y". The default eye looks a bit weird.
When looking on MDI for icons the ones shown when searching for "emoj" are probably most suitable.
It would even be better if it would be possible to change the icon yourself as a user, but that currently does not work as the sensor does not have a uniqueid.
EDIT: I am dumb; I can actually override it easily in the new Tile card instead of the entity settings. But still a nicer default would be cool.
If you try to go to "Settings" of sensor.random_joke, you will see this message:
This entity ('sensor.random_joke') does not have a unique ID, therefore its settings cannot be managed from the UI. See the [documentation](https://www.home-assistant.io/faq/unique_id) for more detail.
Also, this code will not work
recorder:
...
exclude:
entities:
- sensor.random_joke
I think that it is same issue. So DB is bloated with jokes. I don't think it is common use-case, when you need history of jokes. Most people will see random joke only just now.
Can you add Unique ID to sensor.random_joke
I have to say we love your integration, Thank You.
Would you consider a Riddle Integration?
Any chance you can allow the user to determine the poll time (either from a set list or by entering time)? Currently I get a new joke every minute. No big deal, but when I want to show someone, sometimes by the time I get to them it's already changed to a new one.
Hi, sorry I'm a bit of a beginner here, but could you please provide some examples of how to use this? Perhaps as a card?
homeassistant.exceptions.InvalidStateError: Invalid state encountered for entity ID: sensor.random_joke. State max length is 255 characters.
HowTo:
Thank you for this integration :-). What is the best card for it? I'm using the entity card, but it shows the first couple of characters of the joke in a rather big font and I need to click it to read the whole joke; is there a way to see the whole joke text without needing to click :-)?
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.