Dolgozószoba világítás vezérlés

esphome:
name: konyha-vezerlo #átirni
friendly_name: Konyha Vezérlő # átirni
on_boot:
priority: -10
then:
– light.turn_off: led_szalag

esp32:
board: esp32-c3-devkitm-1
variant: esp32c3
framework:
type: esp-idf
sdkconfig_options:
CONFIG_WPA3_SAE: „n”

wifi:
networks:
– ssid: „Vodafone-7776”
password: „Laci5144+Krisz”
fast_connect: true
reboot_timeout: 0s

api:
reboot_timeout: 0s

ota:

  • platform: esphome

logger:
level: INFO

uart:
tx_pin: GPIO5
rx_pin: GPIO4
baud_rate: 256000
id: uart_bus

ld2410:
uart_id: uart_bus

output:

  • platform: ledc
    pin: GPIO10
    id: tranzisztor_pwm
    frequency: 1000Hz

light:

  • platform: monochromatic
    name: „Konyha LED Szalag”
    output: tranzisztor_pwm
    id: led_szalag
    default_transition_length: 1.5s

binary_sensor:

  • platform: ld2410
    has_target:
    name: „Jelenlet”
    id: presence
    on_press:
    then:
    – script.stop: off_timer
    – light.turn_on: led_szalag
    on_release:
    then:
    – script.execute: off_timer

script:

  • id: off_timer mode: restart then:
    • delay: 30s
    • light.turn_off: led_szalag

Szólj hozzá!