Better way to handle this Kodi web page when PC off?

This works for the Power button pressed and sends the 5 seconds Ping Period command.

However it also sets the Ping Period to 5 when pressing the PowerToggle button again to turn off the Harmony activity, so not going to work.

So can a Condition be added? To only send the Ping Period 5 seconds commands when the PowerToggle button is pressed and also only when the Kodi01 WOLPingPlus device in Vera is already OFF ?

I tried adding a Condition and it appears to work. Now when pressing the PowerToggle button again to turn OFF the Harmony activity it does not send the 5 seconds Ping Period command again.

More difficult need to work out how to send the 60 seconds Ping Period command when the WOLPingPlus device in Vera change to the ON status.

Maybe I can use the Label I added earlier in HR that changes to say the text “Ping - Yes” when the WOLPingPlus device in Vera has changed to ON.

Tried this and it does not work.

So I do not know how to send the 60 seconds Ping Period command when the WOLPingPlus device in Vera has changed from OFF to ON ?

I need to get into designer to play out what you are trying to do I will get back to you.

The first part is working OK, when pressing the PowerToggle button for the Harmony HTPC activity, Home Remote sends the HTTP command to Vera to change the Kodi01 WOLPingPlus devices Ping Period to 5 seconds.

The second part - I now need to be able to send the 60 seconds Ping Period HTTP command to Vera when the Kodi01 WOLPingPlus device has changed from OFF to ON.

But I have no idea how to do that in Home Remote, I have tried everything.

“IF” Switch X State changes to ON “THEN” do something - aka send the HTTP command.

I cannot see any way to do IF / THEN actions.

When monitoring the state of a switch ON or OFF and then to send the HTTP command when that switch changes to ON.

I’ve got it running on my phone now also in portrait mode.



Ok, This is how I would handle it I don’t think it will work via Home Remote since data triggers only allow for property changes thru setters. It would work in HR thru a button press event trigger for Off but that’s not what we want.

I would pass the 60 second logic off to Vera. Set up a triggered scene. The trigger being the on state of the ping. Add a few second delay and send the command via lua to set the sensor to 60 seconds.

Also, I think there is a HTTP plugin for Home Remote.

Exactly my problem. You can only set the “Event” of the Event Trigger for a button press not for the state change of a switch device.

image

I thought the “Loaded” may have done it in the example I posted a screen shot above, but that didn’t work.

I have considered this and it would be easy to do in PLEG. However if I turn on the HTPC by some other means and not via this page in Home Remote, then I am needlessly setting that Ping Period variable to 60 seconds when it will already be set to 60 seconds.

What is the advantage of using the HTTP plugin for Home Remote over what I have just done and created a HTTP device that connects to Vera in Home Remote.

I have considered this and it would be easy to do in PLEG. However if I turn on the HTPC by some other means and not via this page in Home Remote, then I am needlessly setting that Ping Period variable to 60 seconds when it will already be set to 60 seconds.

Set up a second condition in PLEG. A virtual switch that is triggered from the On press in HR. If it is not true PLEG will not send the command.

Bill would be better at explaining the plugins advantages if any. What you have may be fine.

OK I will have a think about it and use what I have setup for a while and see how happy I am with it.

I may not even need to set the Ping Period on the fly, but it would be nice to be able to do it.

The other thing you can do is set the 5 second with the on-press like you are doing and set a delay for the amount of time of your PC’s boot sequence + a few more seconds for good measure and then send the 60-second command. There is a new scene feature in Home Remote that should handle this.

Ok, Under further investigation. I do believe this can be handled in Home Remote thru the new scene feature. Download the sample project from

It should layout the framework for you.

A delay may work.

Its the Clicked Event on the EventTrigger for the Power button, that sends the HTTP command to Vera for 5 second Ping Period variable change on the PingWOLPlus device.

I can add a Delay in to that existing EventTrigger for say 1 minute and then send the second HTTP command to Vera to set the Ping Period back to 60 seconds on the PingWOLPlus device.

I’ve not used Scenes yet in Home Remote.

Yeah, it looks like scenes will be able to send the 60 second command on a trigger of the on state of the ping sensor but the delay may be a simpler way that just works. I mean the only downside is the 5 second setting will be on for a bit longer. You will have to see it it causes problems, luup restarts for one. Check out scenes though since it opens many doors into Home Remotes capabilities.

1 Like

OK I’ll take a look at Scenes. I didn’t think I’d end up using Scenes in HR as the Vera is the controller of the system and does all the logic.

But in some situations we might need to use Scenes in Home Remote as well.

1 Like

Yeah, most of my logic is handled in Reactor, There was no need to replicate it in Home remote at this point, unless Ezlo breaks Reactor which is not out of the question down the line.

Patrick has already said he has given up on the API’s for Reactor on the Ezlo hubs and has stopped work on a Reactor version for Ezlo platform.

That may change in the future if Ezlo do what he wanted them to do ? Unlikely though probably.

He has also mentioned something about a cross platform Reactor Logic Engine in the future.

No idea what systems he is thinking of supporting or how that maybe able to tie in to an Ezlo hub in the future ?

Melih has personally told me and stated on the forums that Ezlo will have their own advanced logic engine, but I doubt very much it would be as good a something like Reactor or even the ancient PLEG for that matter.

I don’t know what direction Ezlo are going in? Builiding on top of the already crappy Vera mobile app and their new MIOS app is just a rehash of it.

They should of ditched the Vera mobile app and built a brand new one from the ground up.

They also should of build the web GUI for the Ezlo hubs first and not even attempted doing any kind of mobile app, until we had a new UI7 replacement aka UI8.

You know the direction they are going in for a front end dashboard app, as you went in to see them about it. A feature parity Imperihome dashboard app, Melih told me days ago in about 4 weeks they will have some news to release to the community about it.

Imperihome feature parity dashboard app would be great for most Vera / Ezlo users.

However I am getting to the stage already with Home Remote that I don’t think any Ezlo dashboard app will be as good as what I am currently building with Home Remote.

Bill has told me he has interest in supporting the new Ezlo hubs and their new APIs for Home Remote integration at some point so that is welcomed news.

When I went to Ezlo’s office they told me that Patrick was working with them on integrating a logic platform. I have no idea if it is true.

And so they should, I told them already to just hire Patrick and licence his Reactor tech.

Maybe things have changed again then? How long ago did you go in to their offices?

It was quite a while ago now Patrick announced on the forum he had given up working on a Reactor version of Ezlo platform.

I was there in mid August.

September 24th here he said he had given up. So I doubt he is still working with them, unless things have changed again in the background.