Shelly 1 and Delay function block

764 views
Skip to first unread message

Peter Holden

unread,
Apr 4, 2022, 7:39:49 AM4/4/22
to Loxone English
I have a mirror demister pad wired through a Shelly1 using a Virtual Output.
The demister comes on using the Tree switch, however doesn't automatically turn off following a pre-set delay of 1800s.
I'm either misunderstanding how the delay block works (the delay only kicks in following a trigger from the switch) or it just doesn't work with a Shelly.
I think the former rather than the latter, but how to make it automatically turn off?
I imagine the answer is predictably simple! Thanks


Capture Mirror.JPG

Jonathan Dixon

unread,
Apr 4, 2022, 8:01:36 AM4/4/22
to Peter Holden, Loxone English
Do you have both "Command for ON" and "Command for Off" in the virtual output? Does it work correctly if wired up without the delay?

What sort of delay are you using?
For this sort of "auto off" ("Staircase switch") use case I tend to use a delayed pulse and feed that back into the "reset" input on the switch block. This was the switch is always showing the correct state in the UI. e.g. here
image.png
(note the output of the delay pulse is linked to feed back into the R input on the switch)


--
You received this message because you are subscribed to the Google Groups "Loxone English" group.
To unsubscribe from this group and stop receiving emails from it, send an email to loxone-englis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/loxone-english/6159741c-f9bb-4875-9630-b1b004246cd9n%40googlegroups.com.

Peter Holden

unread,
Apr 4, 2022, 8:19:01 AM4/4/22
to Loxone English
Hi Jon

Text for the VQ Command On/Off is /relay/0?turn=toggle, which works in Simulation mode without the Delay block. Actually, I've just confirmed my own suspicions that the delay only kicks in on an Off pulse from the switch, which isn't what I am trying to achieve.
I'll have a go at using your method - thank you for the reply.

Jonathan Dixon

unread,
Apr 4, 2022, 8:27:43 AM4/4/22
to Peter Holden, Loxone English
>Text for the VQ Command On/Off is /relay/0?turn=toggle

This sounds flaky as it will be easy for loxone and the shelly to get out of sync and an off pulse toggle it to on and vice-versa.

Better to use the absolute state setting commands:

Command for ON: /relay/0?turn=on
Command for OFF: /relay/0?turn=off



Screenshot 2022-04-04 at 13.26.04.png

Peter Holden

unread,
Apr 4, 2022, 9:13:00 AM4/4/22
to Loxone English
I've changed the Commands as suggested to on & off.
Adapted your Config also, which now does what I want it to do.

Capture Mirror2.JPG

Jonathan Dixon

unread,
Apr 4, 2022, 9:21:32 AM4/4/22
to Peter Holden, Loxone English
I'm slightly confused how that works as the output of the delay block is just a pulse (assuming it's a delayed pulse block).
I would expect the Q output of the switch to directly connect into the VQ virtual output (so the shelly state is always set to the current switch state), and the siwtch Q also connect to the delay block Tr to create the pulse to automatically turn it off again.
(this is more or less as I have it in the first image I sent - the switch Q output splits, to drive the delay pulse and also drive the towel radiator relay output)




Peter Holden

unread,
Apr 4, 2022, 10:19:00 AM4/4/22
to Loxone English
I tried your setup and it didn't activate the VQ. So, I reconfigured as per my setup and it now works.
Have just checked the function block and I used a delayed switch block as opposed to a delayed pulse block which I guess explains the discrepancy?

Rydens

unread,
Apr 5, 2022, 3:52:09 AM4/5/22
to Loxone English
FYI: You could also get the Shelly to turn off after a given delay:  http://192.168.xxx.xxx/relay/0?turn=on&timer=10
This would achieve the turn off but the state would not be reflected in Loxone, so the solution given above is good in this case.

Reply all
Reply to author
Forward
0 new messages