Why is "monetary" missing from device class for a template in the GUI?

I can see most device classes when creating a template sensor in the GUI but monetary is missing, is there any reason why?

I think it’s called “Balance” in the UI:

1 Like

It will be missing from your list if your entity isn’t a state_class: total. Most sensors are listed as state_class: measurement, which isn’t supported by monitary device_classes. I’m not sure why that is, but that’s most likely the reason why it’s not showing up for you.

I tried changing it to state class total, but monetary still did not appear under device class.

Changing to “balance” as suggested seems to be the fix.


Balance is what it’s shown as in the UI as @troon pointed out. So you need state_class: total and device_class: monetary (Balance) in the UI.

1 Like