Are those two groups visible in Home Assistant’s States page?
FWIW, the lines appear to be indented by 4 spaces. You should use 2 spaces. See example here. (EDIT: Indenting by one or more spaces is valid. Most of Home Assistant’s examples use two spaces.)
In addition, the control option is deprecated. Unless you are still uses the old States UI, the control option is ignored by the Lovelace UI.
That is NOT part of the yaml specification. However consistency is important and two is a good “standard” to adopt. However you could equally use 1 or 4 or 10 spaces.
Made me check the YAML docs and you’re right; 1 or more spaces is valid and it’s not even necessary to be consistent.
Two characters is the “community norm” for Home Assistant’s documentation and, given that I don’t use YAML anywhere else, I was mistakenly led to believe 2 is the correct number. To riff on the Holy Hand Grenade:
Two shall be the number of the counting and the number of the counting shall be two.
Except when it can be one or more …
My mistake. Thanks for the correction; I’ve amended my previous post.