Controlling normal bulbs brightness using Sonoff devices












5














I am doing a home automation project in which I should be able to control the lights on/off but more than that, the brightness of the lights.



I am using Home Assistant (not hassbian) and Node-Red along with MQTT.



I am using a normal bulb I purchased from a hardware store connected to a Sonoff ESP8266 and am able to use Node-RED to trigger a on and off state but am unsure how to trigger the specific brightness level.



Is it possible to control the brightness of any normal light that is made into a 'smart light' through the use of Sonoff? Or must they be devices that have that functionality made into the light itself.



(same for any other appliances, such as things such like a normal portable fan made into a smart fan through ESP8266 and controlling its speed.)










share|improve this question









New contributor




Eric Lim is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    5














    I am doing a home automation project in which I should be able to control the lights on/off but more than that, the brightness of the lights.



    I am using Home Assistant (not hassbian) and Node-Red along with MQTT.



    I am using a normal bulb I purchased from a hardware store connected to a Sonoff ESP8266 and am able to use Node-RED to trigger a on and off state but am unsure how to trigger the specific brightness level.



    Is it possible to control the brightness of any normal light that is made into a 'smart light' through the use of Sonoff? Or must they be devices that have that functionality made into the light itself.



    (same for any other appliances, such as things such like a normal portable fan made into a smart fan through ESP8266 and controlling its speed.)










    share|improve this question









    New contributor




    Eric Lim is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      5












      5








      5







      I am doing a home automation project in which I should be able to control the lights on/off but more than that, the brightness of the lights.



      I am using Home Assistant (not hassbian) and Node-Red along with MQTT.



      I am using a normal bulb I purchased from a hardware store connected to a Sonoff ESP8266 and am able to use Node-RED to trigger a on and off state but am unsure how to trigger the specific brightness level.



      Is it possible to control the brightness of any normal light that is made into a 'smart light' through the use of Sonoff? Or must they be devices that have that functionality made into the light itself.



      (same for any other appliances, such as things such like a normal portable fan made into a smart fan through ESP8266 and controlling its speed.)










      share|improve this question









      New contributor




      Eric Lim is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      I am doing a home automation project in which I should be able to control the lights on/off but more than that, the brightness of the lights.



      I am using Home Assistant (not hassbian) and Node-Red along with MQTT.



      I am using a normal bulb I purchased from a hardware store connected to a Sonoff ESP8266 and am able to use Node-RED to trigger a on and off state but am unsure how to trigger the specific brightness level.



      Is it possible to control the brightness of any normal light that is made into a 'smart light' through the use of Sonoff? Or must they be devices that have that functionality made into the light itself.



      (same for any other appliances, such as things such like a normal portable fan made into a smart fan through ESP8266 and controlling its speed.)







      mqtt esp8266 home-assistant node-red sonoff






      share|improve this question









      New contributor




      Eric Lim is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question









      New contributor




      Eric Lim is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question








      edited Dec 23 at 12:31









      Aurora0001

      13.3k1040144




      13.3k1040144






      New contributor




      Eric Lim is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked Dec 23 at 10:15









      Eric Lim

      284




      284




      New contributor




      Eric Lim is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Eric Lim is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Eric Lim is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          3 Answers
          3






          active

          oldest

          votes


















          5














          No, you cant do that using Sonoff. since,it is an on-off switch with relay.



          You need an Triac to do that. Normally the brgtness control applications for Ac will be done through Triac by changing the firing angle.






          share|improve this answer








          New contributor




          Satish Singupuram is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.


















          • Hi thanks for the suggestion on top of the answer! If I may ask, will the triac then enable me to control the brightness via nodered payload?
            – Eric Lim
            Dec 23 at 19:51










          • Yes, you need to design a Triac based dimmer circuitry.
            – Satish Singupuram
            Dec 23 at 19:58










          • Alright, thank you so much!
            – Eric Lim
            Dec 23 at 19:59



















          3














          No, most Sonoff devices are just remote controlled relays, they can only turn the power on or off.



          You can not use them to dim lights.






          share|improve this answer





























            1














            There are devices made specially for dimming using only on-off impulses to set the brightness. A common pattern is to use a short on/off signal for on/off, and a longer on/off signal to increase brightness in n % steps.



            So provided you can make the Sonoff switch on and off sufficiently fast, and reliably to get the timing right, adding a device like this or any other similar impulse switch with dimmer should work.



            (Note that I'm not suggesting to pulse-width modulate it - the shortest impulse necessary is ~0,5 sec. The output remains as set, until it receives the next command signal).






            share|improve this answer










            New contributor




            dlatikay is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.


















            • The Sonoff drive a relay, you really should not be driving these on/off quickly as you will just end up welding the contacts
              – hardillb
              Dec 23 at 22:22










            • Please clarify that via edit in your answer. Future readers should not need to read the comments.
              – Helmar
              Dec 24 at 0:19











            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "666"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });






            Eric Lim is a new contributor. Be nice, and check out our Code of Conduct.










            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fiot.stackexchange.com%2fquestions%2f3714%2fcontrolling-normal-bulbs-brightness-using-sonoff-devices%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            3 Answers
            3






            active

            oldest

            votes








            3 Answers
            3






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            5














            No, you cant do that using Sonoff. since,it is an on-off switch with relay.



            You need an Triac to do that. Normally the brgtness control applications for Ac will be done through Triac by changing the firing angle.






            share|improve this answer








            New contributor




            Satish Singupuram is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.


















            • Hi thanks for the suggestion on top of the answer! If I may ask, will the triac then enable me to control the brightness via nodered payload?
              – Eric Lim
              Dec 23 at 19:51










            • Yes, you need to design a Triac based dimmer circuitry.
              – Satish Singupuram
              Dec 23 at 19:58










            • Alright, thank you so much!
              – Eric Lim
              Dec 23 at 19:59
















            5














            No, you cant do that using Sonoff. since,it is an on-off switch with relay.



            You need an Triac to do that. Normally the brgtness control applications for Ac will be done through Triac by changing the firing angle.






            share|improve this answer








            New contributor




            Satish Singupuram is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.


















            • Hi thanks for the suggestion on top of the answer! If I may ask, will the triac then enable me to control the brightness via nodered payload?
              – Eric Lim
              Dec 23 at 19:51










            • Yes, you need to design a Triac based dimmer circuitry.
              – Satish Singupuram
              Dec 23 at 19:58










            • Alright, thank you so much!
              – Eric Lim
              Dec 23 at 19:59














            5












            5








            5






            No, you cant do that using Sonoff. since,it is an on-off switch with relay.



            You need an Triac to do that. Normally the brgtness control applications for Ac will be done through Triac by changing the firing angle.






            share|improve this answer








            New contributor




            Satish Singupuram is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.









            No, you cant do that using Sonoff. since,it is an on-off switch with relay.



            You need an Triac to do that. Normally the brgtness control applications for Ac will be done through Triac by changing the firing angle.







            share|improve this answer








            New contributor




            Satish Singupuram is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.









            share|improve this answer



            share|improve this answer






            New contributor




            Satish Singupuram is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.









            answered Dec 23 at 18:45









            Satish Singupuram

            1662




            1662




            New contributor




            Satish Singupuram is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.





            New contributor





            Satish Singupuram is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.






            Satish Singupuram is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.












            • Hi thanks for the suggestion on top of the answer! If I may ask, will the triac then enable me to control the brightness via nodered payload?
              – Eric Lim
              Dec 23 at 19:51










            • Yes, you need to design a Triac based dimmer circuitry.
              – Satish Singupuram
              Dec 23 at 19:58










            • Alright, thank you so much!
              – Eric Lim
              Dec 23 at 19:59


















            • Hi thanks for the suggestion on top of the answer! If I may ask, will the triac then enable me to control the brightness via nodered payload?
              – Eric Lim
              Dec 23 at 19:51










            • Yes, you need to design a Triac based dimmer circuitry.
              – Satish Singupuram
              Dec 23 at 19:58










            • Alright, thank you so much!
              – Eric Lim
              Dec 23 at 19:59
















            Hi thanks for the suggestion on top of the answer! If I may ask, will the triac then enable me to control the brightness via nodered payload?
            – Eric Lim
            Dec 23 at 19:51




            Hi thanks for the suggestion on top of the answer! If I may ask, will the triac then enable me to control the brightness via nodered payload?
            – Eric Lim
            Dec 23 at 19:51












            Yes, you need to design a Triac based dimmer circuitry.
            – Satish Singupuram
            Dec 23 at 19:58




            Yes, you need to design a Triac based dimmer circuitry.
            – Satish Singupuram
            Dec 23 at 19:58












            Alright, thank you so much!
            – Eric Lim
            Dec 23 at 19:59




            Alright, thank you so much!
            – Eric Lim
            Dec 23 at 19:59











            3














            No, most Sonoff devices are just remote controlled relays, they can only turn the power on or off.



            You can not use them to dim lights.






            share|improve this answer


























              3














              No, most Sonoff devices are just remote controlled relays, they can only turn the power on or off.



              You can not use them to dim lights.






              share|improve this answer
























                3












                3








                3






                No, most Sonoff devices are just remote controlled relays, they can only turn the power on or off.



                You can not use them to dim lights.






                share|improve this answer












                No, most Sonoff devices are just remote controlled relays, they can only turn the power on or off.



                You can not use them to dim lights.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Dec 23 at 11:12









                hardillb

                6,0511726




                6,0511726























                    1














                    There are devices made specially for dimming using only on-off impulses to set the brightness. A common pattern is to use a short on/off signal for on/off, and a longer on/off signal to increase brightness in n % steps.



                    So provided you can make the Sonoff switch on and off sufficiently fast, and reliably to get the timing right, adding a device like this or any other similar impulse switch with dimmer should work.



                    (Note that I'm not suggesting to pulse-width modulate it - the shortest impulse necessary is ~0,5 sec. The output remains as set, until it receives the next command signal).






                    share|improve this answer










                    New contributor




                    dlatikay is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                    Check out our Code of Conduct.


















                    • The Sonoff drive a relay, you really should not be driving these on/off quickly as you will just end up welding the contacts
                      – hardillb
                      Dec 23 at 22:22










                    • Please clarify that via edit in your answer. Future readers should not need to read the comments.
                      – Helmar
                      Dec 24 at 0:19
















                    1














                    There are devices made specially for dimming using only on-off impulses to set the brightness. A common pattern is to use a short on/off signal for on/off, and a longer on/off signal to increase brightness in n % steps.



                    So provided you can make the Sonoff switch on and off sufficiently fast, and reliably to get the timing right, adding a device like this or any other similar impulse switch with dimmer should work.



                    (Note that I'm not suggesting to pulse-width modulate it - the shortest impulse necessary is ~0,5 sec. The output remains as set, until it receives the next command signal).






                    share|improve this answer










                    New contributor




                    dlatikay is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                    Check out our Code of Conduct.


















                    • The Sonoff drive a relay, you really should not be driving these on/off quickly as you will just end up welding the contacts
                      – hardillb
                      Dec 23 at 22:22










                    • Please clarify that via edit in your answer. Future readers should not need to read the comments.
                      – Helmar
                      Dec 24 at 0:19














                    1












                    1








                    1






                    There are devices made specially for dimming using only on-off impulses to set the brightness. A common pattern is to use a short on/off signal for on/off, and a longer on/off signal to increase brightness in n % steps.



                    So provided you can make the Sonoff switch on and off sufficiently fast, and reliably to get the timing right, adding a device like this or any other similar impulse switch with dimmer should work.



                    (Note that I'm not suggesting to pulse-width modulate it - the shortest impulse necessary is ~0,5 sec. The output remains as set, until it receives the next command signal).






                    share|improve this answer










                    New contributor




                    dlatikay is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                    Check out our Code of Conduct.









                    There are devices made specially for dimming using only on-off impulses to set the brightness. A common pattern is to use a short on/off signal for on/off, and a longer on/off signal to increase brightness in n % steps.



                    So provided you can make the Sonoff switch on and off sufficiently fast, and reliably to get the timing right, adding a device like this or any other similar impulse switch with dimmer should work.



                    (Note that I'm not suggesting to pulse-width modulate it - the shortest impulse necessary is ~0,5 sec. The output remains as set, until it receives the next command signal).







                    share|improve this answer










                    New contributor




                    dlatikay is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                    Check out our Code of Conduct.









                    share|improve this answer



                    share|improve this answer








                    edited Dec 24 at 8:43





















                    New contributor




                    dlatikay is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                    Check out our Code of Conduct.









                    answered Dec 23 at 22:17









                    dlatikay

                    1113




                    1113




                    New contributor




                    dlatikay is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                    Check out our Code of Conduct.





                    New contributor





                    dlatikay is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                    Check out our Code of Conduct.






                    dlatikay is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                    Check out our Code of Conduct.












                    • The Sonoff drive a relay, you really should not be driving these on/off quickly as you will just end up welding the contacts
                      – hardillb
                      Dec 23 at 22:22










                    • Please clarify that via edit in your answer. Future readers should not need to read the comments.
                      – Helmar
                      Dec 24 at 0:19


















                    • The Sonoff drive a relay, you really should not be driving these on/off quickly as you will just end up welding the contacts
                      – hardillb
                      Dec 23 at 22:22










                    • Please clarify that via edit in your answer. Future readers should not need to read the comments.
                      – Helmar
                      Dec 24 at 0:19
















                    The Sonoff drive a relay, you really should not be driving these on/off quickly as you will just end up welding the contacts
                    – hardillb
                    Dec 23 at 22:22




                    The Sonoff drive a relay, you really should not be driving these on/off quickly as you will just end up welding the contacts
                    – hardillb
                    Dec 23 at 22:22












                    Please clarify that via edit in your answer. Future readers should not need to read the comments.
                    – Helmar
                    Dec 24 at 0:19




                    Please clarify that via edit in your answer. Future readers should not need to read the comments.
                    – Helmar
                    Dec 24 at 0:19










                    Eric Lim is a new contributor. Be nice, and check out our Code of Conduct.










                    draft saved

                    draft discarded


















                    Eric Lim is a new contributor. Be nice, and check out our Code of Conduct.













                    Eric Lim is a new contributor. Be nice, and check out our Code of Conduct.












                    Eric Lim is a new contributor. Be nice, and check out our Code of Conduct.
















                    Thanks for contributing an answer to Internet of Things Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.





                    Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                    Please pay close attention to the following guidance:


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fiot.stackexchange.com%2fquestions%2f3714%2fcontrolling-normal-bulbs-brightness-using-sonoff-devices%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Terni

                    A new problem with tex4ht and tikz

                    Sun Ra