I have updated the driver on my website to remove the previous multi-device code
The driver now also includes most features inc:
Added buttons to turn on relays
Ability to detach inputs from relays
Switches/buttons can be momentary
The use of up to 3 external temperature sensors
Temperature and humidity from an DHT22 external sensor
have your latest driver and I can't get the detach inputs to be updated to current state automatically in dashboard and in device page current states... I have to refresh to make work,,, What am I doing wrong?
Ohhh noooo ■■■■.... Then the uni inputs is not an good with hubitat. I mean for example if I connect it to a garagedoorsensor. When I open the garage door the light should go on asap...... Then it will change input in 1 minute so it will be dark in the garage up to a minute....
(I use a fibaro smart implant that is instant state)
The only other way would be to use MQTT with a separate broker.
Then it would be instant (but would also require a rewrite of the driver)
@Evilborg
Scott, did you do any tests on your other drivers with refresh times less than 1 minute?
I’m conscious that it would cause a lot of network traffic
If you have more than 25 devices I wouldn't refresh below 1 minute, in my tests it locked up or slowed the hubs. If you have more than 50 devices don't go below 5 minutes. This generates a ton of traffic and personally I only use auto refresh for certain devices that I need constant updates.
If you only have 2 or 3 devices under a minute refresh won't harm the C-5 hubs but I wouldn't push it past that number of devices.
One other thing to keep in mind about Shelly devices..... Turning on MQTT option in the settings will kill CLOUD access to them except for the battery powered ones.
The actions URL updates are typically very quick to respond and do not require polling or MQTT. Also, they would be easy to add without having to rework your driver much, @Cobra. You can set then up programmatically or even directly in the Shelly web interface.
I used those in my driver and have had great results with them on other Shelly devices in the past.
Fine
In my opinion doing everything from driver is redundant
It's not a complicated step and anyway Shelly's web page you are obliged to use it for the network address.
Guys
I originally I wrote my driver for a specific use in my Motorhome
I don't really want to spend any more time on it as it works for my use
I suggest you use @tomw's driver as he seems to have all the features worked out
I'll withdraw my version of the driver from my site
Thank you for this, Worked perfectly for my Uni - now available from the US site. I now have sump pump backup battery voltage on my dashboard. I may put one on my mower battery.
@tomw do you have an idea the output of my dhelly has to many digit after the . 12.990000367164612
Can of useless and quitte hard to put in a dashboard
Thank for this driver very usefull for my home ups with the grid and mostly with solar chaging
I got my Uni setup yesterday with the Shelly app, but haven't been able to add it as a device in Hubitat. I've tried creating it using @tomw drivers, but Hubitat gives and error and won't save it as a device.