Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- substitutions:
- device_name: "Konyha"
- esphome:
- name: kitchen
- comment: Konyha ESP32 controller
- project:
- name: "Peti.Konyha szenzor"
- version: "0.2.0"
- esp32:
- board: esp32dev
- framework:
- type: arduino
- web_server:
- port: 80
- # Enable logging
- logger:
- level: ERROR
- # Enable Home Assistant API
- api:
- encryption:
- key: "xxxxxxxxxxxxxxxxxxxxx"
- ota:
- password: "xxxxxxxxxxxxxxxxxxxxx"
- wifi:
- ssid: !secret wifi_ssid
- password: !secret wifi_password
- manual_ip:
- # Set this to the IP of the ESP
- static_ip: xxx.xxx.xxx.xxx
- # Set this to the IP address of the router. Often ends with .1
- gateway: xxx.xxx.xxx.xxx
- # The subnet of the network. 255.255.255.0 works for most home networks.
- subnet: 255.255.255.0
- # Enable fallback hotspot (captive portal) in case wifi connection fails
- ap:
- ssid: "Kitchen Fallback Hotspot"
- password: !secret wifi_ap_password
- #use_address: xxx.xxx.xxx.xxx
- time:
- - platform: sntp
- timezone: "CET-1CEST-2,M3.5.0/02:00:00,M10.5.0/03:00:00" # Europe/Budapest -> https://sites.google.com/a/usapiens.com/opnode/time-zones
- id: my_time
- captive_portal:
- text_sensor:
- - platform: wifi_info
- ip_address:
- name: "IP Address"
- ssid:
- name: "Connected SSID"
- bssid:
- name: "Connected BSSID"
- mac_address:
- name: "Mac Wifi Address"
- scan_results:
- name: "Latest Scan Results"
- button:
- - platform: restart
- name: "Konyha Restart"
- - platform: template
- name: "Teszt gomb"
- id: my_button
- # Optional variables:
- icon: "mdi:emoticon-outline"
- on_press:
- - logger.log: "Teszt Button pressed"
- binary_sensor:
- - platform: gpio
- pin: GPIO21
- name: "Toggle Light1"
- internal: true
- filters:
- - delayed_on: 10ms
- - delayed_off: 10ms
- on_click:
- min_length: 50ms
- max_length: 350ms
- then:
- - light.toggle: light1
- - logger.log: "Clicked"
- sensor:
- - platform: uptime
- name: ${device_name} Uptime
- filters:
- - lambda: return x / 3600;
- unit_of_measurement: "hours"
- accuracy_decimals: 2
- update_interval: 300s
- - platform: wifi_signal
- id: wifi_rssi
- name: "RSSI"
- update_interval: 120s
- # hőmérő: konyha bent, DHT11
- - platform: dht
- pin: GPIO33
- temperature:
- id: kitchen_temperature
- name: "Kitchen Temperature"
- filters:
- - offset: -1.5
- humidity:
- id: kitchen_humidity
- name: "Kitchen Humidity"
- model: DHT22
- update_interval: 60s
- # hőmérő: bejárat kint, DHT22
- - platform: dht
- pin: GPIO32
- temperature:
- id: outdoor_temperature
- name: "Outdoor Temperature"
- filters:
- - offset: -1.5
- humidity:
- id: outdoor_humidity
- name: "Outdoor Humidity"
- model: DHT22
- update_interval: 60s
- # Fogyasztásmérő: Boiler (bojler)
- - platform: pulse_meter
- id: meter_power_boiler
- state_class: total_increasing
- device_class: power
- pin: GPIO35
- unit_of_measurement: 'kW'
- name: 'Boiler Energy Usage'
- internal_filter: 100ms
- accuracy_decimals: 3
- timeout: 60s
- filters:
- - multiply: 0.06
- - platform: total_daily_energy
- name: "Boiler Energy Total Daily"
- accuracy_decimals: 2
- power_id: meter_power_boiler
- unit_of_measurement: "kWh"
- device_class: energy
- min_save_interval: 120s
- # Fogyasztásmérő: AC (klíma)
- - platform: pulse_meter
- id: meter_power_ac
- state_class: total_increasing
- device_class: power
- pin: GPIO39
- unit_of_measurement: 'kW'
- name: 'AC Energy Usage'
- internal_filter: 100ms
- accuracy_decimals: 3
- timeout: 60s
- filters:
- - multiply: 0.06
- - platform: total_daily_energy
- name: "AC Energy Total Daily"
- accuracy_decimals: 2
- power_id: meter_power_ac
- unit_of_measurement: "kWh"
- device_class: energy
- min_save_interval: 120s
- # Fogyasztásmérő: Stove (tűzhely)
- - platform: pulse_meter
- id: meter_power_stove
- state_class: total_increasing
- device_class: power
- pin: GPIO34
- unit_of_measurement: 'kW'
- name: 'Stove Energy Usage'
- internal_filter: 100ms
- accuracy_decimals: 3
- timeout: 60s
- filters:
- - multiply: 0.06
- - platform: total_daily_energy
- name: "Stove Energy Total Daily"
- accuracy_decimals: 2
- power_id: meter_power_stove
- unit_of_measurement: "kWh"
- device_class: energy
- min_save_interval: 120s
- # Fogyasztásmérő: Incoming (teljes bejövő)
- - platform: pulse_meter
- id: meter_power_incoming
- state_class: total_increasing
- device_class: power
- pin: GPIO36
- unit_of_measurement: 'kW'
- name: 'Incoming Energy Usage'
- internal_filter: 100ms
- accuracy_decimals: 3
- timeout: 60s
- filters:
- - multiply: 0.06
- - platform: total_daily_energy
- name: "Incoming Energy Total Daily"
- accuracy_decimals: 2
- power_id: meter_power_incoming
- unit_of_measurement: "kWh"
- device_class: energy
- min_save_interval: 120s
- # Example configuration entry
- output:
- - platform: ledc
- pin: GPIO25
- id: gpio_25
- frequency: "2441Hz"
- - platform: ledc
- pin: GPIO26
- id: gpio_26
- frequency: "2441Hz"
- # Example usage in a light
- light:
- - platform: monochromatic
- output: gpio_25
- name: "Kitchen Light1"
- id: light1
- effects:
- - pulse:
- - pulse:
- name: "Fast Pulse"
- transition_length: 0.5s
- update_interval: 0.5s
- - pulse:
- name: "Slow Pulse"
- # transition_length: 1s # defaults to 1s
- update_interval: 2s
- - flicker:
- - random:
- - strobe:
- - platform: monochromatic
- output: gpio_26
- name: "Kitchen Light2"
- id: light2
- effects:
- - pulse:
- - pulse:
- name: "Fast Pulse"
- transition_length: 0.5s
- update_interval: 0.5s
- - pulse:
- name: "Slow Pulse"
- # transition_length: 1s # defaults to 1s
- update_interval: 2s
- - flicker:
- - random:
- - strobe:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement