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

The lights are flickering without warning #758

Closed
albukrek opened this issue Aug 19, 2017 · 12 comments
Closed

The lights are flickering without warning #758

albukrek opened this issue Aug 19, 2017 · 12 comments

Comments

@albukrek
Copy link

albukrek commented Aug 19, 2017

First of all Thanks, for your wonderful work!

(All devices have Sonoff-Tasmota-5.5.0)

I have installed three Sonoff units a few days ago.

  • (2) Sonoff basic
    • This unit is responsible for the 2 night lamps
  • (1) Sonoff 4-channel
    • One channel is responsible for the main light in the room
    • The other three channels control the fan.

All the lamps are connected on one side to the old switches on the wall, and on the other side to GPIO 14 in the basics, and the 4-channel lamp switch to GPIO 3.

The old fan switch has been replaced by WEMOS d1 pro so that the Sonoff GPIO is not used for the fan channels.

In general, everything works properly, but when turning on or off one off the lights manually, occasionally without warning the lamp toggles.

We think it happens only in case the old switch is used, so in order to test this hypothesis yesterday and today we lit the light only through the Home Assistant and the occasionally toggling have disappeared, except for one case of shutdown and fire back almost immediately.

I'm sure that I have done something wrong, please advise me how to fix this problem.

P.S. Every unit has a unique topic and group. The client id is generated automatically by default.

Thank's
Arik

@albukrek
Copy link
Author

albukrek commented Aug 27, 2017

I Think that there is a simple solution for my problem:

  1. The Sonoff devices were updated to version5.6.1
  2. Change the topic of the mqtt from stat to cmnd (for more detailes see this wiki topic )
    Run commands:
    SwitchTopic 2.
    SwitchMode to 1
    I'm not sure, but maybe this way it the switch state is retained in the MQTT

Anyway, if there will be no more toggles I will close my issue...

Thanks

@albukrek
Copy link
Author

The above fix has one drawback, every 50 minutes or so the relay flickers.

Can anyone help please help me?

@albukrek
Copy link
Author

Found the problems:

  1. Topic name in home assistant was written in lower case, while in Sonoff-Tasmota the name is all in upper case.
  2. Some retain topic were left on the MQTT server, these topics were deleted.

Thanks!
screen shot 2017-08-28 at 10 19 18 pm

@PeggyFree
Copy link

PeggyFree commented Aug 29, 2017 via email

@davidelang
Copy link
Collaborator

davidelang commented Aug 29, 2017 via email

@mkh595
Copy link

mkh595 commented Aug 29, 2017

You can see retained messages e.g. in MQTTfx client. If you subscribe topic, you will receive first all retained messages (if there are any)

mqttfx

@albukrek
Copy link
Author

albukrek commented Sep 3, 2017

Sorry to report, but the issue had, returned...
This time it only happens when the switch is in an open state (circuit is open) from #665 , #484, #100 and others, I got to the conclusion that the solution may be adding a pullup resistor and capacitor.

The issue happens only in a switch that is about 3m from the Sonoff 4ch. I suspect that there is some electric inteference.

I hope the pullup resistor and capacitor will solve the problem, otherwise my wife will thow me and the smart house out...

@albukrek albukrek reopened this Sep 3, 2017
@albukrek albukrek changed the title The lights go out and go on without warning The lights are flickering without warning Sep 3, 2017
@albukrek
Copy link
Author

albukrek commented Sep 8, 2017

Working fine after adding a pullup resistor and capacitor.

@albukrek albukrek closed this as completed Sep 8, 2017
@aspitznyc
Copy link

Hi @albukrek what size of capacitor did you use? And where did you put it? Between which pins? Thanks!!!

@davidelang
Copy link
Collaborator

davidelang commented Oct 23, 2017 via email

@aspitznyc
Copy link

aspitznyc commented Oct 24, 2017 via email

@davidelang
Copy link
Collaborator

davidelang commented Oct 24, 2017 via email

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

5 participants