esphome / issues

Issue Tracker for ESPHome
https://esphome.io/
290 stars 35 forks source link

Shelly Dimmer 2 freezes and maintains light at full brightness after it's turned on #3446

Open poldim opened 2 years ago

poldim commented 2 years ago

The problem

The dimmer connects to wifi and shows up in the dashboard as expected. I can connect and see logs. But if I turn it on, it goes to 100% brightness and then does not respond to any lighting changes. IE trying to dim it, turn it off, etc. The only thing I can do is reboot the ESP via a soft restart switch.

Which version of ESPHome has the issue?

v2022.7.0-dev

What type of installation are you using?

Docker

Which version of Home Assistant has the issue?

2022.7.5

What platform are you using?

ESP8266

Board

shelly

Component causing the issue

shelly_dimmer

Example YAML snippet

logger:
  baud_rate: 0

uart:
  tx_pin: 1
  rx_pin: 3
  baud_rate: 115200

light:
- platform: shelly_dimmer
  name: "${friendly_name}"
  id: this_light
  power:
    name: "${friendly_name} Power"
  voltage:
    name: "${friendly_name} Voltage"
  current:
    name: "${friendly_name} Current"
  leading_edge: true
  # warmup_brightness: 200
  # min_brightness: -100
  # max_brightness: 500
  firmware:
    version: "51.6"
    update: true
  # gamma_correct: 1
  # default_transition_length: 1s
  restore_mode: RESTORE_DEFAULT_OFF

sensor:

Anything in the logs that might be useful for us?

INFO Reading configuration /config/esphome-dining-room-chandelier.yaml...
INFO Starting log output from esphome-dining-room-chandelier.local using esphome API
INFO Successfully connected to esphome-dining-room-chandelier.local
[07:54:03][I][app:102]: ESPHome version 2022.7.0-dev compiled on Jul 14 2022, 23:54:07
[07:54:03][C][wifi:491]: WiFi:
[07:54:03][C][wifi:353]:   Local MAC: 34:94:54:71:BD:C1
[07:54:03][C][wifi:354]:   SSID: [redacted]
[07:54:03][C][wifi:355]:   IP Address: 10.30.30.198
[07:54:03][C][wifi:356]:   BSSID: [redacted]
[07:54:03][C][wifi:358]:   Hostname: 'esphome-dining-room-chandelier'
[07:54:03][C][wifi:360]:   Signal strength: -60 dB ▂▄▆█
[07:54:03][C][wifi:364]:   Channel: 1
[07:54:03][C][wifi:365]:   Subnet: 255.255.255.0
[07:54:03][C][wifi:366]:   Gateway: 10.30.30.1
[07:54:03][C][wifi:367]:   DNS1: 10.30.30.1
[07:54:03][C][wifi:368]:   DNS2: 0.0.0.0
[07:54:03][C][logger:275]: Logger:
[07:54:03][C][logger:276]:   Level: DEBUG
[07:54:03][C][logger:277]:   Log Baud Rate: 0
[07:54:03][C][logger:278]:   Hardware UART: UART0
[07:54:03][C][uart.arduino_esp8266:102]: UART Bus:
[07:54:03][C][uart.arduino_esp8266:103]:   TX Pin: GPIO1
[07:54:03][C][uart.arduino_esp8266:104]:   RX Pin: GPIO3
[07:54:03][C][uart.arduino_esp8266:106]:   RX Buffer Size: 256
[07:54:03][C][uart.arduino_esp8266:108]:   Baud Rate: 115200 baud
[07:54:03][C][uart.arduino_esp8266:109]:   Data Bits: 8
[07:54:03][C][uart.arduino_esp8266:110]:   Parity: NONE
[07:54:03][C][uart.arduino_esp8266:111]:   Stop bits: 1
[07:54:03][C][uart.arduino_esp8266:113]:   Using hardware serial interface.
[07:54:03][C][light:104]: Light 'Dining Room Chandelier'
[07:54:03][C][light:106]:   Default Transition Length: 1.0s
[07:54:03][C][light:107]:   Gamma Correct: 1.00
[07:54:03][C][restart:022]: Restart Switch 'Dining Room Chandelier REBOOT'
[07:54:03][C][restart:022]:   Icon: 'mdi:restart'
[07:54:03][C][version.text_sensor:021]: Version Text Sensor 'Dining Room Chandelier ESPHome Version'
[07:54:03][C][version.text_sensor:021]:   Icon: 'mdi:new-box'
[07:54:04][C][status:034]: Status Binary Sensor 'Dining Room Chandelier Connected Status'
[07:54:04][C][status:034]:   Device Class: 'connectivity'
[07:54:04][C][captive_portal:088]: Captive Portal:
[07:54:04][C][web_server:125]: Web Server:
[07:54:04][C][web_server:126]:   Address: esphome-dining-room-chandelier.local:80
[07:54:04][C][mdns:084]: mDNS:
[07:54:04][C][mdns:085]:   Hostname: esphome-dining-room-chandelier
[07:54:04][C][ota:085]: Over-The-Air Updates:
[07:54:04][C][ota:086]:   Address: esphome-dining-room-chandelier.local:8266
[07:54:04][C][api:138]: API Server:
[07:54:04][C][api:139]:   Address: esphome-dining-room-chandelier.local:6053
[07:54:04][C][api:143]:   Using noise encryption: NO
[07:54:04][C][shelly_dimmer:116]: ShellyDimmer:
[07:54:04][C][shelly_dimmer:117]:   NRST Pin: GPIO5
[07:54:04][C][shelly_dimmer:118]:   BOOT0 Pin: GPIO4
[07:54:04][C][shelly_dimmer:120]:   Leading Edge: YES
[07:54:04][C][shelly_dimmer:121]:   Warmup Brightness: 100
[07:54:04][C][shelly_dimmer:124]:   Minimum Brightness: 0
[07:54:04][C][shelly_dimmer:125]:   Maximum Brightness: 1000
[07:54:04][C][shelly_dimmer:127]:   Update Interval: 10.0s
[07:54:04][C][shelly_dimmer:129]:   STM32 current firmware version: 51.6 
[07:54:04][C][shelly_dimmer:130]:   STM32 required firmware version: 51.6
[07:54:10][D][shelly_dimmer:269]: Sending command: 0x10 (0 bytes) payload 0x
[07:54:10][D][shelly_dimmer:281]: Command sent, waiting for reply
[07:54:10][D][shelly_dimmer:391]: Got frame: 0x10
[07:54:10][I][shelly_dimmer:435]: Got dimmer data:
[07:54:10][I][shelly_dimmer:436]:   HW version: 1
[07:54:10][I][shelly_dimmer:437]:   Brightness: 0
[07:54:10][I][shelly_dimmer:438]:   Fade rate:  1
[07:54:10][I][shelly_dimmer:439]:   Power:      0.000205 W
[07:54:10][I][shelly_dimmer:440]:   Voltage:    113.105690 V
[07:54:10][I][shelly_dimmer:441]:   Current:    0.000000 A
[07:54:10][D][sensor:124]: 'Dining Room Chandelier Power': Sending state 0.00020 W with 1 decimals of accuracy
[07:54:10][D][sensor:124]: 'Dining Room Chandelier Voltage': Sending state 113.10569 V with 1 decimals of accuracy
[07:54:10][D][sensor:124]: 'Dining Room Chandelier Current': Sending state 0.00000 A with 2 decimals of accuracy
[07:54:14][D][light:035]: 'Dining Room Chandelier' Setting:
[07:54:14][D][light:046]:   State: ON
[07:54:14][D][light:084]:   Transition length: 1.0s
[07:54:14][D][shelly_dimmer:152]: Brightness update: 1 (raw: 0.001450)
[07:54:14][D][shelly_dimmer:269]: Sending command: 0x01 (2 bytes) payload 0x0100
[07:54:14][D][shelly_dimmer:281]: Command sent, waiting for reply
[07:54:14][D][shelly_dimmer:391]: Got frame: 0x01
[07:54:14][D][shelly_dimmer:152]: Brightness update: 4 (raw: 0.004365)
[07:54:14][D][shelly_dimmer:269]: Sending command: 0x01 (2 bytes) payload 0x0400
[07:54:14][D][shelly_dimmer:281]: Command sent, waiting for reply
[07:54:14][D][shelly_dimmer:391]: Got frame: 0x01
[07:54:14][D][shelly_dimmer:152]: Brightness update: 9 (raw: 0.009567)
[07:54:14][D][shelly_dimmer:269]: Sending command: 0x01 (2 bytes) payload 0x0900
[07:54:14][D][shelly_dimmer:281]: Command sent, waiting for reply
[07:54:14][D][shelly_dimmer:391]: Got frame: 0x01
[07:54:14][D][shelly_dimmer:152]: Brightness update: 17 (raw: 0.017151)
[07:54:14][D][shelly_dimmer:269]: Sending command: 0x01 (2 bytes) payload 0x1100
[07:54:14][D][shelly_dimmer:281]: Command sent, waiting for reply
[07:54:14][D][shelly_dimmer:391]: Got frame: 0x01
[07:54:14][D][shelly_dimmer:152]: Brightness update: 28 (raw: 0.028099)
[07:54:14][D][shelly_dimmer:269]: Sending command: 0x01 (2 bytes) payload 0x1c00
[07:54:14][D][shelly_dimmer:281]: Command sent, waiting for reply
[07:54:14][D][shelly_dimmer:391]: Got frame: 0x01
[07:54:14][D][shelly_dimmer:152]: Brightness update: 41 (raw: 0.041772)
[07:54:14][D][shelly_dimmer:269]: Sending command: 0x01 (2 bytes) payload 0x2900
[07:54:14][D][shelly_dimmer:281]: Command sent, waiting for reply
[07:54:14][D][shelly_dimmer:391]: Got frame: 0x01
[07:54:14][D][shelly_dimmer:152]: Brightness update: 60 (raw: 0.060250)
[07:54:14][D][shelly_dimmer:269]: Sending command: 0x01 (2 bytes) payload 0x3c00
[07:54:14][D][shelly_dimmer:281]: Command sent, waiting for reply
[07:54:14][D][shelly_dimmer:391]: Got frame: 0x01
[07:54:14][D][shelly_dimmer:152]: Brightness update: 80 (raw: 0.080759)
[07:54:14][D][shelly_dimmer:269]: Sending command: 0x01 (2 bytes) payload 0x5000
[07:54:14][D][shelly_dimmer:281]: Command sent, waiting for reply
[07:54:14][D][shelly_dimmer:391]: Got frame: 0x01
[07:54:14][D][shelly_dimmer:152]: Brightness update: 103 (raw: 0.103516)
[07:54:14][D][shelly_dimmer:269]: Sending command: 0x01 (2 bytes) payload 0x6700
[07:54:14][D][shelly_dimmer:281]: Command sent, waiting for reply
[07:54:14][D][shelly_dimmer:391]: Got frame: 0x01
[07:54:14][D][shelly_dimmer:152]: Brightness update: 130 (raw: 0.130428)
[07:54:14][D][shelly_dimmer:269]: Sending command: 0x01 (2 bytes) payload 0x8200
[07:54:14][D][shelly_dimmer:281]: Command sent, waiting for reply
[07:54:14][D][shelly_dimmer:391]: Got frame: 0x01
[07:54:14][D][shelly_dimmer:152]: Brightness update: 164 (raw: 0.164406)
[07:54:14][D][shelly_dimmer:269]: Sending command: 0x01 (2 bytes) payload 0xa400
[07:54:14][D][shelly_dimmer:281]: Command sent, waiting for reply
[07:54:14][D][shelly_dimmer:391]: Got frame: 0x01
[07:54:14][D][shelly_dimmer:152]: Brightness update: 196 (raw: 0.196246)
[07:54:14][D][shelly_dimmer:269]: Sending command: 0x01 (2 bytes) payload 0xc400
[07:54:14][D][shelly_dimmer:281]: Command sent, waiting for reply
[07:54:14][D][shelly_dimmer:391]: Got frame: 0x01
[07:54:14][D][shelly_dimmer:152]: Brightness update: 230 (raw: 0.230530)
[07:54:14][D][shelly_dimmer:269]: Sending command: 0x01 (2 bytes) payload 0xe600
[07:54:14][D][shelly_dimmer:281]: Command sent, waiting for reply
[07:54:14][D][shelly_dimmer:391]: Got frame: 0x01
[07:54:14][D][shelly_dimmer:152]: Brightness update: 267 (raw: 0.267012)
[07:54:14][D][shelly_dimmer:269]: Sending command: 0x01 (2 bytes) payload 0x0b01
[07:54:14][D][shelly_dimmer:281]: Command sent, waiting for reply
[07:54:14][D][shelly_dimmer:391]: Got frame: 0x01
[07:54:14][D][shelly_dimmer:152]: Brightness update: 310 (raw: 0.310551)
[07:54:14][D][shelly_dimmer:269]: Sending command: 0x01 (2 bytes) payload 0x3601
[07:54:14][D][shelly_dimmer:281]: Command sent, waiting for reply
[07:54:14][D][shelly_dimmer:391]: Got frame: 0x01
[07:54:14][D][shelly_dimmer:152]: Brightness update: 356 (raw: 0.356105)
[07:54:14][D][shelly_dimmer:269]: Sending command: 0x01 (2 bytes) payload 0x6401
[07:54:14][D][shelly_dimmer:281]: Command sent, waiting for reply
[07:54:14][D][shelly_dimmer:391]: Got frame: 0x01
[07:54:15][D][shelly_dimmer:152]: Brightness update: 403 (raw: 0.403201)
[07:54:15][D][shelly_dimmer:269]: Sending command: 0x01 (2 bytes) payload 0x9301
[07:54:15][D][shelly_dimmer:281]: Command sent, waiting for reply
[07:54:15][D][shelly_dimmer:391]: Got frame: 0x01
[07:54:15][D][shelly_dimmer:152]: Brightness update: 451 (raw: 0.451338)
[07:54:15][D][shelly_dimmer:269]: Sending command: 0x01 (2 bytes) payload 0xc301
[07:54:15][D][shelly_dimmer:281]: Command sent, waiting for reply
[07:54:15][D][shelly_dimmer:391]: Got frame: 0x01
[07:54:15][D][shelly_dimmer:152]: Brightness update: 496 (raw: 0.496250)
[07:54:15][D][shelly_dimmer:269]: Sending command: 0x01 (2 bytes) payload 0xf001
[07:54:15][D][shelly_dimmer:281]: Command sent, waiting for reply
[07:54:15][D][shelly_dimmer:391]: Got frame: 0x01
[07:54:15][D][shelly_dimmer:152]: Brightness update: 539 (raw: 0.539329)
[07:54:15][D][shelly_dimmer:269]: Sending command: 0x01 (2 bytes) payload 0x1b02
[07:54:15][D][shelly_dimmer:281]: Command sent, waiting for reply
[07:54:15][D][shelly_dimmer:391]: Got frame: 0x01
[07:54:15][D][shelly_dimmer:152]: Brightness update: 585 (raw: 0.585764)
[07:54:15][D][shelly_dimmer:269]: Sending command: 0x01 (2 bytes) payload 0x4902
[07:54:15][D][shelly_dimmer:281]: Command sent, waiting for reply
[07:54:15][D][shelly_dimmer:391]: Got frame: 0x01
[07:54:15][D][shelly_dimmer:152]: Brightness update: 634 (raw: 0.634942)
[07:54:15][D][shelly_dimmer:269]: Sending command: 0x01 (2 bytes) payload 0x7a02
[07:54:15][D][shelly_dimmer:281]: Command sent, waiting for reply
[07:54:15][D][shelly_dimmer:391]: Got frame: 0x01
[07:54:15][D][shelly_dimmer:152]: Brightness update: 682 (raw: 0.682560)
[07:54:15][D][shelly_dimmer:269]: Sending command: 0x01 (2 bytes) payload 0xaa02
[07:54:15][D][shelly_dimmer:281]: Command sent, waiting for reply
[07:54:15][D][shelly_dimmer:391]: Got frame: 0x01
[07:54:15][D][shelly_dimmer:152]: Brightness update: 726 (raw: 0.726439)
[07:54:15][D][shelly_dimmer:269]: Sending command: 0x01 (2 bytes) payload 0xd602
[07:54:15][D][shelly_dimmer:281]: Command sent, waiting for reply
[07:54:15][D][shelly_dimmer:391]: Got frame: 0x01
[07:54:15][D][shelly_dimmer:152]: Brightness update: 769 (raw: 0.769470)
[07:54:15][D][shelly_dimmer:269]: Sending command: 0x01 (2 bytes) payload 0x0103
[07:54:15][D][shelly_dimmer:281]: Command sent, waiting for reply
[07:54:15][D][shelly_dimmer:391]: Got frame: 0x01
[07:54:15][D][shelly_dimmer:152]: Brightness update: 806 (raw: 0.806623)
[07:54:15][D][shelly_dimmer:269]: Sending command: 0x01 (2 bytes) payload 0x2603
[07:54:15][D][shelly_dimmer:281]: Command sent, waiting for reply
[07:54:15][D][shelly_dimmer:391]: Got frame: 0x01
[07:54:15][D][shelly_dimmer:152]: Brightness update: 840 (raw: 0.840866)
[07:54:15][D][shelly_dimmer:269]: Sending command: 0x01 (2 bytes) payload 0x4803
[07:54:15][D][shelly_dimmer:281]: Command sent, waiting for reply
[07:54:15][D][shelly_dimmer:391]: Got frame: 0x01
[07:54:15][D][shelly_dimmer:152]: Brightness update: 871 (raw: 0.871935)
[07:54:15][D][shelly_dimmer:269]: Sending command: 0x01 (2 bytes) payload 0x6703
[07:54:15][D][shelly_dimmer:281]: Command sent, waiting for reply
[07:54:15][D][shelly_dimmer:391]: Got frame: 0x01
[07:54:15][D][shelly_dimmer:152]: Brightness update: 900 (raw: 0.900658)
[07:54:15][D][shelly_dimmer:269]: Sending command: 0x01 (2 bytes) payload 0x8403
[07:54:15][D][shelly_dimmer:281]: Command sent, waiting for reply
[07:54:15][D][shelly_dimmer:391]: Got frame: 0x01
[07:54:15][D][shelly_dimmer:152]: Brightness update: 922 (raw: 0.922890)
[07:54:15][D][shelly_dimmer:269]: Sending command: 0x01 (2 bytes) payload 0x9a03
[07:54:15][D][shelly_dimmer:281]: Command sent, waiting for reply
[07:54:15][D][shelly_dimmer:391]: Got frame: 0x01
[07:54:15][D][shelly_dimmer:152]: Brightness update: 944 (raw: 0.944358)
[07:54:15][D][shelly_dimmer:269]: Sending command: 0x01 (2 bytes) payload 0xb003
[07:54:15][D][shelly_dimmer:281]: Command sent, waiting for reply
[07:54:15][D][shelly_dimmer:391]: Got frame: 0x01
[07:54:15][D][shelly_dimmer:152]: Brightness update: 960 (raw: 0.960729)
[07:54:15][D][shelly_dimmer:269]: Sending command: 0x01 (2 bytes) payload 0xc003
[07:54:15][D][shelly_dimmer:281]: Command sent, waiting for reply
[07:54:15][D][shelly_dimmer:391]: Got frame: 0x01
[07:54:15][D][shelly_dimmer:152]: Brightness update: 973 (raw: 0.973388)
[07:54:15][D][shelly_dimmer:269]: Sending command: 0x01 (2 bytes) payload 0xcd03
[07:54:15][D][shelly_dimmer:281]: Command sent, waiting for reply
[07:54:15][D][shelly_dimmer:391]: Got frame: 0x01
[07:54:15][D][shelly_dimmer:152]: Brightness update: 983 (raw: 0.983586)
[07:54:15][D][shelly_dimmer:269]: Sending command: 0x01 (2 bytes) payload 0xd703
[07:54:15][D][shelly_dimmer:281]: Command sent, waiting for reply
[07:54:15][D][shelly_dimmer:391]: Got frame: 0x01
[07:54:15][D][shelly_dimmer:152]: Brightness update: 990 (raw: 0.990691)
[07:54:15][D][shelly_dimmer:269]: Sending command: 0x01 (2 bytes) payload 0xde03
[07:54:15][D][shelly_dimmer:281]: Command sent, waiting for reply
[07:54:15][D][shelly_dimmer:391]: Got frame: 0x01
[07:54:15][D][shelly_dimmer:152]: Brightness update: 995 (raw: 0.995635)
[07:54:15][D][shelly_dimmer:269]: Sending command: 0x01 (2 bytes) payload 0xe303
[07:54:15][D][shelly_dimmer:281]: Command sent, waiting for reply
[07:54:15][D][shelly_dimmer:391]: Got frame: 0x01
[07:54:15][D][shelly_dimmer:152]: Brightness update: 998 (raw: 0.998387)
[07:54:15][D][shelly_dimmer:269]: Sending command: 0x01 (2 bytes) payload 0xe603
[07:54:15][D][shelly_dimmer:281]: Command sent, waiting for reply
[07:54:15][D][shelly_dimmer:391]: Got frame: 0x01
[07:54:15][D][shelly_dimmer:152]: Brightness update: 999 (raw: 0.999688)
[07:54:15][D][shelly_dimmer:269]: Sending command: 0x01 (2 bytes) payload 0xe703
[07:54:15][D][shelly_dimmer:281]: Command sent, waiting for reply
[07:54:15][D][shelly_dimmer:391]: Got frame: 0x01
[07:54:15][D][shelly_dimmer:152]: Brightness update: 1000 (raw: 1.000000)
[07:54:15][D][shelly_dimmer:269]: Sending command: 0x01 (2 bytes) payload 0xe803
[07:54:15][D][shelly_dimmer:281]: Command sent, waiting for reply
[07:54:15][D][shelly_dimmer:391]: Got frame: 0x01
[07:54:20][D][shelly_dimmer:269]: Sending command: 0x10 (0 bytes) payload 0x
[07:54:20][D][shelly_dimmer:281]: Command sent, waiting for reply
[07:54:20][D][shelly_dimmer:391]: Got frame: 0x10
[07:54:20][I][shelly_dimmer:435]: Got dimmer data:
[07:54:20][I][shelly_dimmer:436]:   HW version: 1
[07:54:20][I][shelly_dimmer:437]:   Brightness: 1000
[07:54:20][I][shelly_dimmer:438]:   Fade rate:  1
[07:54:20][I][shelly_dimmer:439]:   Power:      29.580439 W
[07:54:20][I][shelly_dimmer:440]:   Voltage:    112.666016 V
[07:54:20][I][shelly_dimmer:441]:   Current:    0.262604 A
[07:54:20][D][sensor:124]: 'Dining Room Chandelier Power': Sending state 29.58044 W with 1 decimals of accuracy
[07:54:20][D][sensor:124]: 'Dining Room Chandelier Voltage': Sending state 112.66602 V with 1 decimals of accuracy
[07:54:20][D][sensor:124]: 'Dining Room Chandelier Current': Sending state 0.26260 A with 2 decimals of accuracy
[07:54:23][D][api:102]: Accepted 10.30.30.100
[07:54:23][W][api.connection:080]: Home Assistant 2022.7.5 (10.30.30.100): Connection closed
[07:54:30][D][shelly_dimmer:269]: Sending command: 0x10 (0 bytes) payload 0x
[07:54:30][D][shelly_dimmer:281]: Command sent, waiting for reply
[07:54:30][D][shelly_dimmer:391]: Got frame: 0x10
[07:54:30][I][shelly_dimmer:435]: Got dimmer data:
[07:54:30][I][shelly_dimmer:436]:   HW version: 1
[07:54:30][I][shelly_dimmer:437]:   Brightness: 1000
[07:54:30][I][shelly_dimmer:438]:   Fade rate:  1
[07:54:30][I][shelly_dimmer:439]:   Power:      29.580439 W
[07:54:30][I][shelly_dimmer:440]:   Voltage:    112.666016 V
[07:54:30][I][shelly_dimmer:441]:   Current:    0.262604 A
[07:54:30][D][sensor:124]: 'Dining Room Chandelier Power': Sending state 29.58044 W with 1 decimals of accuracy
[07:54:30][D][sensor:124]: 'Dining Room Chandelier Voltage': Sending state 112.66602 V with 1 decimals of accuracy
[07:54:30][D][sensor:124]: 'Dining Room Chandelier Current': Sending state 0.26260 A with 2 decimals of accuracy
[07:54:33][D][light:035]: 'Dining Room Chandelier' Setting:
[07:54:33][D][light:046]:   State: OFF
[07:54:33][D][light:084]:   Transition length: 1.0s
[07:54:33][D][shelly_dimmer:152]: Brightness update: 999 (raw: 1.000000)
[07:54:33][D][shelly_dimmer:269]: Sending command: 0x01 (2 bytes) payload 0xe703
[07:54:33][D][shelly_dimmer:281]: Command sent, waiting for reply
[07:54:33][D][shelly_dimmer:391]: Got frame: 0x01
[07:54:33][D][shelly_dimmer:152]: Brightness update: 998 (raw: 0.998842)
[07:54:33][D][shelly_dimmer:269]: Sending command: 0x01 (2 bytes) payload 0xe603
[07:54:33][D][shelly_dimmer:281]: Command sent, waiting for reply
[07:54:33][D][shelly_dimmer:391]: Got frame: 0x01
[07:54:33][D][shelly_dimmer:152]: Brightness update: 996 (raw: 0.996242)
[07:54:33][D][shelly_dimmer:269]: Sending command: 0x01 (2 bytes) payload 0xe403
[07:54:33][D][shelly_dimmer:281]: Command sent, waiting for reply
[07:54:33][D][shelly_dimmer:391]: Got frame: 0x01
[07:54:33][D][shelly_dimmer:152]: Brightness update: 991 (raw: 0.991440)
[07:54:33][D][shelly_dimmer:269]: Sending command: 0x01 (2 bytes) payload 0xdf03
[07:54:33][D][shelly_dimmer:281]: Command sent, waiting for reply
[07:54:33][D][shelly_dimmer:391]: Got frame: 0x01
[07:54:33][D][shelly_dimmer:152]: Brightness update: 984 (raw: 0.984656)
[07:54:33][D][shelly_dimmer:269]: Sending command: 0x01 (2 bytes) payload 0xd803
[07:54:33][D][shelly_dimmer:281]: Command sent, waiting for reply
[07:54:33][D][shelly_dimmer:391]: Got frame: 0x01
[07:54:33][D][shelly_dimmer:152]: Brightness update: 974 (raw: 0.974353)
[07:54:33][D][shelly_dimmer:269]: Sending command: 0x01 (2 bytes) payload 0xce03
[07:54:33][D][shelly_dimmer:281]: Command sent, waiting for reply
[07:54:33][D][shelly_dimmer:391]: Got frame: 0x01
[07:54:33][D][shelly_dimmer:152]: Brightness update: 960 (raw: 0.960112)
[07:54:33][D][shelly_dimmer:269]: Sending command: 0x01 (2 bytes) payload 0xc003
[07:54:33][D][shelly_dimmer:281]: Command sent, waiting for reply
[07:54:33][D][shelly_dimmer:391]: Got frame: 0x01
[07:54:33][D][shelly_dimmer:152]: Brightness update: 943 (raw: 0.943604)
[07:54:33][D][shelly_dimmer:269]: Sending command: 0x01 (2 bytes) payload 0xaf03
[07:54:33][D][shelly_dimmer:281]: Command sent, waiting for reply
[07:54:33][D][shelly_dimmer:391]: Got frame: 0x01
[07:54:33][D][shelly_dimmer:152]: Brightness update: 921 (raw: 0.921077)
[07:54:33][D][shelly_dimmer:269]: Sending command: 0x01 (2 bytes) payload 0x9903
[07:54:33][D][shelly_dimmer:281]: Command sent, waiting for reply
[07:54:33][D][shelly_dimmer:391]: Got frame: 0x01
[07:54:33][D][shelly_dimmer:152]: Brightness update: 897 (raw: 0.897536)
[07:54:33][D][shelly_dimmer:269]: Sending command: 0x01 (2 bytes) payload 0x8103
[07:54:33][D][shelly_dimmer:281]: Command sent, waiting for reply
[07:54:33][D][shelly_dimmer:391]: Got frame: 0x01
[07:54:33][D][shelly_dimmer:152]: Brightness update: 869 (raw: 0.869572)
[07:54:33][D][shelly_dimmer:269]: Sending command: 0x01 (2 bytes) payload 0x6503
[07:54:33][D][shelly_dimmer:281]: Command sent, waiting for reply
[07:54:33][D][shelly_dimmer:391]: Got frame: 0x01
[07:54:33][D][shelly_dimmer:152]: Brightness update: 838 (raw: 0.838241)
[07:54:33][D][shelly_dimmer:269]: Sending command: 0x01 (2 bytes) payload 0x4603
[07:54:33][D][shelly_dimmer:281]: Command sent, waiting for reply
[07:54:33][D][shelly_dimmer:391]: Got frame: 0x01
[07:54:33][D][shelly_dimmer:152]: Brightness update: 805 (raw: 0.805191)
[07:54:33][D][shelly_dimmer:269]: Sending command: 0x01 (2 bytes) payload 0x2503
[07:54:33][D][shelly_dimmer:281]: Command sent, waiting for reply
[07:54:33][D][shelly_dimmer:391]: Got frame: 0x01
[07:54:33][D][shelly_dimmer:152]: Brightness update: 766 (raw: 0.766381)
[07:54:33][D][shelly_dimmer:269]: Sending command: 0x01 (2 bytes) payload 0xfe02
[07:54:33][D][shelly_dimmer:281]: Command sent, waiting for reply
[07:54:33][D][shelly_dimmer:391]: Got frame: 0x01
[07:54:33][D][shelly_dimmer:152]: Brightness update: 726 (raw: 0.726439)
[07:54:33][D][shelly_dimmer:269]: Sending command: 0x01 (2 bytes) payload 0xd602
[07:54:33][D][shelly_dimmer:281]: Command sent, waiting for reply
[07:54:33][D][shelly_dimmer:391]: Got frame: 0x01
[07:54:33][D][shelly_dimmer:152]: Brightness update: 684 (raw: 0.684287)
[07:54:34][D][shelly_dimmer:269]: Sending command: 0x01 (2 bytes) payload 0xac02
[07:54:34][D][shelly_dimmer:281]: Command sent, waiting for reply
[07:54:34][D][shelly_dimmer:391]: Got frame: 0x01
[07:54:34][D][shelly_dimmer:152]: Brightness update: 640 (raw: 0.640320)
[07:54:34][D][shelly_dimmer:269]: Sending command: 0x01 (2 bytes) payload 0x8002
[07:54:34][D][shelly_dimmer:281]: Command sent, waiting for reply
[07:54:34][D][shelly_dimmer:391]: Got frame: 0x01
[07:54:34][D][shelly_dimmer:152]: Brightness update: 593 (raw: 0.593127)
[07:54:34][D][shelly_dimmer:269]: Sending command: 0x01 (2 bytes) payload 0x5102
[07:54:34][D][shelly_dimmer:281]: Command sent, waiting for reply
[07:54:34][D][shelly_dimmer:391]: Got frame: 0x01
[07:54:34][D][shelly_dimmer:152]: Brightness update: 548 (raw: 0.548662)
[07:54:34][D][shelly_dimmer:269]: Sending command: 0x01 (2 bytes) payload 0x2402
[07:54:34][D][shelly_dimmer:281]: Command sent, waiting for reply
[07:54:34][D][shelly_dimmer:391]: Got frame: 0x01
[07:54:34][D][shelly_dimmer:152]: Brightness update: 505 (raw: 0.505625)
[07:54:34][D][shelly_dimmer:269]: Sending command: 0x01 (2 bytes) payload 0xf901
[07:54:34][D][shelly_dimmer:281]: Command sent, waiting for reply
[07:54:34][D][shelly_dimmer:391]: Got frame: 0x01
[07:54:34][D][shelly_dimmer:152]: Brightness update: 460 (raw: 0.460671)
[07:54:34][D][shelly_dimmer:269]: Sending command: 0x01 (2 bytes) payload 0xcc01
[07:54:34][D][shelly_dimmer:281]: Command sent, waiting for reply
[07:54:34][D][shelly_dimmer:391]: Got frame: 0x01
[07:54:34][D][shelly_dimmer:152]: Brightnes

Additional information

I previously had a shelly dimmer v1 installed on this circuit running original mgOS and it had been dimming the circuit without issues. This eliminates any concern about installation wiring/bulbs.

poldim commented 2 years ago

@edge90 @rnauber - since you added this component, i was wondering if you have any thoughts here or have experienced this on your shelly's?

scootec commented 2 years ago

@poldim I had a similar issue with my recently flashed dimmer 2. Mine would turn on successfully, but when turned off the shelly would shoot to 100% and complete ignore any lighting commands until a restart.

In my case, adding a minimum brightness has prevented the issue from reoccurring so far. I gave the minimum brightness a go since my issue was only happened when the light running at a very low brightness during the turn on phase.

Not sure if it will help you, but mentioning here just in case!

edge90 commented 2 years ago

I will have a look as soon as I get some sparetime.

poldim commented 2 years ago

For me, the problem was partially solved by rolling back the fw to version: "51.5"

Now I still get a "brightness pop" when turning the light off. For example, if the light is dimmed to 50% and I send a turn off command in HA, it uses the esphome's transition setting to dim the light from 50% to 0%, but once it reaches at or near 0% it appears to have a momentary burst to something very bright (50-100%) and then immediately cuts to full off.

edge90 commented 2 years ago

What kind of light are you using, led? If so, try to change leading_edge to false.

harmptor commented 9 months ago

I've had a very similar experience with my LED light from IKEA that says it's non-dimmable. (It can be dimmed, though with a quiet buzzing sound when between ~10% and ~90% brightness). When I set leading_edge: true and turned it on, I couldn't control my shelly until I flipped the breaker. With trailing edge and 51.5 it works fine though :)

edge90 commented 9 months ago

All led lights should be trailing edge.

Sperryfreak01 commented 3 months ago

Had a similar issue for me it was two config settings. The Gramma value = 0 and the min brightness level = 470, both of which were in the example code.

These two settings combined caused the dimming curve to be so far up to effectively prevent dimming. Setting min to 0 and gamma to 2.8 allowed the lights to be usable long enough to figure out the appropriate minimum brightness threshold.