Features Wishlist
Pages as entities
What would you like to add
I'd like to add the feature that every page has it own entity, so I can use them in my automations.
For example, I got a page for my 3D printer on Tessera, and I'd like to have an automation that changes the shown page to the printer page when I'm printing.
How this relates to Home Assistant
It adds an entity for every screen page I have in Tessera.
Pictures, mockups, or examples
No response
Before submitting
- I searched the existing issues and this has not already been requested
Discussion 1
Add a commentHi @Schumey, good news: this already works, without an entity per page. Every screen has the action
esphome.<screen>_show_pagein Home Assistant. It wakes the screen if it is in standby, closes an open card or the settings, and shows the page you ask for.pageis the number the editor shows, 1 for the first page.An automation that shows the printer page while a print runs and goes back to page 1 when it ends:
Change
office_screento your screen's name,page: 3to the number of your printer page, and the sensor andprintingto the entity and state your printer's integration reports.One thing to know: after a page is opened, Back to page 1 counts from that moment, the same as after a touch, so the screen goes back to page 1 on its own time. To keep the printer page up for the whole print, switch it off in the screen's settings, or let the automation turn
switch.office_screen_back_to_page_1off when the print starts and on again when it ends.More about it in Open a page from an automation. I'll close this one, since it is already there, but tell me if something doesn't work the way you expect.
Got a screen running? Tell others which board you have and what works on the Tessera website. It helps everyone pick a screen that works.
Want me to keep building? Consider supporting monthly or buying me a coffee, much appreciated!
Original on GitHub