The source code for built-in drivers and apps is not available.
In the near future we will post the source code for some of the built-in virtual device drivers to provide examples of drivers and how these virtual ones work.
okā¦ does anyone have any thoughts what might be wrong with the driver I posted above?
Iām not worried about battery / beep etcā¦ Iād just like to retain the enabled / disabled function, but itās not updating presence state whether enabled or not.
Best way to get started is open up the realtime log in a separate tab or browser so you can refer to it (thereās no saved logfiles) and then click things. The generated error codes will help you narrow down what specifically isnāt working.
St wrote a custom internal parse method for this device, obviously we don't have that since it follows no published spec since it's a custom cluster. If all you're looking for is a way to disable these, I can add that, just let me know how that feature is supposed to work.
Itās useful when going on holiday and we donāt want to take the fobs with usā¦ we just disable them and leave in a drawer.
Also, I always keep a fob spare to give to guests staying more than a few days. Itās written into all relevant automations but I keep it disabled most the timeā¦ when used I just need to quickly enable it.
Itās also useful for when I want to appear away to other family members, but still be at home.
I could pull the battery but the little tabs are very easy to breakā¦ I could also use a simulated switch as an override for each sensor but that just clutters up the device list.
Another use some might like is to have a fob for a cleaner / nanny etc. and manually control when it should work.
If itās not too much trouble Iād really appreciate the addition.
Take it custom commands arenāt so easy to add then? In ST itās just a line at the top and a def further downā¦ is that not the case with Hubitat?
Iāve never automated the function thoughā¦ always been a manual thing as-and-when, so not having the custom command is no biggieā¦ just need the switch.
They are easy to add (I invented a way to use them), but not many apps can use them. so I can add a preference option to enable/disable it. On the newer models I can adjust the check in interval, which will extend battery life when not in use.
I donāt think changing the check in is possible on the two older models as it appears hard coded in the device.
I have webCoRE working to a point, but itās buggy as hell and Iām not the one to fix that!!
Iām a webCoRE power user, but not a coder by any stretch of the imagination!!
With Adrian working for ST now, it would be a huge conflict of interest for him to help out, but hopefully someone will come allong and fix all the glitches!
RuleMachine may not be as feature packed or user friendly, but it works well for basic automations and meets the needs of most.
Agree with that.
One of the first things I did was to screen my webCoRE pistons to identify everything that time critical and try to find a way to move them to Rule Machine. Somehow, even if webCoRE also runs locally, the overhead on it makes it nearly 40-60% slower than Rule Machine in most comparable scenarios. Its not a large variation in terms of seconds, but its still noticeable even in the most basic tasks. (Unless I am doing something wrong).
However, in terms of laying out complex logic or even connecting to web-hooks or external end-points, webCoRE absolutely excels! So most of my climate control and device monitoring tasks still run on webCoRE.
Good news that youāre having success. It will greatly ease my transition if pistons can execute on Hubitat. Be happy to share. Glad for the help. I have to get to another computer that will take a little while - perhaps late Friday your time.
Thanks again. It's just a test piston that responds to power switch from an Iris 3210-L and speaks a command on TTS devices (LANnouncer). The log shows the event but nothing actually executes. Ideas?