Total newbie here, looking for coding advice

First thing first, I’ve been using HA for all of approximately one day.

So one thing I’m looking to do is to convert an entity / sensor from seconds to hours, minutes, seconds for oven program time.

I’m also wanting to create a card that will allow my home battery discharge over a certain period of time to show a Go / Don’t Go message when the usage is too high to, for example, start running other high drain appliances in the house?

Thanks in advance for the help, I’m definitely on a steep learning curve!

you’re going to add a lot more details than that for anyone to be able to help you.

Things that might help.
What kind of HA installation are you running?
Have you read up on / familiar with,
automations
The dashboard / lovelace
YAML

There are lots of experienced / helpful people here, but you are definitely going to need to provide a bit more information on what you have and what you want to achieve.

If an entity has “unit_of_measurement” as “s”, and “device_class” as “duration”, in Dev Tools it will show as a number of seconds, but on a dashboard it will show as “hh:mm:ss”.

If they don’t have those attributes, you can customize them in the config for the entity.

1 Like

I’m running HA on a HomeAssistant Yellow.

I’m becoming quite familiar with the dashboard, automations and YAML are a work in progress.

My main intent right now is to work on how to find the right place to change the duration of the oven programs from seconds to minutes. This is in the HomeConnect integration on sensor.oven_duration.

I’m hoping to learn but obviously that will take time and practice.

Thanks for the info, I’ll take a look see if I can find those settings.