Zero_means_zero not working on esp8266 pwm

I’m using a 12v shellyRGBW2 wifi dimmer to dim the PWM on a set of Meanwell 3 in 1 dimming drivers. To do this scaling evenly I have to set the gamma correct to 0 and the max_power to 0.89 and the minimum to 0.13. This gives me a voltage range of 0.55v-10v. Which means 1-100 on HA is 6%-100%. I need 0 to actually be 0 so that the dimmer dims to OFF. This should be as simple as adding zero_means_zero: true to each output. For some reason it’s not an acceptable code. “[zero_means_zero] is an invalid option for [output.esp8266_pwm]. Please check indentation.” It’s clear on how to use it on Output Component — ESPHome.

Anyone have any idea how I can fix this? I’ve never had trouble with code in ESPHome before. I really don’t want to switch all my dimmers to tasmota.

esphome:
  name: shelly4chr1-2
  platform: ESP8266
  board: esp01_1m
light:
  - platform: monochromatic
    name: ${esphome_name}_ch1
    output: ${esphome_name}_out_ch1
    gamma_correct: 0
output:
  - platform: esp8266_pwm
    id: ${esphome_name}_out_ch1
    inverted: true
    pin: GPIO12
    frequency: 1000 Hz
    min_power: 0.13
    max_power: 0.89
    zero_means_zero: true

I just tried your yaml in esphome, and it gave no errors in the editor, and it compiled fine.

What version of esphome do you have? I am on dev so 2022.5.0-dev

I was running version 2.2 updated from original ESPHome add on years ago. I deleted it added newest Repo and intalled. It’s now working great.

Thanks

For your info, zero_means_zero was introduced in 2021.8 :slight_smile:

Glad you got it going.