Home Assistant digital pet dashboard (tamagotchi)

Hello everyone,

I’m new here and hope I haven’t posted this topic in completely the wrong category.

I have a vision of a digital pet that lives in a standard dashboard of home assistant. You can interact with it (play, feed it, …) and it can tell you things like if you have an upcoming appointment or if a certain scenario has occurred. I’m sure most of you are familiar with the concept of a Tamagotshi. I told my wife about this idea, and now she wants it… and I think it could be a very interesting (if not easy) project.

My first problem is very simple, at least I hope so…
I’ve looked at a few options, but so far I haven’t managed to find a good starting point.

And I should mention that I’m not very familiar with home assistant I can do the unusual stuff… that’s about it though

So if anyone can point me in the right direction, so I can get off to a good start, that would be very helpful.

But of course any other related comments are also welcome.

Have a nice day, everyone, and I look forward to your comments.

1 Like

Do you have a link to how you set this up?

I think version should have been vision instead. :slight_smile:

2 Likes

sry so far i have nothing i can show :sob:

I think the biggest issue here is that HAs webpage is mostly backend run, which will mean there is hardly any functionality to do anything active on the frontend, so the the pet will just be dead between updates.

My ‘plan’ so far is a custom integration (with pysctipt or appdemon) which takes over the processing of inputs and data and generates images (animation frames). These frames can then be displayed via a custom card in the HA dashboard. In addition, the card should also have input options which in turn trigger actions in the custom integration.

Hello, so I tried a bit with pyscript and tested the following. I have built a script which executes a python script when a service is executed. With the help of the python script, an image gets changed every 0.1 s (if you saved the image sequence as a GIF, you would see a figure ‘running’ over a background). This image is in turn integrated into a camera integration as a source. Now I have a dashboard in which the camera is displayed and a button which executes the service. If I now press the button, the image is changed every 0.1 s… on the dashboard, however, only occasional changes are displayed, the refresh rate is too low?
Does anyone have an idea what I could do to refresh the images more often?
I’ve also thought about using a GIF and calling it up, but I’m not really happy with it, as it doesn’t really provide the functionality I want.

The HA dashboard is a heavy web page and even refreshing it each second is near impossible.
That is why you need to have some foreground code, like Javascript.

So I would have to create a custom card which, for example, executes Javascript, which in turn displays the images?

Something like that and probably also preloads it to the browser.

Thank you, I will try my luck and will keep you up to date