Slide scenes on ihost

Why on ihost I can’t create scenes with slides, for example if I slide a switch to the right it turns off the living room lights, this is only possible with the ewelink app?

thank guy

1 Like

The Sonoff integration in home assistant exposes these slide events to home assistant. Currently I use the homeassitant/home-assistant add-on in docker on the ihost so that I can capture the slide left/right events on my TX ultimate switches using home assistant automations.

My home-assistant automation sets virtual switches in home assistant. Then my node-red add-on on the ihost triggers flows using the home-assistant palette to set ihost virtual switches which can be used for automations on the ihost side.

I think the ihost dev team should add support for these slide events to the scenes in ihost as well as the node-red-contrib-ewelink-cube node-red palette.

So you have HA with sonoff integration, and the scene from HA pass to node-red, is correct? Sorry but I’m newbie on this…

Yea, I use the iHost to run an automation to turn on/off everything in a room. Including other devices not supported by ewelink. Stuff like my panasonic tv and meross plugs.

In the iHost I have homeassistant/home-assistant configured under the Docker hub Add-ons. I also had to configure the filebrowser/filebrowser docker add-on too to access the home-assistant files and folders directly. Then in home-assistant I installed HACS and the Sonoff LAN integration.

Sonoff LAN allows home-assistant to control my Sonoff devices on the LAN. Including the TX Ultimate switch’s swipe actions. This allowed me to create a virtual device on home assistant that I can toggle using a home-assistant automation when the slide action is detected.

Then in my Node-Red docker add-on I have the node-red-contrib-home-assistant-websocket palette installed. I have a node-red flow that triggers when my home-assistant virtual device state changes. Then I can do the rest of my automation logic turning devices on/off in that node-red flow as though it was triggered by the slide action.

It might be possible to do all this without the virtual devices but when I figured out how to handle basic switch state changes in node-red from home-assistant i just went with using a virtual switch as my trigger.

All that work just to start my node-red flow on the slide event because it hasn’t been supported in ihost yet but has been supported by the home-assistant Sonoff LAN integration.

Hey, are you referring to the TX Switch series?

Yes I speak about slide scenes of tx ultimate on ihost…