What’s the correct way to set the parameters for a widget like the clock?
For example, if I want it to use 24hour format, I need to set the parameter time_format to 24hr.
if I set it using global_parameters in a dashfile it works, but if I uncomment the parameter in the clock.yaml file from the examples it doesn’t seem to have any effect.
This works for me, but setting things like this as a global parameter in the dash files doesn’t seem like the best way to do it:
If you want to set individual parameters like that you need an explicit entry for the widget - above you are using the entity method to specify it which means you don’t get to apply any widget level parameters.
Talking about widgets. I think I read somewhere that the widget code is pretty stable now. Is it stable enough for someone to wright a tutorial on how to build custom widgets?
I was hoping maybe Rene or Robert had a good grasp on it and could put something together :). They were great help in getting me where I needed to be on the style sheets.
if you use a file named clock.yaml then you need to use clock in your dash.
i use specific files for each widget and that works fine.
so name your yaml file clock.clock.yaml and use clock.clock in your dash or name it clock.yaml and name it clock in your dash.
or do it like Andrew showed