esphome / issues

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

on_boot automation does not work together with ledc #1784

Open tilman opened 3 years ago

tilman commented 3 years ago

Operating environment/Installation (Hass.io/Docker/pip/etc.): pip/vscode

ESP (ESP32/ESP8266, Board/Sonoff): ESP32

ESPHome version (latest production, beta, dev branch) latest

Affected component: ledc, on_boot

Description of problem: Access to the ledc output in an on_boot automation with prio greater 400 will crash the ESP. Would be nice to include this in the syntax check or at least a big warning in the doc. Was hard to figure out what the problem was.

Problem-relevant YAML-configuration entries:

esphome:
  name: demo
  platform: ESP32
  board: esp-wrover-kit
  on_boot:
    priority: 400
    then:
      - output.turn_off: demo_pwm

output:
  - platform: ledc
    pin: 4
    id: demo_pwm
stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

probot-esphome[bot] commented 3 years ago

ledc source ledc issues ledc recent changes (message by IssueLinks)