I fell sort of dumb asking this question, but the documentation I could find doesn’t help me, Googling throws up lots of links that are plain wrong and/or confusing. I have a simple test rig: Raspberry Pi 4B 4GB, Aeotec Z-Stick Gen5+, Fibaro FGS-213 Single Switch and openHAB 3.1.0 Release Build (the openHABian image). My goal is to automatically toggle the Fibaro switch every 30 seconds.
I had tinkered with so many settings I have gone back to having just 2 Things installed and online: the Z-Stick and the Fibaro switch. Where do I go from here to achieve my goal?
An aside: This is in preparation to transitioning about 25 Z-Wave nodes and some complex LUA coding from a VeraPlus.
Thanks for the links Christian, but the first just describes the fundamentals of Z-Wave and the second is no help because it has skipped forward several stages from where I am. I think I need to define Channels and Items first and this is where I came to following circular links in the documentation that then completely looses me. I can’t help feeling that I am missing something fundamental, somewhere.
I think I need an idiots guide to achieve my goal as stated above “My goal is to automatically toggle the Fibaro switch every 30 seconds.”
Can you control your device from UI? No point trying to automate without being able to control it first.
Then you’ll need to write a rule. Decide when you want this flashing to start. Decide if you ever need to stop it. These influence the structure of your rule.
Search posts here for flashing or beeping for ideas.
‘Things’ shows the FGS-213 as ‘ONLINE’. I have the switch in ‘Items’, ‘Channel Links’ shows it as ‘ONLINE’, but when I toggle the switch in the Item page nothing happens at the physical switch device.
Nothing there tells us there is any linkage between the Item you are poking, and the actual device.
You are going to have to follow the detail trail, and pay attention to types - stuff isn’t going to work if you link number channels to Switch Items.
So, start with your Thing in the UI, look at its channels, understand what they are. You won’t be able to turn lights on and off via a tamper alarm channel. See what Items are linked to channels, check that’s the same Item.
If I remove power from the FGS-213 I eventually get a ‘ERROR:COMM’ notification in Items. So, this leads me to think that it openHAB can ‘see’ the switch.
Make a careful note of your working Item name (not label, not description), so that you can refer to it in a rule.
Refer to post #6 for design decisions you must make.
You must also choose which of the several rule systems you wish to work with. You may have a preference for working with UI or text files, and/or a programming language variant. The choices are not well documented but there is a lot of discussion here.