20240410
This commit is contained in:
94
esphome/cfg_xmas/kerstboom.yaml
Normal file
94
esphome/cfg_xmas/kerstboom.yaml
Normal file
@@ -0,0 +1,94 @@
|
||||
|
||||
substitutions:
|
||||
device_name: "kerstboom"
|
||||
friendly_name: "kerstboom"
|
||||
comment: "esp32-c3"
|
||||
location: "zolder"
|
||||
api_password: !secret kerstboom_api
|
||||
ota_password: !secret ota_password
|
||||
wifi_ssid: !secret wifi_ssid
|
||||
wifi_password: !secret wifi_password
|
||||
gateway: !secret ip_gateway
|
||||
subnet: !secret ip_subnet
|
||||
ip: !secret kerstboom_ip
|
||||
pin_led1: GPIO3
|
||||
pin_led2: GPIO4
|
||||
pin_led3: GPIO1
|
||||
ledc_freq: "1220Hz"
|
||||
|
||||
packages:
|
||||
board: !include boards/esp32-C3.yaml
|
||||
device_base: !include common/common.yaml
|
||||
connection: !include common/wifi.yaml
|
||||
# status: !include templates/status.yaml
|
||||
logger: !include templates/logger.yaml
|
||||
|
||||
|
||||
light:
|
||||
- platform: monochromatic
|
||||
id: ledString1
|
||||
output: led1
|
||||
name: "led string 1"
|
||||
restore_mode: Restore_and_on
|
||||
|
||||
- platform: monochromatic
|
||||
id: ledString2
|
||||
output: led2
|
||||
name: "led string 2"
|
||||
restore_mode: Restore_and_on
|
||||
|
||||
|
||||
- platform: monochromatic
|
||||
id: ledString3
|
||||
output: led3
|
||||
name: "led string 3"
|
||||
restore_mode: Restore_and_on
|
||||
|
||||
|
||||
- platform: partition
|
||||
id: master
|
||||
name: "Master"
|
||||
restore_mode: RESTORE_DEFAULT_OFF
|
||||
segments:
|
||||
- single_light_id: ledString1
|
||||
- single_light_id: ledString2
|
||||
- single_light_id: ledString3
|
||||
|
||||
|
||||
|
||||
#https://www.esphome.io/components/output/ledc
|
||||
output:
|
||||
- platform: ledc
|
||||
pin: ${pin_led1}
|
||||
id: led1
|
||||
frequency: ${ledc_freq}
|
||||
|
||||
- platform: ledc
|
||||
pin: ${pin_led2}
|
||||
id: led2
|
||||
frequency: ${ledc_freq}
|
||||
|
||||
- platform: ledc
|
||||
pin: ${pin_led3}
|
||||
id: led3
|
||||
frequency: ${ledc_freq}
|
||||
|
||||
esphome:
|
||||
libraries:
|
||||
- https://github.com/RobTillaart/ACS712.git
|
||||
includes:
|
||||
- include/acs712_component.h
|
||||
|
||||
sensor:
|
||||
- platform: custom
|
||||
lambda: |-
|
||||
auto acs712_sensor = new ACS712Sensor();
|
||||
App.register_component(acs712_sensor);
|
||||
return {acs712_sensor->current_sensor, acs712_sensor->power_sensor};
|
||||
sensors:
|
||||
- name: "Amperes"
|
||||
unit_of_measurement: A
|
||||
accuracy_decimals: 2
|
||||
- name: "Watts"
|
||||
unit_of_measurement: W
|
||||
accuracy_decimals: 2
|
||||
53
esphome/cfg_xmas/kersthuis01.yaml
Normal file
53
esphome/cfg_xmas/kersthuis01.yaml
Normal file
@@ -0,0 +1,53 @@
|
||||
substitutions:
|
||||
device_name: "kersthuis-01"
|
||||
friendly_name: "kersthuis-01"
|
||||
comment: "esp32-c3"
|
||||
location: "woonkamer"
|
||||
api_password: !secret kersthuis-01_api
|
||||
ip: !secret kersthuis-01_ip
|
||||
ota_password: !secret ota_password
|
||||
wifi_ssid: !secret wifi_ssid
|
||||
wifi_password: !secret wifi_password
|
||||
gateway: !secret ip_gateway
|
||||
subnet: !secret ip_subnet
|
||||
pin_led1: GPIO3
|
||||
pin_button: GPIO4
|
||||
|
||||
packages:
|
||||
board: !include boards/esp32-C3.yaml
|
||||
device_base: !include common/common.yaml
|
||||
connection: !include common/wifi.yaml
|
||||
# status: !include templates/status.yaml
|
||||
logger: !include templates/logger.yaml
|
||||
|
||||
light:
|
||||
- platform: monochromatic
|
||||
id: led_lights
|
||||
restore_mode: RESTORE_DEFAULT_ON
|
||||
output: leds
|
||||
name: "led string 1"
|
||||
effects:
|
||||
- flicker:
|
||||
name: "Flicker"
|
||||
alpha: 95%
|
||||
intensity: 1.5%
|
||||
|
||||
output:
|
||||
- platform: ledc
|
||||
pin: ${pin_led1}
|
||||
id: leds
|
||||
|
||||
# binary_sensor:
|
||||
# - platform: gpio
|
||||
# name: "Button"
|
||||
# pin: ${pin_button}
|
||||
# filters:
|
||||
# - delayed_on: 20ms
|
||||
# on_click:
|
||||
# min_length: 50ms
|
||||
# max_length: 1000ms
|
||||
# then:
|
||||
# - light.toggle:
|
||||
# id: led_lights
|
||||
|
||||
|
||||
40
esphome/cfg_xmas/kersthuis02.yaml
Normal file
40
esphome/cfg_xmas/kersthuis02.yaml
Normal file
@@ -0,0 +1,40 @@
|
||||
|
||||
substitutions:
|
||||
device_name: "kersthuis-02"
|
||||
friendly_name: "kersthuis-02"
|
||||
comment: "esp32-c3"
|
||||
location: "woonkamer"
|
||||
api_password: !secret kersthuis-02_api
|
||||
ip: !secret kersthuis-02_ip
|
||||
ota_password: !secret ota_password
|
||||
wifi_ssid: !secret wifi_ssid
|
||||
wifi_password: !secret wifi_password
|
||||
gateway: !secret ip_gateway
|
||||
subnet: !secret ip_subnet
|
||||
pin_led1: GPIO3
|
||||
|
||||
|
||||
packages:
|
||||
board: !include boards/esp32-C3.yaml
|
||||
device_base: !include common/common.yaml
|
||||
connection: !include common/wifi.yaml
|
||||
# status: !include templates/status.yaml
|
||||
logger: !include templates/logger.yaml
|
||||
|
||||
light:
|
||||
- platform: esp32_rmt_led_strip
|
||||
rmt_channel: 0
|
||||
is_rgbw: true
|
||||
id: led_lights
|
||||
restore_mode: RESTORE_DEFAULT_ON
|
||||
name: "kersthuisje2"
|
||||
chipset: SK6812
|
||||
rgb_order: GRB
|
||||
num_leds: 1
|
||||
pin: ${pin_led1}
|
||||
effects:
|
||||
- flicker:
|
||||
name: "Flicker"
|
||||
alpha: 95%
|
||||
intensity: 1.5%
|
||||
|
||||
101
esphome/cfg_xmas/kersthuis03.yaml
Normal file
101
esphome/cfg_xmas/kersthuis03.yaml
Normal file
@@ -0,0 +1,101 @@
|
||||
substitutions:
|
||||
device_name: "kersthuis-03"
|
||||
friendly_name: "kersthuis-03-candyshop"
|
||||
comment: "esp32-c3"
|
||||
location: "woonkamer"
|
||||
api_password: !secret kersthuis-03_api
|
||||
ip: !secret kersthuis-03_ip
|
||||
ota_password: !secret ota_password
|
||||
wifi_ssid: !secret wifi_ssid
|
||||
wifi_password: !secret wifi_password
|
||||
gateway: !secret ip_gateway
|
||||
subnet: !secret ip_subnet
|
||||
pin_led1: GPIO3
|
||||
pin_led2: GPIO4
|
||||
pin_led3: GPIO6
|
||||
pin_button: GPIO7
|
||||
|
||||
packages:
|
||||
board: !include boards/esp32-C3.yaml
|
||||
device_base: !include common/common.yaml
|
||||
connection: !include common/wifi.yaml
|
||||
# status: !include templates/status.yaml
|
||||
logger: !include templates/logger.yaml
|
||||
|
||||
light:
|
||||
- platform: monochromatic
|
||||
id: led_light1
|
||||
restore_mode: RESTORE_DEFAULT_ON
|
||||
output: led1
|
||||
name: led_light1
|
||||
effects:
|
||||
- flicker:
|
||||
name: "Flicker"
|
||||
alpha: 95%
|
||||
intensity: 1.5%
|
||||
on_turn_on:
|
||||
- light.turn_on:
|
||||
id: led_light1
|
||||
effect: flicker
|
||||
brightness: 75%
|
||||
|
||||
- platform: monochromatic
|
||||
id: led_light2
|
||||
restore_mode: RESTORE_DEFAULT_ON
|
||||
output: led2
|
||||
name: led_light2
|
||||
effects:
|
||||
- flicker:
|
||||
name: "Flicker"
|
||||
alpha: 95%
|
||||
intensity: 1.5%
|
||||
on_turn_on:
|
||||
- light.turn_on:
|
||||
id: led_light2
|
||||
effect: flicker
|
||||
brightness: 75%
|
||||
|
||||
|
||||
- platform: monochromatic
|
||||
id: led_light3
|
||||
restore_mode: RESTORE_DEFAULT_ON
|
||||
output: led3
|
||||
name: led_light3
|
||||
effects:
|
||||
- flicker:
|
||||
name: "Flicker"
|
||||
alpha: 95%
|
||||
intensity: 1.5%
|
||||
on_turn_on:
|
||||
- light.turn_on:
|
||||
id: led_light3
|
||||
effect: flicker
|
||||
brightness: 75%
|
||||
|
||||
output:
|
||||
- platform: ledc
|
||||
pin: ${pin_led1}
|
||||
id: led1
|
||||
|
||||
- platform: ledc
|
||||
pin: ${pin_led2}
|
||||
id: led2
|
||||
|
||||
- platform: ledc
|
||||
pin: ${pin_led3}
|
||||
id: led3
|
||||
|
||||
|
||||
binary_sensor:
|
||||
- platform: gpio
|
||||
pin:
|
||||
number: ${pin_button}
|
||||
mode:
|
||||
input: true
|
||||
pullup: true
|
||||
name: "button"
|
||||
on_click:
|
||||
then:
|
||||
- light.toggle: led_light1
|
||||
- light.toggle: led_light2
|
||||
- light.toggle: led_light3
|
||||
22
esphome/cfg_xmas/kerstlantern.yaml
Normal file
22
esphome/cfg_xmas/kerstlantern.yaml
Normal file
@@ -0,0 +1,22 @@
|
||||
substitutions:
|
||||
device_name: "kerstlantern"
|
||||
friendly_name: "kerstlantern"
|
||||
comment: "esp32-c3"
|
||||
location: "woonkamer"
|
||||
api_password: !secret kerstlantern_api
|
||||
ip: !secret kerstlatern_ip
|
||||
ota_password: !secret ota_password
|
||||
wifi_ssid: !secret wifi_ssid
|
||||
wifi_password: !secret wifi_password
|
||||
gateway: !secret ip_gateway
|
||||
subnet: !secret ip_subnet
|
||||
chipset: SK6812
|
||||
num_leds: "3"
|
||||
pin_led1: GPIO3
|
||||
|
||||
packages:
|
||||
board: !include boards/esp32-C3.yaml
|
||||
device_base: !include common/common.yaml
|
||||
connection: !include common/wifi.yaml
|
||||
logger: !include templates/logger.yaml
|
||||
leds: !include templates/light_rgbw_rmt.yaml
|
||||
Reference in New Issue
Block a user