Hi,
according to my understanding and the example, this is correct:
homie/ohsb987654/$state ready
homie/ohsb987654/$homie 4.0.0
homie/ohsb987654/$name SomeName
homie/ohsb987654/$extensions org.homie.legacy-stats:0.1.1:[4.x]
homie/ohsb987654/$stats/interval 300
homie/ohsb987654/$stats/uptime 1
homie/ohsb987654/$nodes switch
However, verification fails:
Validation result: Validation failed
[object Object]1	Device 'ohsb987654' has the deprecated attribute '$stats' set! Please check with the newest version of the convention.