Evening all,
So today I finally got round to connecting our home-brew extension in the garage. This is basically just a Raspberry Pi with 4 relays, 7 switches, a DHT22 temp/humidity sensor & couple of PIRs connected to it. Works like a charm but... there are some funnies in the Miniserver that I'm curious about so hence the below...
As far as I can tell there are only 3 ways to get *instant* input into the Miniserver:
1. Loxone's proprietary tree devices.
2. KNX.
3. UDP virtual inputs.
4. 1-Wire fobs? Maybe? But the doco reads like you can only have one reader (or input) per 1-wire extension so that sounds like a non-starter.
Everything else seems to be done on a polling cycle so no good for switches. So naturally I chose to have the RPi spit out UDP messages and create virtual inputs in Loxone Config. In there I have this in the command recognition for the first input (the rest are the same, just the number changes):
switch.1.\v
The '\v' value the RPi spits out is either a one or zero as you press/release the switch - this works perfectly and can be seen in the UDP monitor.
You'd think then, that one should check the 'Use as a digital input' box, but that doesn't work. If I check this box it simply doesn't do anything (watching in Liveview) even though you can see UDP packets arriving in the monitor. If you leave that unchecked, yes, everything works as expected.
So what's the problem? Well - I just rebooted the Miniserver which came back thinking one of these inputs was high. No idea why, but that's no good - it was stuck on as of course the RPi won't send an 'off' (zero value message) until the switch is toggled (guess I could change that in the S/W and might, but still...). Thus problem is:
1. What's with the Miniserver coming back online after a reboot with this value? Seems a bit odd to say the least. There's no 'remanence' checkbox in UDP inputs so one would assume they would always come back with the default value (which is set at zero).
2. What is 'Use as a digital input' meant to do? Clearly it doesn't take \v as true/false, one/zero, etc. so what does it do?
Any ideas?
Cheers,
Robin
P.S. Please don't berate me for building something home-brew. I treat the house as 'mission critical' so have all the good stuff(tm) in there (all branded, good quality gear) but the garage isn't so important and wanted to tinker as I like to do that sort of thing. Doesn't hurt that it's hundreds of $$$ cheaper either! ;)