jonathanadams / esphome-configs

ESPHome Device Configurations Repository - A database of user submitted configurations for a variety of devices which can be flashed to run ESPHome.io firmware.
https://ESPHome-Configs.io
GNU General Public License v3.0
68 stars 96 forks source link

Cant turn off light using Arlec-Grid-Connect-Smart_LED-Globe-CWWW #90

Closed muzzak123 closed 4 years ago

muzzak123 commented 4 years ago

Hi, Thx for you work with the Arlec-Grid-Connect-Smart_LED-Globe-CWWW config. I've flashed my light with it and can now do transitions, but when I try to turn it off using the Homes Assistant entity the log shows [11:53:48][D][light:273]: State: OFF [11:53:48][D][light:303]: Transition Length: 1.0s but nothing happens. It just stays on.

jonathanadams commented 4 years ago

Are you using exactly the same config as what is in the repo/website. If not can you post your config and I will see if i can help?

muzzak123 commented 4 years ago

My config is:

esphome:

  includes:
    - esphome_arlec_light_component.h

  name: arlec_smart_globe
  platform: ESP8266
  board: esp01_1m
  esp8266_restore_from_flash: true

wifi:
  ssid: MYSSID
  password: MYPASSWORD
  reboot_timeout: 0s
  manual_ip:
    static_ip: 192.168.0.30
    gateway: 192.168.0.1
    subnet: 255.255.255.0

  ap:
    ssid: "Globe Fallback Hotspot"
    password: "password"

captive_portal:

logger:

api:
  reboot_timeout: 0s
  password: "MYPWD"

ota:
  password: "MYPWD"

output:
  - platform: esp8266_pwm
    id: dimmer
    pin: GPIO5
  - platform: esp8266_pwm
    id: color_temp
    pin: GPIO13

light:
  - platform: custom
    lambda: |-
      auto light_out = new ArlecCustomLight(id(dimmer), id(color_temp));
      App.register_component(light_out);
      return {light_out};
    lights:
      - name: "Study Overhead"
        restore_mode: RESTORE_DEFAULT_ON
jonathanadams commented 4 years ago

@murraykessell It maybe worth asking in the ESPHome discord (https://discord.gg/35aMWdX) or filing a bug in https://github.com/cdmonk/esphome_ArlecSmartGlobe for the custom component that @cdmonk wrote as I'm not too sure about what is happening.

muzzak123 commented 4 years ago

FYI

From: cdmonk notifications@github.com Sent: Wednesday, 29 April 2020 7:53 AM To: cdmonk/esphome_ArlecSmartGlobe esphome_ArlecSmartGlobe@noreply.github.com Cc: murraykessell muzza@internode.on.net; Author author@noreply.github.com Subject: Re: [cdmonk/esphome_ArlecSmartGlobe] Cant turn off Arlec-Grid-Connect-Smart_LED-Globe-CWWW light using HA (#1)

Don't worry. I have replicated it. The same thing happens for me I apparently never tested turning it on and off as my use case didn't require it. I assumed that it would work. Let me look at it.

From: Jonathan Adams notifications@github.com Sent: Wednesday, 29 April 2020 10:23 PM To: jonathanadams/esphome-configs esphome-configs@noreply.github.com Cc: murraykessell muzza@internode.on.net; Mention mention@noreply.github.com Subject: Re: [jonathanadams/esphome-configs] Cant turn off light using Arlec-Grid-Connect-Smart_LED-Globe-CWWW (#90)

Closed #90 https://github.com/jonathanadams/esphome-configs/issues/90 .

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/jonathanadams/esphome-configs/issues/90#event-3284864870 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AMIWNWJARH2TN3LC2PW4GQTRPAZ5VANCNFSM4MRSHKBQ . https://github.com/notifications/beacon/AMIWNWMG3XP2YKBQN23J4Y3RPAZ5VA5CNFSM4MRSHKB2YY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOYPFQ6ZQ.gif