Most recent trigger

99 views
Skip to first unread message

DavidL

unread,
Feb 25, 2018, 12:36:47 PM2/25/18
to loxone-...@googlegroups.com

Afternoon.

I've been tinkering trying to get a way to show on the interface the most recently activated PIR sensor in a house.
I haven't been able to find a specific block that allows you to link in several inputs, to then show a specific output based on each one.
I came up with using a radio block, which works, but isn't the most elegant. The + and - icons annoy me in the interface.
Anyone got anything similar and care to expand on this at all?

David


Tico

unread,
Feb 26, 2018, 8:18:30 AM2/26/18
to Loxone English
You're almost there....

I would hang a State block off the AQ output of the Radio Button block. Within the State block, define the Text output for the given input value.

Uncheck the 'Use' box in the properties of the Radio Button block. You won't be needing to see it and this will remove the +/- symbols.

The State block will instead be the visual indicator.

DavidL

unread,
Feb 27, 2018, 4:37:51 AM2/27/18
to Loxone English
Perfect!

I've not had a need to use a state block before.

Thanks for the insight Tico.

David

Tico

unread,
Feb 27, 2018, 5:36:49 AM2/27/18
to loxone-...@googlegroups.com
You're welcome. I've come to find the State block is the most versatile function within Loxone Config. Here's some further detail and all credit to Romildo from the German Loxforum -

"There are many possibilities with the State block. You can also do calculations with it. This should be tested very well, because you can experience some surprises (refer to the interesting combinations in the table below).
It should also be noted that one can enter multiplications <v1.2*100>, and divisions <v1.2/100>. These are entered in the State block in the Status-text area, and not in the State value.

Here are a few examples with the outputs TQ and AQ with the analogue values AI1 = 5, AI2 = 2:
 

Simon Still

unread,
Feb 27, 2018, 8:00:27 AM2/27/18
to Loxone English


On Tuesday, 27 February 2018 09:37:51 UTC, DavidL wrote:
Perfect!

I've not had a need to use a state block before.

Thanks for the insight Tico

It has solved a few UI problems for me as well.  If you want to display the state of something in the app UI the State block is the way to do it. 

 

DavidL

unread,
Feb 28, 2018, 3:29:53 AM2/28/18
to Loxone English
I can see its pretty versatile now. I've often wondered about a more "programming" based if else logic, and this satisfies that without having to get in to picoc.

Thanks again.
Reply all
Reply to author
Forward
0 new messages