Vote for Shelly UNI

I haven't posted the new one yet - still working on it

1 Like

LOL you aren't kidding !! You must have spent some time adding // to all those lines!

1 Like

Yep!
I just wanted to get something working for my adc voltage
I have cleaned up and rewrote a lot of it now :slight_smile:
There is not a lot of your code left :slight_smile:

I would think so -- that driver supports many Shelly devices

1 Like

Yeah, I just needed to grab the basic url calls etc.

1 Like

@tomw and @Cobra if you guys will/can post your drivers in this thread that would be helpful on keeping all the drivers under 1 thread. Yes I know they are yours but it simplifies were most people will go....

Scott, you know my answer to this :slight_smile:

I don't post my code to this forum anymore, even the open source stuff :slight_smile:
When it's ready I'll post a link to where it will be on my website
:innocent: :slight_smile:

3 Likes

Ya I know but maybe you will make an exception in this case :smiley: A link to your site would be enough... no reason to post any actual code.

1 Like

nope :slight_smile: :rofl: :joy:

Actually, I don't a have public github to put it on anyway

1 Like

@tomw
I just tested and sending the inputs 'high' just turns on the switch relays
So it is not really an independent input

1 Like

Ah, interesting.

I was thinking that this setting would detach the inputs from the outputs:

btn_type string Accepted values: momentary, toggle, edge, detached, action, momentary_on_release

I read this in the Shelly 2.5 section and assumed the Uni worked the same way:

Upon power-on, outputs are initialized using one of 4 available strategies:

    Keep output OFF
    Turn output ON
    Restore the state of the output from before the power loss
    Read the physical switch state and configure the output accordingly, if the selected input type can provide this information

Physical input switches can be one of:

    a momentary, push-button switch
    a toggle switch with two stable states
    an "edge" switch. In this input mode, every switch state transition causes a toggle of the output state. This can be used with input from existing two-way switch installations
    detached, inputs do not control the relays
    activation switch -- each event turns the channel on and resets the auto-off timer

I have a 2.5 but will admit that I haven't tried this behavior with either the 2.5 or Uni. But I figured it you used 'detached' mode the outputs would be software control only and that you'd still be able to read the input states.

Maybe @Evilborg knows if the outputs work this way with the 2.5 (or other devices)?

So
setting button_type: detached would just give inputs without activation of the relays.. interesting enough to try it

1 Like

It does :slight_smile:

1 Like

Cool. I updated my driver to set the button type as 'detached' for both relays. Thanks for confirming.

Well the uni is a complement to Fibaro smart implant...but alot cheeper. I have a projekt were I am going to build autofilling of water in my Miele espresso machine . I will use a Ikea Knycklan water valve and a watersensor 0-10v . Here is a link with use case of the UNI.
/Mattias
Hope your arabic is good :wink:

1 Like

Which water sensor did you use?
Do you have a link to the device please?

Andy

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

The driver is in 'Drivers -> Unsupported drivers'

Andy

Done!

Andy

1 Like

Here it is. Have not got it yet.
/M

1 Like

HI.Super good work Cobra! I

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?