Any chance someone could show me how to do this or post a simple solution? I can work the front end UI on my dashboard, no problem. But I'm not sure how to build a driver like that (off/on/away).
Just set it up. Works perfectly. I now have a very advanced dog lol. Off, On (always barks) or Away (barks only if everyone is out). Set by Button on a dashboard.
but after creating a tile in a Dashboard and setting it with either a switch or a button template, I only get ON/OFF as a switch and nothing when set as a button.
Using @Cobra's driver (which can be accessed by registering at his site https://cobra-apps.co.uk/), it is very easy to set up a button tile which then drives the switch state (up to 4 are allowed) which can be reported in another tile. This is the one I set up for my dog bark (which has 3 states; off, on, and away). It works perfectly and I think the UI is good enough. It would be better as 3 radio buttons of course....
what code would you add to to this to make it auto go to Away after 2 seconds. ... from on or off.
In my case, I want to control 2 different IFTTT triggers, but system might be On, and the switch here already Off, so I can't command it Off (more like a momentary on/off with a neutral resting possition.
HI Angus I don't know if your rules needed to set the custom attribute. If so perhaps you could look at my other post Setting a custom attribute if you know.
Hiyah. No I don't think I had to do that for my use case, sorry. I see a reply already from someone to your question regarding custom attribute setting. Maybe that will assist you.
These are both great drivers!
Now, comes the seemingly obvious question: how I get them to apply to an actual physical device?
I created a virtual button/switch for them, but that is where I am now stumped.
Use Rule Machine to set up some rules that switch the actually device based on the state of the virtual device. The trigger would be a change to the virtual device. Then a set of conditionals that say if the virtual device is set to X, then set the physical device to Y, or suchlike.
I'm new to hubitat, but getting the hang of it so far. I am trying to use HSM and get my current Zwave based alarm system migrated over from Indigo. One thing I have is a control panel which is in Node-Red and gets it's values via MQTT. So I am trying to get the states of HSM into MQTT and the only way I can see to do this at the moment is using a Multi-positional switch and rule engine to set the switch when HSM changes. The switch is then exposed to MQTT sunig the MQTT link.
I have signed up to the Cobra Apps site, but my account hasn't been activated, any idea on how long this normally takes?
Any better ways to achieve a link between HSM and MQTT?