Hello. I struggle to find the right approach how to move forward.
I did a simple blueprint to be able to control an automation for a power plug (see pic).
I would like to have this in a tab so it is quickly accessible but the only card useful is ‘website’, but it duplicates the left sidebar and does not work on mobile for some reason (never loads)
However, I would like to step back and just know from a high level what would be the best approach to be able to achieve that.
So far my thoughts are a custom card (never done that) or a web app and updating needed variables via API (have some experience). But looking for the simplest solution.
I’m trying to follow what you are doing here. What exactly are you trying to do? You want to create an automation that will control a smart plug that turns on a coffee machine and you also want to be able to have UI access to disable the automation manually?
I would like to have the ‘blueprint edit’ ability in a tab basically, for the current blueprint in the picture. So it is quickly accessible for a family member.
So the automation / blueprint is done, thats not a problem, automation can also be enabled all the time this is not the issue.
The blueprint:
The user can edit the time schedule, set the offset, enable / disable two different triggers as needed.
one is manual time schedule
second reads the next alarm sensor from the users phone.
When starting out I thought I would make a blueprint so it’s less complex for the user, but now I struggle to display this to the user directly (the blueprint edit window). I would like a simple UI, I don’t want them to click too deep to get to the blueprint edit window.
Generally, the purpose of a blueprint is to be able to more easily create multiple similar automations… not really to have a frontend to make changes to an automation.
From what you have described, you would probably be better to just create an automation that uses Helper entities for the time and boolean values you need. Those Helpers can then be used on your dashboard so you can easily update the values used by the automation… no new custom cards needed.
@Didgeridrew I think this is pretty neat so far and a great solution.
I only struggle with date time helper not allowing for negative time. I would prefer a negative offset. But I will see down the road if this input is really much needed for the user.
That might not be the best Helper for that use, you may be better served by a Number helper. You should consider the lengths of time you typically use for your offset. If it’s usually in a range that can be expressed as a single unit, probably “minutes”, and doesn’t need 3-unit resolution; then you can alter the automation to use that instead.
If you need help altering the automation, there are plenty of folks on here willing to help, just post the automation’s configuration so we can see what changes are needed.