The init.py is in the emulated_roku folder from the github repo: GitHub - martonperei/emulated_roku
When you clone/download the project you can edit the file to add more than 10x “apps” keys and also give them names like “Scene bright living room”, …
See discussion from here on: Integration: emulated_roku - Sofabaton compatibility - #27 by pOpY
After that run “python3 example.py” and add the device to the sofabaton app.
When you done this, the app is reading the defined virtuall “app” keys and adding them to the roku device in the sofabaton app.
Then you have to change the IP address of the device in app to HA and add emulated roku device in HA.
Ps.: i also don’t need activity tracking for now. I am just using virtual “apps” for triggering scenes/automations. That’s enougth for me.