TidbytAssistant: a HomeAssistant integration for your Tidbyt

This is for all 5 of you that own one of these, I made an integration/add-on for HomeAssistant that allows you to push apps and notifications to your Tidbyt device. Check it out on GitHub:

4 Likes

This is great. After an initial tough go at getting the add-on to install (It crashed my Home Assistant Green :upside_down_face: but tried again a few days later right after a fresh reboot and everythingworked), I was able to publish some text to the display. Yay!

Is there a way that this could be used to toggle on and off apps, like can do within the Tidbyt app? I’d love to be able to do app scheduling and control it in home assistant rather than the Tidbyt app, or be able to do things like use the existing home assistant entity app but have it be turned on / published only when certain conditions are met.

Didn’t see this until now but yes it supports publishing and deleting apps meaning you can add apps to the rotation when you want and then delete them when you don’t want them.

My apologies, I didn’t word this well. I mean to mute and unmute and pin community and built-in apps like you can in the tidbit app, beyond what’s built into the add-on and integration.

Yes you can do this by creating a tidbyt folder inside your HA config folder, placing your apps inside there inside its own named folder (ie an app named MyApp should be inside config/tidbyt/MyApp/MyApp.star) then using the Tidbyt Push service to push the app. Check the readme on the page, it will tell you how to do it.

1 Like

Hi all

I’ve tried this integration but get the following error on restarting HA:

Logger: homeassistant.setup
Source: setup.py:269
First occurred: 12:38:48 PM (1 occurrences)
Last logged: 12:38:48 PM

Setup failed for custom integration ‘tidbytassistant’: Integration failed to initialize.

Any thoughts on where to look?

I’ve added my Tidbyt devcieid and token details into the configuration.yaml file. Standard HA on Pi4.

Thx

BTW I fixed the above by removing and re-adding the integrations and rebooting. It then worked but has now broken following the HA core and HACS updates this last few days.

The brightness slider works but the power off button doesn’t. I’ve not tried any uploads to them as yet.

Thanks for this! I was able to get it up and running.

Are there any sample .star files? I’m not familiar with creating them, really just looking for something I can modify with text and icons as needed.

Also curious the main difference between foreground/background, and also how long do the items stay active when pushed? Trying to sort out how to incorporate “Take the trash out” in between the other apps in my cycle, for instance.

I added a button to a dashboard for my Tidbyt devices with the following (follow your nose and experiment):

Tap behaviour: perform action
Action: Tidbytassistant: text

then added a text string, chose a font size, colour and scroll behaviour.

Publish: foreground (to publish immediately on the device)

Select a Tidbyt device and when save and then you tap the button, the saved text string scrolls on the Tidbyt. Simple things! Not sure if the publish mode of background means the text will be added to your queue and whether it gets repeated with all the others from the Tidbyt app, I suspect now as the HA button is a one off action. What is interesting is the push works when the devices are asleep, then they go back to sleep once the text push has done its two scrolls.This might have a practical use in displaying a notification but would be easy to miss, unless the text remained displayed on the Tidbyt until somehow dismissed.

The star file appears to be Tidbit’s programming language. I can’t find any samples. I found this link that throws some light on things but is not an idiot’s guide:

Tidbyt Application Development Fundamentals - Karl Cardenas | Portfolio.

Here’s screen captures of my button for pushing text.

Here’s an example with a green title (text & title option) and red non-scrolling text string:

So it’s quite easy to add a ‘then do’ action of a Tidbyt text push to a notification. I this example, when I’ve left the garage side door open for more than 1 min (triggered from a Shelly door contactor), as well sending a notification to my phone, now a message is also sent to Tidbyt.

Very cool and very helpful, thank you! I’ll probably be able to get by just pushing text for now as well and not worry about anything too advanced. Also curious how the background functions, I’ll have to play around a bit. Would love to be able to figure out timing to get the notifications in to my regular app flow but again, just need to play around a bit. Appreciate it!