GithubHelp home page GithubHelp logo

digiblur / esphome_lohas_led Goto Github PK

View Code? Open in Web Editor NEW
15.0 15.0 6.0 17 KB

Sample configuration to copy 2 channels of the same light type needed with ESPHome on the LOHAS Smart Bulbs

License: MIT License

C++ 100.00%

esphome_lohas_led's People

Contributors

codyjamestechnical avatar digiblur avatar ottowinter avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

esphome_lohas_led's Issues

LOHAS RGB + Tunable white

Hi Travis,

I will get one of these delivered tomorrow [(https://www.amazon.co.uk/gp/product/B07LBQYLTH/ref=ppx_od_dt_b_asin_title_s00?ie=UTF8&psc=1)]

It might be a bit of a leap without you having one but how would you expect the ESP Home code to need to change for these?

Thanks

LOHAS RGB+CCT bulb config

I copied the lohas_cct.yaml exactly. I updated the Wifi information and the mqtt information (though I would prefer not to use mqtt with ESPhome). Compiled the yaml and tried to upload to the bulb through the firmware page on Tasmota and keep getting an error saying "Upload Failed Not compatible".

Any thoughts?

I think esphome 1.20 kills lohas_cw_ww.yaml devices

Hi I updated my lohas warmwhite lamps recently after the release of esphome 1.20. Unfortunatly all of them are dead after the update. they give a short flicker, no wifi or even captive portal. so sth seems to go wrong. no issues before that with other esphome versions.
I use a barebone version of your lohas_cw_ww.yaml, so nothing special here. so be warned and if anyone has any ideas I would be glad.

Bulb quick flash

Using the ESPHome code, I'm just getting the light barely flashing on and then back off regardless of what I do. Any suggestions on what could be done?

LOHAS RGBW

I used your guide and I have the LOHAS RGBW bulbs in Home Assistant 0.109.6 without much fuss...so thanks for that!

I was wondering if there is a way to get the "warm white" effect with these same bulbs. Normally I just want a normal 40 - 60w warm white effect in my bedroom, but sometimes I also want to be able to change the color. IS that possible?

Lohas BR30 and 6" downlight RGBW doesn't retain state after power cycling.

@digiblur
I am a Newbie and I would like to commend you on your utube video explaining tuya convert and ESPHome yaml for the Lohas bulbs. They were at a perfect level for my understanding! I have a Lohas br30 and 6" downlights which both have an additional channel of CW which I was able to get running by modifying your code as follows:

copychan.h
`using namespace esphomelib::output;

class CopyOutput : public FloatOutput {
public:
FloatOutput *channel_a;
FloatOutput *channel_b;
FloatOutput *channel_c;

void write_state (float state) override {
channel_a->set_level (state);
channel_b->set_level (state);
channel_c->set_level (state);
}
};
`

lohasbr30.yaml
`my9231:
data_pin: GPIO13
clock_pin: GPIO15
num_channels: 6
num_chips: 2
update_on_boot: TRUE

output:

  • platform: my9231
    id: output_blue
    channel: 3
  • platform: my9231
    id: output_red
    channel: 5
  • platform: my9231
    id: output_green
    channel: 4
  • platform: my9231
    id: output_cw1
    channel: 0
  • platform: my9231
    id: output_cw2
    channel: 1
  • platform: my9231
    id: output_cw3
    channel: 2
  • platform: custom
    type: float
    lambda: |-
    auto *copy = new CopyOutput();
    copy->channel_a = id(output_cw1);
    copy->channel_b = id(output_cw2);
    copy->channel_c = id(output_cw3);
    return {copy};
    outputs:
    • id: cw
      `

However I cannot figure out how to make the bulb turn on to the previous setting after switching off and on with the normal light switch per Tasmoto operation. I tried both TRUE and FALSE for the update_on_boot setting to no avail and cannot find anything else in the ESPHome documentation. Is this an issue or just a Newbie user error?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.