How to get Smart TV platform version/tv year model groups (in code)?

We had a similar problem.
We solved it by sniffing a navigator.userAgent string.
I know this user agent string should be avoided, but It is pretty solid solution for us and it works. We tested on many models from 2016 to 2021.

If we find “Tizen 6.0” string in userAgent, we know that is 2021 model.
Here is a complete list:
‘Tizen 6.0’: 2021,
‘Tizen 5.5’: 2020,
‘Tizen 5.0’: 2019,
‘Tizen 4.0’: 2018,
‘Tizen 3.0’: 2017,
‘Tizen 2.4’: 2016,
‘Tizen 2.3’: 2015

p.s. you should think about future models, they are not covered…

Here is a official samsung’s document, so you can see for yourself that map I sent is correct: