I know it’s late to the party, but there is now a fully local X1S integration for Home Assistant.
No cloud dependencies whatsoever, automatic discovery of your hubs, support for multiple hubs, switch between activities, send any command to any device or activity. Honestly, it’s a pretty decent integration I would appreciate you trying it out.
Didn’t see a lot of people showing you love but I just installed this and had to tweak some network settings but I got this fully working with cross VLAN and mDNS.
Thank you so much for putting this together and am envious of your networking abilities to dissect the tcp traffic to get this fully functional. Huge props! Thank you for your work!
Was looking forward to get a x1s but there wasn’t a real integration in the past. So this project really got me interested in buying the remote again.
Keep up the great work!
Yeah, the X2 is on presale right now, but its pretty expensive. So the x1s seems like a great alternative for the X2 with this integration.
I also have two questions here.
Can you actually start buttons or automations from the remote, that I have configured in home assistant? For example: I have made buttons on my dashboard that work like marcos: starting the tv then starting my hue sync box and finally starting the apple tv. Can you execute this with the remote?
And the other way around. Is it possible to execute remote IR devices from home assistant? For Example: The remote and the hub is in my living room and I have a blu-ray player, that only can be started with the IR. Can I actually start this from the home assistant dashboard with the integration?
1st question.
So if I understand your question correctly, you’re asking if you can trigger something in Home Assistant with the X1S.
The answer is that you can. This is not so much a feature of this Integration, but it’s a feature of the X1S.
In the Sofabaton app, when you add a device, and then select Wifi device, at the bottom of that screen is a link called Create a virtual device for IP control.
If you click that, the app will let you make a button that can call any URL using a variety of different methods.
So then all you need now is URLs to call in Home Assistant that do what you want them to do. Home Assistant has this built in. Using webhooks is the quickest way to get there: Automation Trigger - Home Assistant
There are good examples on this forum too.
Perhaps useful for you to know:
Many people have been using an integration for HA called Virtual Roku. The integration emulates a Roku device. Sofabaton X1S has built in support for the Roku, and will recognize the virtual Roku machine as the real thing. This is another way to get a physical button press to trigger something in HA.
In the X2 this is solved in a different way. The X2 hub lets you create virtual devices that bridge into Home Automation platforms using MQTT. Sofabaton themselves have a Home Assistant integration for the X2 in HACS right now.
2nd question.
YES! With this integration you can have the hub perform any command that the hub knows about, directly from Home Assistant. It provides 2 main ways of leveraging this capability. The integration creates an entity for each physical button your remote has. Those buttons then change state depending on the activity you have enabled, they function exactly like you would expect on the physical remote. So these are easy to add to your UI, or you can use them in automations with the button.press action.
There is also an entity that implements HA’s remote platform. With this you can send any command the hub knows about to any activity or device.
So I just installed the integration via Option 1 for my X1S. My HA and hub are on the same network/VLAN. It adds the hub and entities, but all are unavailable. Why is this? Do I need to expose ports on edge firewall?