Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shelly Dimmer 2 support #1

Open
Ovw-lang opened this issue May 12, 2020 · 12 comments
Open

Shelly Dimmer 2 support #1

Ovw-lang opened this issue May 12, 2020 · 12 comments

Comments

@Ovw-lang
Copy link

Ovw-lang commented May 12, 2020

This is exactly what I was looking for! However, I do have some questions because the manual is still missing some parts for me. Do you also happen to be on tweakers?

@condemil
Copy link
Owner

Hello, you can find the guide under the following link: https://www.instructables.com/id/Shelly-Dimmer-Wall-Switch-With-Rotary-Knob-and-Hom/

@Ovw-lang
Copy link
Author

Thank you! Are you planning to keep updating the firmware?

@condemil
Copy link
Owner

It is feature complete for my purpose, if someone decides to make more features they can send merge requests.

@JacobSoderblom
Copy link

First off all, sorry for posting in an old issue!

This is awesome and thank you for sharing!

I notised that in the original firmware there is an option for button type called "rotary switch". Do you know if they have included your feature into their firmware? Because I cannot get it to work with that button type, the only thing that works is to dim down. It would be lovely if we do not need to flash the dimmer.

@Ovw-lang
Copy link
Author

@JacobSoderblom

I did ask this question directly at Shelly support. This is their answer:

_Yes, it can not be used with any rotary switch.
We are working on this integration. Do not use it for now.

Thank you for your time!

Kind regards,
Shelly Support Team_

@craggyh
Copy link

craggyh commented Oct 30, 2020

Hi

Does this firmware work on a Shelly Dimmer 2? I flashed it but doesn't seem to turn on the relay/dim etc?

@condemil
Copy link
Owner

I don't have Shelly Dimmer 2 to test it. You can try to backup your current firmware, check and if it doesn't work you can flash back the original firmware.

@craggyh
Copy link

craggyh commented Oct 30, 2020

I tried and the firmware loads fine but the dimmer doesn't do anything from Homeassistant. Presumably the GPIOs have changed on the Dimmer 2.

What rotary encoder did you use? I have a ky-040 but it seems to be different pinout that the one you used. You don't seem to be using any 3v3 on the Instructable, just 2x ground pins. Maybe I've missed something?

@condemil
Copy link
Owner

The pinout is different now, can be checked in here: https://shelly.cloud/knowledge-base/devices/shelly-dimmer-2/

Also based on this thread the communication protocol between esp8266 and stm32 is different so it will require some changes to the firmware to support Shelly Dimmer 2.

@condemil condemil changed the title Contact Shelly Dimmer 2 support Oct 31, 2020
@condemil
Copy link
Owner

condemil commented Oct 31, 2020

This is the pinout of the encoder I use:

     -------
A --|1     4|-- Switch
C --|2  o   |
B --|3     5|-- Switch
     -------

@craggyh
Copy link

craggyh commented Oct 31, 2020

Are you using any 3v to the encoder or just ground wires?
It looks like an EC11 encoder which is a bit different to the ky-040 which seems to require 3v3 or 5v

@condemil
Copy link
Owner

I connect it exactly like I showed it on the scheme/pictures in instructibles guide without any additional power supply.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants