Shelly dimmer

Good to all, I hope you are all well.
I don't know where to really put this, I hope someone can shed some light on how to deal with what I need to achieve.
I am controlling some LED bulbs with a shelly dimmer and it works perfectly, but now I need them to turn on at x power level between x hours.
Normally it is activated by movement and I already have this implanted, at x hours it lights up at 100% and at nights at 50%. It would need that when it turns on at 50% if I turn it off and turn on the switch it will turn on at 100% following its schedule to turn on at 50% if it is within its night hours due to movement.

any idea where to go? shelly configuration or ability to do this by programming in hubitat?

Sorry can you clarify please?

I think what you want is for the motion to continue as it does before but when you use the switch it to go to 100%?

If this is correct i need some things, your rule for you motion and how the switch works? is it another device? is it connected to the shelly dimmer? what events does it create when its pressed?

Thank you very much for your answers.
I try to clarify, it turns on 50% at night between two hours and turns off when there is no movement. during the day it lights up to 100%.
This works, what I would like is that if at night, you need 100% turning it on and off from the wall switch it would turn on 100%. Greetings and take good care of yourselves.

perfect i guessed correctly above, please answer those questions so I can help. I actually do something like this but with extra bits so that during the night i don't have to turn off then on the switch. the reason behind this is, if i'm using the switch at night and the light is already on i want the light on bright NOW not have to turn off then on again.

Actually now I have it in a test environment, so there is no probekma to change everything. Yes, shelly is connected to the switch so if you could put me that rule that you have and I adapt it to my case I would be very grateful. regards

it all depends on if the switch press creates a event? The event needs to be different to what is created if turned on through motion, even if it's as simple as physical and digital it should work.

1 Like

With just the shelly dimmer there is no difference between physical and digital. I would have to put two shelly, the one I have now for physical and the dimmer for digital to implement your solution, correct? Cheers.

If the input to the device doesn't give a event then yes and your going to struggle with a solution for this. In my example i have zigbee lamp and a input contact device, so that allows me to distinguish between the two events.
in another area i have a fibaro dimmer 2 and when you press the input it creates a button event then the ON or OFF whereas if you do it digitally it only creates the ON or OFF so again i can then decide from that.

So I will buy a fibaro dimmer 2 to test.
the idea is the following scenarios:
At night, if it detects movement, it turns on at 50%. if it is pressed once the physical switch is set to 100% and if it is pressed twice in less than 1s, it turns off.
during the day, it turns on by movement and if it is pressed once the physical switch is turned off.

In both cases, it turns off after 3 minutes if there is no movement.

Do you think that with the fibaro I will be able to do it?

Cheers.

yes, just note that the button event from fibaro dimmer 2 are not built in the HE driver. If enough people request it @mike.maxwell might be happy to add it. I use a custom driver and that bit of it works perfectly but there seem to be some oddities sometimes to the dimmer bit. That bit needs fixing, it works though.

So i use the built in motion lighting app for the motion side of things, I also use modes which makes this setup much easier.

Then as per the above, I also have inputs triggering the a RM rule to decide what else to do, so.

motion lighting app.

The fibaro actually has a few things built in that you can turn on or off ie 1 press turns on/off the light and creates a button event, but a double tap creates a different event type and by default sends the light to 100% (you can turn that off if wanted).

It also has 2 inputs so you can use a centre off retractive switch for ON/UP and OFF/DOWN or just the 1st input for single retractive (push to make) for ON/UP?OFF/DOWN.

So basically without any rules single press ON single press OFF double press ON and it goes to 100%

Thank you very much for all your information,

I will make a purchase and see if it works for me. according to your explanation it should work for me.

Thanks a lot.

1 Like

looks like it :+1:

@sanlulafra is this what you see on your device page? If you look on your logs and press the button does it send a button event? Then when you send a ON does it just send a state value and level but not a button?

2 Likes

I was with another controller,

he performed some quick tests and yes, he records the virtual button event and the physical button event and also identifies them differently.

it is a controller of father and son, the physical registers it in the father and the virtual in the son. It is great news,

I will see if I am able to do what I want. I keep you informed.

Thanks a lot.

2 Likes

tested and worked just the way you wanted.

delighted with hubitat, shelly, the new shelly controller for hubitat and the big community.

Thank you very much, take good care of yourselves.

3 Likes