HotWater Scene

hello all,

I have a question I am trying to wrap my head around. A few years back I created a quick scene to solve the fact that just before Bed time I set my hot water heater to turn on for a few minutes in the morning to give me hot water for a morning shower.

What I did was.

  1. created a Virtual Switch which was my just before bed trigger. I just switched it to on.
  2. had another virtual switch (lets call it 6am switch) which always turned on by a scene at 6am.
  3. a second schene had two triggers 1 and 2 being on which caused the hotwater to come on.
  4. a 3rd scene which has a generic role of switching the hot water heater off always after 30mins took care of the off.

Looking at all this a few years later makes me feel like an idiot :slight_smile:
I am sure there is a way to make it all much simpler. Certainly only one scene. Funny thing i dont understand is why the two ON virtual switches behave like AND in the scene. i.e. the scene triggers because both are on. it wont trigger if either is on. Is this logical? had i perhpas done something to the triggers? why cant a trigger be a time and a switch to make it simpler?

any ideas?

What device actually turns on the HotWater ?

A Thermostat device or a Relay switch or something?

1 Like

Use Reactor.

1 Like

hey CW-KID, a fibaro switch connected to a relay switch to avoid catching fire. simple enough on off device.

hey Tarkus ok trying it out. any idea why the current setup behaves like an and?

Personally I’d set this up in the PLEG logic engine I use or Reactor as just suggested.

However to do it in one Vera scene with no virtual switches I guess you would do it like this:

Create a scene with a schedule for 6am everyday

Select the device that turns on the hot water to ON

Add a Delayed Action:

Add a 30 minute delay

Turn OFF the Relay switch:

Select the House Mode the scene should run in:

Select Home, so the scene only runs when you are in Home Mode.

1 Like

hey CW Kid, this is pretty much what i have now with the exception that i am looking for an “AND” condition. the AND is that the scene triggers at 6am but only turns on the immersion heater IF a virtual switch i have was set as on.

i guess this means i should use some kind of LUA in addition to what you mentioned to only run the schene if virtual swithc device is set to on? right? how?

  1. do you understand why the current setup is behaving as an and? i.e. two virtual switches are set as triggers but neither alone triggers the scene? is this something vera does as a behavior?

  2. on a separate note, has the combination switch created once upon a time by Futzle broken?

You would enter this LUA code in to the Scene also.

The scene will only run when the virtual switch is turned on.

local dID = 101           -- Device ID of your VirtualSwitch
local allow = true       -- true runs scene if switch is on, false blocks it
local status = luup.variable_get("urn:upnp-org:serviceId:SwitchPower1","Status",dID)
return ((status == "1") == allow)

Depending on how you created your virtual switch? You may need to change the urn to the correct one:


Works for me for a virtual switch I created myself in Vera.

1 Like

I think that’s just the way Vera scenes work with multiple triggers if you say that’s how its behaving as an AND.

As I said I use PLEG logic engine rather than Vera scenes for almost everything.

1 Like

i should get around to understanding pleg :slight_smile:
for now i have this device via switchboard as the trigger urn:schemas-upnp-org:device:BinaryLight:1

(got the code, for some reason the font for the quotes was messing with it)

Go with Reactor over PLEG, easier to pick up and far more capable IMHO…

1 Like

Thanks Tarkus, I installed it but for now i dont think i need it for something this simple

Yes use Reactor if you are starting out today.

PLEG is older and not actively developed and harder to use I’ve been told.

But I’ve used PLEG for years and stuck with it, Reactor never even existed back then.

Best Home Automation shopping experience. Shop at getvera!

© 2021 Ezlo Innovation, All Rights Reserved. Terms of Use | Privacy Policy | Forum Rules