Looks good.
Do you have any router/firewall in-between wifi and your computer running the script?
P.s.: maybe your WiFi is blocking multicasts? (239.255.255.250) Which are needed.
I am having unified UAP-AC-LR and it worked with that.
Looks good.
Do you have any router/firewall in-between wifi and your computer running the script?
P.s.: maybe your WiFi is blocking multicasts? (239.255.255.250) Which are needed.
I am having unified UAP-AC-LR and it worked with that.
I have udm se + unifi APâs
where should I look for this?
Look for these options in the controller.
âBlock LAN to WLAN Multicast and Broadcast Dataâ is disabled.
âEnable multicast enhancement (IGMPv3)â is enabled.
Which mobile phone do you using?
I am using an XIaomi 11T with HyperOS = Android 14.
Any VPNâs or similar tools disabled?
Ps.: you can also use wireshark to check if the sofabaton app/hub is sending the request on port udp 1900.
I think the âEnable multicast enhancement (IGMPv3)â did the trick I was able to add it and change the ip to Home Assistant.
I can confirm this works with app version 3.3.6 and with the SX1 hub (which is a different version of the X1 hub, why the old app trick donât work anymore)
Thanks for your help
Youâre welcome and nice that it finally worked for you.
P.s.: I also want to upgrade my living room from the X1 to the X1S (when itâs finally available on Amazon DE sadly currently itâs not).
P.s.P.s: change the apps in init.py to your needs (like scenes,âŚ)
I had the new for free because of the issue with the wheel on the X1. The customer service is really good.
If you are happy with the X1, I donât think you will win something, worth the money ,with the change.
Can you explain a bit more in detail the apps?
To understand better, if I need it
Yeah, want to use the X1 in the bed room and a new X1S in the living room
In the init.py there is an array named APPS_TEMPLATE.
When you edit that (in my case I have ~30 +) defined. Like âScene Bright Living Roomâ, âŚ
Every app/key you define there, will show up in the Sofabaton app as a key and can be assigned as usual.
In other words, you can define as much keys as you need. Only drawback is, that you have to re-add the device again, when you need more app/key entries and add it again to the activityâs.
Be sure to check the array syntax before running the emulator.
I canât see a use case for this.
how you use this? maybe if I have some examples I can understand better
My use case of the whole sofabaton â HA remote is just this
I am defining apps like:
Than on the remote keys page or activities i am adding these to quickly access these and controll the complete room
Whatâs your use case for the sofabaton + emulated_roku?
I add one device Home Assistant (roku emulate)
Then in my activities I add long press keys to the emulated roku buttons (app1, app2, etcâŚ)
In Node red I check the event of each button and create flows.
App1 is to close blinds near TV, app2 turn of lights, etcâŚ
If I understand, adding different apps will add differents roku emulated devices?
Ok, thatâs exactly what i am doing butâŚ
You have not changed app1, app2, etc⌠in init.rb â hence in the sofabaton app the keys are named app1, app2, âŚ
When you edit init.rb, you can name it like you would, and also (most important) add more than 10x âappâ names
Wow, thatâs is really a good use case
Can I still change this?
Or should I delete the device and add a new one?
Thanks
Sadly, changing/adding apps after adding the device to the sofabaton hub is currently not possible.
You should take note of everything you want to archive, change it in init.rb, delete and re-add the device again.
Donât forget to re-add the device/keys (Apps) to your activitys afterwards.
Thanks for your help.
I will try to do this
Just got a new X1S as my harmony elite finally broke
Setting up emulated Roku worked first time, and I can use the app_idâs to launch scenes and control covers. Pretty cool and much easier than I expected.
Where is this init.rb file you guys are talking about? Itâs that accessible if using HA emulated Roku integration? Or do I need to use the python library?
Has anyone had a crack at using binary sensors to track the current state of the sofabaton activity? With the API turned on you could feed the activity starts and stops back to emulated Roku, and then use these to launch and stop activities so HA is always cognisant of the sofabaton state. Seems messy though
Edit: itâs actually much easier than that to track current state.
There is always a chance it gets out of sync so potentially need to add macros etc to be able to fix this when broken.
I wanted state monitoring to replicate the way I used my harmony remote, but now I have it I am not sure I need it⌠Next Iâll try make a conditional card on living room dashboard to make us if it.
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.
I understand some of that, but on HAOS I didnât pull a repo. Emulated Roku is one of the built in integrations, and I canât find anything anywhere on my filesystem relating to it using FileBrowser
Got you.
You have Todo this on another machine/PC.
Afterwards, change the IP in the Sofabaton app to the one from your HA installation.
Ok great I think I understand. Have just had a go and I can see the new emulated roku device on my sofabaton app after starting example.py, but after adding it the app shortcuts are not shown at all. Does this look correct?
APPS_TEMPLATE = """<apps>
<app id="1" version="1.0.0">Vacuum Kitchen</app>
<app id="2" version="1.0.0">Vacuum Living Room</app>
<app id="3" version="1.0.0">Vacuum Living Areas</app>
<app id="4" version="1.0.0">Vacuum Bin Area</app>
<app id="5" version="1.0.0">Vacuum Bedrooms</app>
<app id="6" version="1.0.0">Emulated App 6</app>
<app id="7" version="1.0.0">Emulated App 7</app>
<app id="8" version="1.0.0">Emulated App 8</app>
<app id="9" version="1.0.0">Emulated App 9</app>
<app id="10" version="1.0.0">Emulated App 10</app>
</apps>
This is what shows up after I have edited init.py, no Emulated app keys on the remote. Is that expected? Are they there, and will work as expected just are not visible?
Edit: Obviously this canât be correct as if I canât see those buttons on the sofabaton, then how can I use them to initiate scenes/commandsâŚ
Hey there
Iâve got trouble connecting to my emulated instance either on Windows or MacOS or HAss.
Iâve tried the advertise.py but mostly example.py
I used pfSense to capture packets and I can confirm the presence if multicast packets from the machine running the emulator:
15:22:34.048549 IP 192.168.100.29.1900 > 239.255.255.250.1900: UDP, length 186
Also the web server is responsive with a correct XML output.
Iâm using the Sofabaton X1S app version 3.4.1 on iOS. I donât have an android device.
Any help is appreciated!