cleaned for new home
This commit is contained in:
38
esphome/cfg_offline/aqs_ikea_co2.yaml
Normal file
38
esphome/cfg_offline/aqs_ikea_co2.yaml
Normal file
@@ -0,0 +1,38 @@
|
||||
substitutions:
|
||||
device_name: "esp32-c3-aqs-ikea-co2"
|
||||
friendly_name: "AQS-ikea-co2"
|
||||
comment: "esp32, pm, co2, display, BTproxy"
|
||||
location: "zolder"
|
||||
board: "esp32-c3-devkitm-1"
|
||||
framework: esp-idf
|
||||
api_password: !secret air_quality_zolder_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 aqs_ikea_co2_ip
|
||||
update_interval: 1s
|
||||
pin_status: GPIO8
|
||||
pin_sda: GPIO6
|
||||
pin_scl: GPIO7
|
||||
#pin_led1: GPIO10
|
||||
|
||||
#chipset: WS2812
|
||||
#num_leds: "1"
|
||||
|
||||
|
||||
packages:
|
||||
board: !include boards/esp32-gen.yaml
|
||||
i2c: !include interfaces/i2c_a.yaml
|
||||
device_base: !include common/common.yaml
|
||||
connection: !include common/wifi.yaml
|
||||
#status: !include templates/status.yaml
|
||||
logger: !include templates/logger.yaml
|
||||
#bt_proxy: !include common/bluetooth.yaml
|
||||
#leds: !include templates/light_rgbw_rmt.yaml
|
||||
|
||||
|
||||
#sensors
|
||||
co2: !include sensors/scd30.yaml
|
||||
tvoc: !include sensors/sgp30.yaml
|
||||
80
esphome/cfg_offline/aqs_woonkamer.yaml
Normal file
80
esphome/cfg_offline/aqs_woonkamer.yaml
Normal file
@@ -0,0 +1,80 @@
|
||||
substitutions:
|
||||
device_name: "aqs-woonkamer2"
|
||||
friendly_name: "AQS-woonkamer2"
|
||||
comment: "esp32, pm, co2, temp, hum, occup, btprox"
|
||||
location: "woonkamer"
|
||||
api_password: !secret air_quality_woonkamer_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 air_quality_woonkamer_ip
|
||||
update_interval: 30s
|
||||
pin_status: GPIO2
|
||||
pin_sda: GPIO21
|
||||
pin_scl: GPIO22
|
||||
pin_pm_rx: GPIO18
|
||||
pin_pm_tx: GPIO19
|
||||
pin_ld_tx: GPIO16
|
||||
pin_ld_rx: GPIO17
|
||||
pin_leds: GPIO23
|
||||
|
||||
packages:
|
||||
board: !include boards/esp32_wroom_arduino.yaml
|
||||
i2c: !include interfaces/i2c_a.yaml
|
||||
device_base: !include common/common.yaml
|
||||
connection: !include common/wifi.yaml
|
||||
status: !include templates/status.yaml
|
||||
logger: !include templates/nologger.yaml
|
||||
bt_proxy: !include common/bluetooth.yaml
|
||||
#sensors
|
||||
#mmwave: !include sensors/ld2420.yaml
|
||||
pmsc: !include sensors/pmsx0003.yaml
|
||||
co2: !include sensors/scd30.yaml
|
||||
tvoc: !include sensors/sgp30.yaml
|
||||
|
||||
|
||||
|
||||
light:
|
||||
- platform: neopixelbus
|
||||
type: GRBW
|
||||
variant: ws2812X
|
||||
pin: ${pin_leds}
|
||||
num_leds: 3
|
||||
name: "${device_name}_RGB_Light"
|
||||
id: RGB_Light
|
||||
effects:
|
||||
- random:
|
||||
name: "Random"
|
||||
transition_length: 4s
|
||||
update_interval: 5s
|
||||
- addressable_rainbow:
|
||||
name: Rainbow Effect
|
||||
speed: 100
|
||||
width: 2
|
||||
|
||||
- platform: partition
|
||||
name: "Top_LED"
|
||||
segments:
|
||||
# Use first 10 LEDs from the light with ID light1
|
||||
- id: RGB_Light
|
||||
from: 2
|
||||
to: 2
|
||||
|
||||
- platform: partition
|
||||
name: "Middle_LED"
|
||||
segments:
|
||||
# Use first 10 LEDs from the light with ID light1
|
||||
- id: RGB_Light
|
||||
from: 1
|
||||
to: 1
|
||||
|
||||
- platform: partition
|
||||
name: "Bottom_LED"
|
||||
segments:
|
||||
# Use first 10 LEDs from the light with ID light1
|
||||
- id: RGB_Light
|
||||
from: 0
|
||||
to: 0
|
||||
|
||||
35
esphome/cfg_offline/aqs_zolder.yaml
Normal file
35
esphome/cfg_offline/aqs_zolder.yaml
Normal file
@@ -0,0 +1,35 @@
|
||||
substitutions:
|
||||
device_name: "esp32-s2-aqs-ikea"
|
||||
friendly_name: "AQS-zolder"
|
||||
comment: "esp32, pm, co2, display, BTproxy"
|
||||
location: "zolder"
|
||||
api_password: !secret air_quality_zolder_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 air_quality_zolder_ip
|
||||
update_interval: 1s
|
||||
pin_pir: GPIO23
|
||||
pin_status: GPIO2
|
||||
pin_sda: GPIO21
|
||||
pin_scl: GPIO22
|
||||
pin_pm_rx: GPIO18
|
||||
pin_ld_tx: GPIO17
|
||||
pin_ld_rx: GPIO16
|
||||
|
||||
packages:
|
||||
board: !include boards/esp32_wroom_arduino.yaml
|
||||
i2c: !include interfaces/i2c_a.yaml
|
||||
device_base: !include common/common.yaml
|
||||
connection: !include common/wifi.yaml
|
||||
status: !include templates/status.yaml
|
||||
logger: !include templates/nologger.yaml
|
||||
bt_proxy: !include common/bluetooth.yaml
|
||||
|
||||
#sensors
|
||||
pms: !include sensors/pm1006.yaml
|
||||
co2: !include sensors/scd30.yaml
|
||||
tvoc: !include sensors/sgp30.yaml
|
||||
#pir: !include sensors/pir_raw.yaml
|
||||
29
esphome/cfg_offline/bt-proxy-hal.yaml
Normal file
29
esphome/cfg_offline/bt-proxy-hal.yaml
Normal file
@@ -0,0 +1,29 @@
|
||||
substitutions:
|
||||
device_name: "btproxyhal"
|
||||
friendly_name: "BT_proxy_hal"
|
||||
comment: "ESP32-c3 BTproxy"
|
||||
location: "hal"
|
||||
board: "esp32-c3-devkitm-1"
|
||||
framework: esp-idf
|
||||
api_password: !secret bt_proxy_hal_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 bt_proxy_hal_ip
|
||||
#pin_status: GPIO8
|
||||
# update_interval: 10s
|
||||
# pin_sda: GPIO8
|
||||
# pin_scl: GPIO9
|
||||
|
||||
|
||||
packages:
|
||||
board: !include boards/esp32-gen.yaml
|
||||
connection: !include common/wifi_btprox.yaml
|
||||
device_base: !include common/common.yaml
|
||||
logger: !include templates/nologger.yaml
|
||||
#status: !include templates/status.yaml
|
||||
btproxy: !include templates/bt_proxy.yaml
|
||||
#bme: !include sensors/bme280.yaml
|
||||
#i2c: !include interfaces/i2c_a.yaml
|
||||
26
esphome/cfg_offline/bt-proxy-slaapkamer-iw.yaml
Normal file
26
esphome/cfg_offline/bt-proxy-slaapkamer-iw.yaml
Normal file
@@ -0,0 +1,26 @@
|
||||
|
||||
|
||||
substitutions:
|
||||
device_name: "btproxyslaapkameriw"
|
||||
friendly_name: "BT_proxy_slaaplamer_iw"
|
||||
comment: "ESP32-c3 BTproxy"
|
||||
location: "Slaapkamer Tim"
|
||||
board: "esp32-c3-devkitm-1"
|
||||
framework: esp-idf
|
||||
api_password: !secret bt_proxy_slaapkamer_iw_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 bt_proxy_slaapkamer_iw_ip
|
||||
pin_status: GPIO8
|
||||
|
||||
|
||||
packages:
|
||||
board: !include boards/esp32-gen.yaml
|
||||
connection: !include common/wifi_btprox.yaml
|
||||
device_base: !include common/common.yaml
|
||||
logger: !include templates/logger.yaml
|
||||
btproxy: !include templates/bt_proxy.yaml
|
||||
|
||||
24
esphome/cfg_offline/bt-proxy-speelkamer.yaml
Normal file
24
esphome/cfg_offline/bt-proxy-speelkamer.yaml
Normal file
@@ -0,0 +1,24 @@
|
||||
substitutions:
|
||||
device_name: "btproxyspeelkamer"
|
||||
friendly_name: "BT_proxy_speelkamer"
|
||||
comment: "ESP32-c3 BTproxy"
|
||||
location: "speelkamer"
|
||||
board: "esp32-c3-devkitm-1"
|
||||
framework: esp-idf
|
||||
api_password: !secret bt_proxy_speelkamer_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 bt_proxy_speelkamer_ip
|
||||
pin_status: GPIO8
|
||||
|
||||
|
||||
packages:
|
||||
board: !include boards/esp32-gen.yaml
|
||||
connection: !include common/wifi_btprox.yaml
|
||||
device_base: !include common/common.yaml
|
||||
logger: !include templates/logger.yaml
|
||||
btproxy: !include templates/bt_proxy.yaml
|
||||
|
||||
26
esphome/cfg_offline/bt-proxy-woonkamer.yaml
Normal file
26
esphome/cfg_offline/bt-proxy-woonkamer.yaml
Normal file
@@ -0,0 +1,26 @@
|
||||
substitutions:
|
||||
device_name: "btproxywoonkamer"
|
||||
friendly_name: "BT_proxy_woonkamer"
|
||||
comment: "ESP32-c3 BTproxy"
|
||||
location: "woonkamer"
|
||||
board: "esp32-c3-devkitm-1"
|
||||
framework: esp-idf
|
||||
|
||||
api_password: !secret bt_proxy_woonkamer_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 bt_proxy_woonkamer_ip
|
||||
pin_status: GPIO8
|
||||
|
||||
|
||||
packages:
|
||||
board: !include boards/esp32-gen.yaml
|
||||
connection: !include common/wifi_btprox.yaml
|
||||
device_base: !include common/common.yaml
|
||||
logger: !include templates/logger.yaml
|
||||
#status: !include templates/status.yaml
|
||||
btproxy: !include templates/bt_proxy.yaml
|
||||
|
||||
27
esphome/cfg_offline/bt-proxy-zolder.yaml
Normal file
27
esphome/cfg_offline/bt-proxy-zolder.yaml
Normal file
@@ -0,0 +1,27 @@
|
||||
substitutions:
|
||||
device_name: "btproxyzolder"
|
||||
friendly_name: "BT_proxy_zolder"
|
||||
comment: "ESP32-c3 BTproxy"
|
||||
location: "zolder"
|
||||
board: "esp32-c3-devkitm-1"
|
||||
#framework: esp-idf
|
||||
framework: arduino
|
||||
|
||||
api_password: !secret bt_proxy_zolder_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 bt_proxy_zolder_ip
|
||||
pin_status: GPIO8
|
||||
|
||||
|
||||
packages:
|
||||
board: !include boards/esp32-gen.yaml
|
||||
connection: !include common/wifi_btprox.yaml
|
||||
device_base: !include common/common.yaml
|
||||
logger: !include templates/logger.yaml
|
||||
#status: !include templates/status.yaml
|
||||
btproxy: !include templates/bt_proxy.yaml
|
||||
|
||||
17
esphome/cfg_offline/ep-lite-zolder.yaml
Normal file
17
esphome/cfg_offline/ep-lite-zolder.yaml
Normal file
@@ -0,0 +1,17 @@
|
||||
substitutions:
|
||||
name: everything-presence-lite-20946c
|
||||
friendly_name: Everything Presence Lite 20946c
|
||||
packages:
|
||||
EverythingSmartTechnology.Everything_Presence_Lite: github://everythingsmarthome/everything-presence-lite/everything-presence-lite-ha.yaml@main
|
||||
esphome:
|
||||
name: ${name}
|
||||
name_add_mac_suffix: false
|
||||
friendly_name: ${friendly_name}
|
||||
api:
|
||||
encryption:
|
||||
key: 0ZAfs0jaWqKlNuTPEiPYj5vgi1eA0GPZU1xYtJAEdAM=
|
||||
|
||||
|
||||
wifi:
|
||||
ssid: !secret wifi_ssid
|
||||
password: !secret wifi_password
|
||||
55
esphome/cfg_offline/ep1-woonkamer.yaml
Executable file
55
esphome/cfg_offline/ep1-woonkamer.yaml
Executable file
@@ -0,0 +1,55 @@
|
||||
substitutions:
|
||||
name: ${device_name}
|
||||
device_name: "ep1_woonkamer"
|
||||
location: "woonkamer"
|
||||
comment: "esp32, mmwave, pir, BTproxy"
|
||||
friendly_name: "ep1_woonkamer"
|
||||
project_name: "Everything Smart Technology.Everything Presence One"
|
||||
project_version: "1.1.3"
|
||||
temperature_offset: "-3"
|
||||
humidity_offset: "5"
|
||||
temperature_update_interval: "60s"
|
||||
illuminance_update_interval: "30s"
|
||||
pir_delay_off: "10s"
|
||||
occupancy_delay_off: "15s"
|
||||
hidden_ssid: "false"
|
||||
factory_reset_disabled: "true"
|
||||
uart_target_output_disabled: "true"
|
||||
uart_presence_output_disabled: "true"
|
||||
api_password: !secret ep1_woonkamer_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 ep1_woonkamer_ip
|
||||
pin_sda: GPIO26
|
||||
pin_scl: GPIO25
|
||||
pin_status: GPIO32
|
||||
|
||||
packages:
|
||||
board: !include boards/esp32_wroom_arduino.yaml
|
||||
device_base: !include common/common.yaml
|
||||
device_version: !include common/ep_one-sen0395-stable.yaml
|
||||
connection: !include common/wifi.yaml
|
||||
logger: !include templates/logger.yaml
|
||||
i2c: !include interfaces/i2c_a.yaml
|
||||
bt_proxy: !include common/bluetooth.yaml
|
||||
sen0395_base: !include sensors/sen0395_base.yaml
|
||||
|
||||
wifi:
|
||||
on_connect:
|
||||
- switch.turn_on: mmwave_sensor
|
||||
|
||||
esp32_improv:
|
||||
authorizer: none
|
||||
|
||||
dashboard_import:
|
||||
package_import_url: github://everythingsmarthome/everything-presence-one/everything-presence-one-ble.yaml@main
|
||||
import_full_config: false
|
||||
|
||||
esphome:
|
||||
project:
|
||||
name: "${project_name}"
|
||||
version: "${project_version}"
|
||||
|
||||
592
esphome/cfg_offline/ep1-zolder.yaml
Normal file
592
esphome/cfg_offline/ep1-zolder.yaml
Normal file
@@ -0,0 +1,592 @@
|
||||
substitutions:
|
||||
name: ${device_name}
|
||||
device_name: "ep1-zolder"
|
||||
location: "Zolder"
|
||||
comment: "esp32, mmwave, pir, BTproxy"
|
||||
friendly_name: "ep1-zolder"
|
||||
project_name: "Everything Smart Technology.Everything Presence One"
|
||||
project_version: "1.1.3"
|
||||
temperature_offset: "-3"
|
||||
humidity_offset: "5"
|
||||
temperature_update_interval: "60s"
|
||||
illuminance_update_interval: "30s"
|
||||
pir_delay_off: "10s"
|
||||
occupancy_delay_off: "15s"
|
||||
hidden_ssid: "false"
|
||||
factory_reset_disabled: "true"
|
||||
uart_target_output_disabled: "true"
|
||||
uart_presence_output_disabled: "true"
|
||||
api_password: !secret ep1_zolder_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 ep1_zolder_ip
|
||||
pin_sda: GPIO26
|
||||
pin_scl: GPIO25
|
||||
pin_status: GPIO32
|
||||
|
||||
packages:
|
||||
board: !include boards/esp32_wroom_arduino.yaml
|
||||
device_base: !include common/common.yaml
|
||||
connection: !include common/wifi.yaml
|
||||
logger: !include templates/logger.yaml
|
||||
i2c: !include interfaces/i2c_a.yaml
|
||||
bt_proxy: !include common/bluetooth.yaml
|
||||
|
||||
|
||||
improv_serial:
|
||||
|
||||
esp32_improv:
|
||||
authorizer: none
|
||||
|
||||
dashboard_import:
|
||||
package_import_url: github://everythingsmarthome/presence-one/everything-presence-one.yaml@main
|
||||
import_full_config: false
|
||||
|
||||
esphome:
|
||||
project:
|
||||
name: "${project_name}"
|
||||
version: "${project_version}"
|
||||
includes:
|
||||
- include/SEN0395_distance.h
|
||||
|
||||
light:
|
||||
- platform: status_led
|
||||
name: ESP32 status LED
|
||||
pin: ${pin_status}
|
||||
entity_category: config
|
||||
disabled_by_default: True
|
||||
- platform: binary
|
||||
name: mmWave LED
|
||||
restore_mode: RESTORE_DEFAULT_OFF
|
||||
output: mmwave_led_output
|
||||
entity_category: config
|
||||
disabled_by_default: True
|
||||
|
||||
|
||||
|
||||
output:
|
||||
- platform: template
|
||||
id: mmwave_led_output
|
||||
type: binary
|
||||
write_action:
|
||||
- switch.turn_off: mmwave_sensor
|
||||
- delay: 1s
|
||||
- if:
|
||||
condition:
|
||||
lambda: !lambda return state;
|
||||
then:
|
||||
- uart.write: "setLedMode 1 0"
|
||||
else:
|
||||
- uart.write: "setLedMode 1 1"
|
||||
- delay: 1s
|
||||
- uart.write: "saveConfig"
|
||||
- delay: 3s
|
||||
- switch.turn_on: mmwave_sensor
|
||||
|
||||
i2c:
|
||||
sda: 26
|
||||
scl: 25
|
||||
scan: true
|
||||
|
||||
sensor:
|
||||
- platform: shtcx
|
||||
id: "shtc3_sensor"
|
||||
temperature:
|
||||
name: Temperature
|
||||
id: temperature_sensor
|
||||
filters:
|
||||
- offset: ${temperature_offset}
|
||||
- lambda: "return x + id(temperature_offset_ui).state;"
|
||||
humidity:
|
||||
name: Humidity
|
||||
id: humidity_sensor
|
||||
filters:
|
||||
- offset: ${humidity_offset}
|
||||
- lambda: "return x + id(humidity_offset_ui).state;"
|
||||
address: 0x70
|
||||
update_interval: ${temperature_update_interval}
|
||||
- platform: bh1750
|
||||
name: Illuminance
|
||||
id: illuminance_sensor
|
||||
address: 0x23
|
||||
update_interval: ${illuminance_update_interval}
|
||||
filters:
|
||||
- lambda: "return x + id(illuminance_offset_ui).state;"
|
||||
- platform: template
|
||||
name: Target 1 Distance # Don't change
|
||||
id: target_distance_1_m
|
||||
accuracy_decimals: 2
|
||||
disabled_by_default: false
|
||||
- platform: template
|
||||
name: Target 2 Distance # Don't change
|
||||
id: target_distance_2_m
|
||||
accuracy_decimals: 2
|
||||
disabled_by_default: True
|
||||
- platform: template
|
||||
name: Target 3 Distance # Don't change
|
||||
id: target_distance_3_m
|
||||
accuracy_decimals: 2
|
||||
disabled_by_default: True
|
||||
- platform: template
|
||||
name: Target 4 Distance # Don't change
|
||||
id: target_distance_4_m
|
||||
accuracy_decimals: 2
|
||||
disabled_by_default: True
|
||||
- platform: template
|
||||
name: "Target 1 SNR" # Don't change
|
||||
disabled_by_default: True
|
||||
- platform: template
|
||||
name: "Target 2 SNR" # Don't change
|
||||
disabled_by_default: True
|
||||
- platform: template
|
||||
name: "Target 3 SNR" # Don't change
|
||||
disabled_by_default: True
|
||||
- platform: template
|
||||
name: "Target 4 SNR" # Don't change
|
||||
disabled_by_default: True
|
||||
|
||||
binary_sensor:
|
||||
- platform: gpio
|
||||
name: mmWave
|
||||
id: mmwave
|
||||
device_class: occupancy
|
||||
pin:
|
||||
number: GPIO15
|
||||
mode: INPUT_PULLDOWN
|
||||
- platform: gpio
|
||||
pin:
|
||||
number: 33
|
||||
mode: INPUT_PULLDOWN
|
||||
name: PIR
|
||||
id: pir_motion_sensor
|
||||
device_class: motion
|
||||
filters:
|
||||
- delayed_off: ${pir_delay_off}
|
||||
- platform: template
|
||||
name: Occupancy
|
||||
id: occupancy
|
||||
device_class: occupancy
|
||||
filters:
|
||||
- delayed_off: ${occupancy_delay_off}
|
||||
lambda: |-
|
||||
if ( id(mmwave).state or id(pir_motion_sensor).state) {
|
||||
return true;
|
||||
}
|
||||
else if (id(mmwave).state == 0 and id(pir_motion_sensor).state == 0) {
|
||||
return false;
|
||||
}
|
||||
else {
|
||||
return id(occupancy).state;
|
||||
}
|
||||
- platform: template
|
||||
name: "Target 1 Active" # Don't change
|
||||
disabled_by_default: False
|
||||
- platform: template
|
||||
name: "Target 2 Active" # Don't change
|
||||
disabled_by_default: True
|
||||
- platform: template
|
||||
name: "Target 3 Active" # Don't change
|
||||
disabled_by_default: True
|
||||
- platform: template
|
||||
name: "Target 4 Active" # Don't change
|
||||
disabled_by_default: True
|
||||
|
||||
uart:
|
||||
id: uart_bus
|
||||
tx_pin: GPIO13
|
||||
rx_pin: GPIO14
|
||||
baud_rate: 115200
|
||||
|
||||
|
||||
switch:
|
||||
- platform: template
|
||||
name: mmWave sensor
|
||||
id: mmwave_sensor
|
||||
disabled_by_default: True
|
||||
entity_category: config
|
||||
optimistic: true
|
||||
restore_mode: RESTORE_DEFAULT_ON
|
||||
turn_on_action:
|
||||
- uart.write: "sensorStart"
|
||||
- delay: 1s
|
||||
turn_off_action:
|
||||
- uart.write: "sensorStop"
|
||||
- delay: 1s
|
||||
|
||||
- platform: template
|
||||
name: UART presence output
|
||||
id: uart_presence_output
|
||||
entity_category: config
|
||||
internal: ${uart_presence_output_disabled}
|
||||
optimistic: true
|
||||
turn_on_action:
|
||||
- switch.turn_off: mmwave_sensor
|
||||
- delay: 1s
|
||||
- uart.write: "setUartOutput 1 1"
|
||||
- delay: 1s
|
||||
- uart.write: "saveConfig"
|
||||
- delay: 3s
|
||||
- switch.turn_on: mmwave_sensor
|
||||
turn_off_action:
|
||||
- switch.turn_off: mmwave_sensor
|
||||
- delay: 1s
|
||||
- uart.write: "setUartOutput 1 0"
|
||||
- delay: 1s
|
||||
- uart.write: "saveConfig"
|
||||
- delay: 3s
|
||||
- switch.turn_on: mmwave_sensor
|
||||
|
||||
- platform: template
|
||||
name: UART target output
|
||||
id: uart_target_output
|
||||
entity_category: config
|
||||
internal: ${uart_target_output_disabled}
|
||||
optimistic: true
|
||||
assumed_state: false
|
||||
restore_mode: ALWAYS_ON
|
||||
turn_on_action:
|
||||
- switch.turn_off: mmwave_sensor
|
||||
- delay: 1s
|
||||
- uart.write: "setUartOutput 2 1 1 1"
|
||||
- delay: 1s
|
||||
- uart.write: "saveConfig"
|
||||
- delay: 3s
|
||||
- switch.turn_on: mmwave_sensor
|
||||
turn_off_action:
|
||||
- switch.turn_off: mmwave_sensor
|
||||
- delay: 1s
|
||||
- uart.write: "setUartOutput 2 0"
|
||||
- delay: 1s
|
||||
- uart.write: "saveConfig"
|
||||
- delay: 3s
|
||||
- switch.turn_on: mmwave_sensor
|
||||
|
||||
number:
|
||||
- platform: template
|
||||
id: mmwave_zone_1_start
|
||||
name: mmWave Zone 1 Start
|
||||
min_value: 0
|
||||
max_value: 800
|
||||
step: 15
|
||||
initial_value: 0
|
||||
mode: slider
|
||||
unit_of_measurement: cm
|
||||
optimistic: true
|
||||
entity_category: config
|
||||
disabled_by_default: False
|
||||
icon: "mdi:arrow-left-right"
|
||||
|
||||
- platform: template
|
||||
id: mmwave_zone_1_end
|
||||
name: mmWave Zone 1 End
|
||||
min_value: 0
|
||||
max_value: 800
|
||||
step: 15
|
||||
initial_value: 315
|
||||
mode: slider
|
||||
unit_of_measurement: cm
|
||||
optimistic: true
|
||||
entity_category: config
|
||||
disabled_by_default: False
|
||||
icon: "mdi:arrow-left-right"
|
||||
|
||||
- platform: template
|
||||
id: mmwave_zone_2_start
|
||||
name: mmWave Zone 2 Start
|
||||
min_value: 0
|
||||
max_value: 800
|
||||
step: 15
|
||||
initial_value: 0
|
||||
mode: slider
|
||||
unit_of_measurement: cm
|
||||
optimistic: true
|
||||
entity_category: config
|
||||
disabled_by_default: True
|
||||
icon: "mdi:arrow-left-right"
|
||||
|
||||
- platform: template
|
||||
id: mmwave_zone_2_end
|
||||
name: mmWave Zone 2 End
|
||||
min_value: 0
|
||||
max_value: 800
|
||||
step: 15
|
||||
initial_value: 0
|
||||
mode: slider
|
||||
unit_of_measurement: cm
|
||||
optimistic: true
|
||||
entity_category: config
|
||||
disabled_by_default: True
|
||||
icon: "mdi:arrow-left-right"
|
||||
|
||||
- platform: template
|
||||
id: mmwave_zone_3_start
|
||||
name: mmWave Zone 3 Start
|
||||
min_value: 0
|
||||
max_value: 800
|
||||
step: 15
|
||||
initial_value: 0
|
||||
mode: slider
|
||||
unit_of_measurement: cm
|
||||
optimistic: true
|
||||
entity_category: config
|
||||
disabled_by_default: True
|
||||
icon: "mdi:arrow-left-right"
|
||||
|
||||
- platform: template
|
||||
id: mmwave_zone_3_end
|
||||
name: mmWave Zone 3 End
|
||||
min_value: 0
|
||||
max_value: 800
|
||||
step: 15
|
||||
initial_value: 0
|
||||
mode: slider
|
||||
unit_of_measurement: cm
|
||||
optimistic: true
|
||||
entity_category: config
|
||||
disabled_by_default: True
|
||||
icon: "mdi:arrow-left-right"
|
||||
|
||||
- platform: template
|
||||
id: mmwave_zone_4_start
|
||||
name: mmWave Zone 4 Start
|
||||
min_value: 0
|
||||
max_value: 800
|
||||
step: 15
|
||||
initial_value: 0
|
||||
mode: slider
|
||||
unit_of_measurement: cm
|
||||
optimistic: true
|
||||
entity_category: config
|
||||
disabled_by_default: True
|
||||
icon: "mdi:arrow-left-right"
|
||||
|
||||
- platform: template
|
||||
id: mmwave_zone_4_end
|
||||
name: mmWave Zone 4 End
|
||||
min_value: 0
|
||||
max_value: 800
|
||||
step: 15
|
||||
initial_value: 0
|
||||
mode: slider
|
||||
unit_of_measurement: cm
|
||||
optimistic: true
|
||||
entity_category: config
|
||||
disabled_by_default: True
|
||||
icon: "mdi:arrow-left-right"
|
||||
|
||||
- platform: template
|
||||
name: mmWave off latency
|
||||
icon: mdi:clock-end
|
||||
entity_category: config
|
||||
id: mmwave_off_latency
|
||||
min_value: 1
|
||||
max_value: 60
|
||||
initial_value: 15
|
||||
optimistic: true
|
||||
step: 1
|
||||
restore_value: true
|
||||
unit_of_measurement: seconds
|
||||
mode: slider
|
||||
set_action:
|
||||
- switch.turn_off: mmwave_sensor
|
||||
- delay: 1s
|
||||
- uart.write: !lambda |-
|
||||
std::string mss = "setLatency " + to_string(id(mmwave_on_latency).state) + " " + to_string(id(mmwave_off_latency).state);
|
||||
return std::vector<unsigned char>(mss.begin(), mss.end());
|
||||
- delay: 1s
|
||||
- uart.write: "saveCfg 0x45670123 0xCDEF89AB 0x956128C6 0xDF54AC89"
|
||||
- delay: 1s
|
||||
- switch.turn_on: mmwave_sensor
|
||||
|
||||
- platform: template
|
||||
name: mmWave on latency
|
||||
icon: mdi:clock-start
|
||||
id: mmwave_on_latency
|
||||
entity_category: config
|
||||
min_value: 0
|
||||
max_value: 60
|
||||
initial_value: 0
|
||||
optimistic: true
|
||||
step: 0.5
|
||||
restore_value: true
|
||||
unit_of_measurement: seconds
|
||||
mode: slider
|
||||
set_action:
|
||||
- switch.turn_off: mmwave_sensor
|
||||
- delay: 1s
|
||||
- uart.write: !lambda |-
|
||||
std::string mss = "setLatency " + to_string(id(mmwave_on_latency).state) + " " + to_string(id(mmwave_off_latency).state);
|
||||
return std::vector<unsigned char>(mss.begin(), mss.end());
|
||||
- delay: 1s
|
||||
- uart.write: "saveCfg 0x45670123 0xCDEF89AB 0x956128C6 0xDF54AC89"
|
||||
- delay: 1s
|
||||
- switch.turn_on: mmwave_sensor
|
||||
|
||||
- platform: template
|
||||
name: mmWave sensitivity
|
||||
icon: mdi:target-variant
|
||||
id: mmwave_sensitivity
|
||||
entity_category: config
|
||||
min_value: 0
|
||||
max_value: 9
|
||||
initial_value: 7
|
||||
optimistic: true
|
||||
step: 1
|
||||
restore_value: true
|
||||
set_action:
|
||||
- switch.turn_off: mmwave_sensor
|
||||
- delay: 1s
|
||||
- uart.write:
|
||||
!lambda std::string mss = "setSensitivity " + to_string((int)x);
|
||||
return std::vector<unsigned char>(mss.begin(), mss.end());
|
||||
- delay: 1s
|
||||
- uart.write: "saveConfig"
|
||||
- delay: 1s
|
||||
- switch.turn_on: mmwave_sensor
|
||||
|
||||
- platform: template
|
||||
name: "Temperature Offset"
|
||||
id: temperature_offset_ui
|
||||
unit_of_measurement: "°C"
|
||||
min_value: -20
|
||||
max_value: 20
|
||||
step: 0.1
|
||||
mode: box
|
||||
update_interval: never
|
||||
optimistic: true
|
||||
restore_value: true
|
||||
initial_value: 0
|
||||
icon: "mdi:thermometer"
|
||||
entity_category: config
|
||||
on_value:
|
||||
- lambda: 'id(shtc3_sensor).update();'
|
||||
- platform: template
|
||||
name: "Humidity Offset"
|
||||
id: humidity_offset_ui
|
||||
unit_of_measurement: "%"
|
||||
min_value: -50
|
||||
max_value: 50
|
||||
step: 0.1
|
||||
mode: box
|
||||
update_interval: never
|
||||
optimistic: true
|
||||
restore_value: true
|
||||
initial_value: 0
|
||||
icon: "mdi:water-percent"
|
||||
entity_category: config
|
||||
on_value:
|
||||
- lambda: 'id(shtc3_sensor).update();'
|
||||
- platform: template
|
||||
name: "Illuminance Offset"
|
||||
id: illuminance_offset_ui
|
||||
unit_of_measurement: "lx"
|
||||
min_value: -50
|
||||
max_value: 50
|
||||
step: 1
|
||||
mode: box
|
||||
update_interval: never
|
||||
optimistic: true
|
||||
restore_value: true
|
||||
initial_value: 0
|
||||
icon: "mdi:brightness-5"
|
||||
entity_category: config
|
||||
on_value:
|
||||
- lambda: 'id(illuminance_sensor).update();'
|
||||
|
||||
button:
|
||||
- platform: restart
|
||||
id: restart_internal
|
||||
entity_category: config
|
||||
internal: true
|
||||
- platform: template
|
||||
name: Restart mmWave sensor
|
||||
id: restart_mmwave
|
||||
entity_category: config
|
||||
internal: true
|
||||
on_press:
|
||||
- uart.write: "resetSystem"
|
||||
- platform: template
|
||||
name: Restart
|
||||
icon: mdi:restart
|
||||
entity_category: config
|
||||
disabled_by_default: True
|
||||
on_press:
|
||||
- button.press: restart_mmwave
|
||||
- button.press: restart_internal
|
||||
- platform: safe_mode
|
||||
internal: false
|
||||
name: Safe mode
|
||||
entity_category: config
|
||||
disabled_by_default: True
|
||||
- platform: template
|
||||
name: Factory reset mmWave
|
||||
icon: mdi:cog-counterclockwise
|
||||
id: factory_reset_mmwave
|
||||
internal: ${factory_reset_disabled}
|
||||
entity_category: config
|
||||
on_press:
|
||||
- switch.turn_off: mmwave_sensor
|
||||
- delay: 1s
|
||||
- uart.write: "resetCfg"
|
||||
- delay: 3s
|
||||
- switch.turn_on: mmwave_sensor
|
||||
- platform: template
|
||||
name: mmWave Set Distance
|
||||
id: mmwave_set_distance
|
||||
icon: "mdi:arrow-left-right"
|
||||
entity_category: config
|
||||
on_press:
|
||||
- switch.turn_off: mmwave_sensor
|
||||
- delay: 1s
|
||||
- uart.write: !lambda
|
||||
int s1 = (int)ceil(id(mmwave_zone_1_start).state / 15.0);
|
||||
int e1 = (int)ceil(id(mmwave_zone_1_end).state / 15.0);
|
||||
int s2 = (int)ceil(id(mmwave_zone_2_start).state / 15.0);
|
||||
int e2 = (int)ceil(id(mmwave_zone_2_end).state / 15.0);
|
||||
int s3 = (int)ceil(id(mmwave_zone_3_start).state / 15.0);
|
||||
int e3 = (int)ceil(id(mmwave_zone_3_end).state / 15.0);
|
||||
int s4 = (int)ceil(id(mmwave_zone_4_start).state / 15.0);
|
||||
int e4 = (int)ceil(id(mmwave_zone_4_end).state / 15.0);
|
||||
|
||||
std::string cmd = "detRangeCfg -1";
|
||||
|
||||
if(s1 < e1) {
|
||||
cmd += " " + to_string(s1) + " " + to_string(e1);
|
||||
}
|
||||
if(s2 > e1 && s2 < e2) {
|
||||
cmd += " " + to_string(s2) + " " + to_string(e2);
|
||||
}
|
||||
if(s3 > e2 && s3 < e3) {
|
||||
cmd += " " + to_string(s3) + " " + to_string(e3);
|
||||
}
|
||||
if(s4 > e3 && s4 < e4) {
|
||||
cmd += " " + to_string(s4) + " " + to_string(e4);
|
||||
}
|
||||
|
||||
if(cmd != "detRangeCfg -1") {
|
||||
std::vector<unsigned char> cmd_vec(cmd.begin(), cmd.end());
|
||||
ESP_LOGI("set_mmwave_distance", "Sending command to sensor %s", cmd.c_str());
|
||||
id(distance_zone_status).publish_state("Successfully sent to sensor! " + cmd.substr(14));
|
||||
return cmd_vec;
|
||||
} else {
|
||||
ESP_LOGE("set_mmwave_distance", "No valid segments configured. Please adjust the sliders.");
|
||||
id(distance_zone_status).publish_state("No valid segments configured. Please adjust the sliders.");
|
||||
return std::vector<unsigned char>();
|
||||
}
|
||||
- delay: 1s
|
||||
- uart.write: "saveCfg 0x45670123 0xCDEF89AB 0x956128C6 0xDF54AC89"
|
||||
- delay: 1s
|
||||
- switch.turn_on: mmwave_sensor
|
||||
|
||||
text_sensor:
|
||||
- platform: template
|
||||
name: "Distance Zones Status"
|
||||
id: "distance_zone_status"
|
||||
|
||||
custom_component:
|
||||
- lambda: |-
|
||||
auto my_custom = new Sen0395Distance(id(uart_bus));
|
||||
return {my_custom};
|
||||
27
esphome/cfg_offline/esp32-s3-box-3-voiceasist.yaml
Normal file
27
esphome/cfg_offline/esp32-s3-box-3-voiceasist.yaml
Normal file
@@ -0,0 +1,27 @@
|
||||
substitutions:
|
||||
name: "esp32-s3-box-3-voiceasist"
|
||||
friendly_name: ESP32 S3 Box 3 5a7a54
|
||||
gateway: !secret ip_gateway
|
||||
subnet: !secret ip_subnet
|
||||
ip: !secret esp32-s3-box-3_ip
|
||||
|
||||
packages:
|
||||
esphome.voice-assistant: github://esphome/wake-word-voice-assistants/esp32-s3-box-3/esp32-s3-box-3.yaml@main
|
||||
esphome:
|
||||
name: ${name}
|
||||
name_add_mac_suffix: false
|
||||
friendly_name: ${friendly_name}
|
||||
api:
|
||||
encryption:
|
||||
key: GKxKZNt/5rJJNTEoAvh1PLVESiUQRGnf1zWSHWZAnUw=
|
||||
|
||||
|
||||
wifi:
|
||||
ssid: !secret wifi_ssid
|
||||
password: !secret wifi_password
|
||||
manual_ip:
|
||||
static_ip: ${ip}
|
||||
gateway: ${gateway}
|
||||
subnet: ${subnet}
|
||||
dns1: 192.169.2.15
|
||||
dns2: 1.1.1.1
|
||||
28
esphome/cfg_offline/halloween-ghost01.yaml
Normal file
28
esphome/cfg_offline/halloween-ghost01.yaml
Normal file
@@ -0,0 +1,28 @@
|
||||
|
||||
|
||||
substitutions:
|
||||
device_name: "halloween-ghost01"
|
||||
friendly_name: "halloween-ghost01"
|
||||
comment: "esp32c3, RGBled"
|
||||
location: "Woonkamer"
|
||||
board: "esp32-c3-devkitm-1"
|
||||
framework: arduino
|
||||
api_password: !secret halloween_ghost01_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 halloween_ghost01_ip
|
||||
pin_led1: GPIO10
|
||||
num_leds: "1"
|
||||
chipset: WS2812
|
||||
|
||||
packages:
|
||||
board: !include boards/esp32-gen.yaml
|
||||
connection: !include common/wifi.yaml
|
||||
device_base: !include common/common.yaml
|
||||
logger: !include templates/logger.yaml
|
||||
leds: !include templates/light_rgbw_rmt.yaml
|
||||
bt_proxy: !include common/bluetooth.yaml
|
||||
|
||||
17
esphome/cfg_offline/home-assistant-voice-095f77.yaml
Normal file
17
esphome/cfg_offline/home-assistant-voice-095f77.yaml
Normal file
@@ -0,0 +1,17 @@
|
||||
substitutions:
|
||||
name: home-assistant-voice-095f77
|
||||
friendly_name: Home Assistant Voice 095f77
|
||||
packages:
|
||||
Nabu Casa.Home Assistant Voice PE: github://esphome/home-assistant-voice-pe/home-assistant-voice.yaml
|
||||
esphome:
|
||||
name: ${name}
|
||||
name_add_mac_suffix: false
|
||||
friendly_name: ${friendly_name}
|
||||
api:
|
||||
encryption:
|
||||
key: kfc7zAySq+LlWF4rdeDEwv7pXqcxIeCCkQE5yCWhi9s=
|
||||
|
||||
|
||||
wifi:
|
||||
ssid: !secret wifi_ssid
|
||||
password: !secret wifi_password
|
||||
55
esphome/cfg_offline/hvac-ir-slaapkamer.yaml
Normal file
55
esphome/cfg_offline/hvac-ir-slaapkamer.yaml
Normal file
@@ -0,0 +1,55 @@
|
||||
substitutions:
|
||||
device_name: "hvac-ir-slaapkamer"
|
||||
friendly_name: "HVAC-IR-RGB slaapkamer"
|
||||
comment: "esp8266, blue ESP12 module, IR, RGBW"
|
||||
location: "Slaapkamer"
|
||||
api_password: !secret hvac_slaapkamer_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 hvac_slaapkamer_ip
|
||||
pin_ir_tx: GPIO14
|
||||
pin_ir_rx: GPIO5
|
||||
pin_button: GPIO13
|
||||
pin_leds: GPIO03
|
||||
pin_status: GPIO4
|
||||
|
||||
packages:
|
||||
board: !include boards/esp12f.yaml
|
||||
ir: !include interfaces/ir.yaml
|
||||
connection: !include common/wifi.yaml
|
||||
device_base: !include common/common.yaml
|
||||
climate: !include templates/climate_nosens.yaml
|
||||
status: !include templates/nostatus.yaml
|
||||
logger: !include templates/nologger.yaml
|
||||
#button: !include templates/button.yaml
|
||||
|
||||
light:
|
||||
- platform: neopixelbus
|
||||
id: leds
|
||||
method:
|
||||
type: esp8266_dma
|
||||
type: GRBW
|
||||
variant: WS2812X
|
||||
pin: ${pin_leds}
|
||||
num_leds: 114
|
||||
name: "NeoPixel Light"
|
||||
effects:
|
||||
- random:
|
||||
name: "Random"
|
||||
transition_length: 2s
|
||||
update_interval: 7s
|
||||
- addressable_rainbow:
|
||||
name: Rainbow Effect
|
||||
speed: 16
|
||||
width: 4
|
||||
|
||||
|
||||
#GPIO4 - status
|
||||
#GPIO5 - IR rcvr
|
||||
#GPIO14 - IR tx
|
||||
#GPIO13 - button
|
||||
#GPIO15 - connect to GND
|
||||
#GPIO03 - WS2812 LEDS
|
||||
33
esphome/cfg_offline/hvac-ir-woonkamer.yaml
Normal file
33
esphome/cfg_offline/hvac-ir-woonkamer.yaml
Normal file
@@ -0,0 +1,33 @@
|
||||
substitutions:
|
||||
device_name: "hvac-ir-dsplay"
|
||||
friendly_name: "IR display sensor woonkamer"
|
||||
comment: "ESP8266, tuya-hack, display, sensor, IR"
|
||||
location: "woonkamer"
|
||||
api_password: !secret hvac_woonkamer_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 hvac_woonkamer_ip
|
||||
hvac_sensor: tuya_temp
|
||||
pin_ir_tx: GPIO14
|
||||
pin_ir_rx: GPIO5
|
||||
pin_tuya_rx: GPIO3
|
||||
pin_tuya_tx: GPIO1
|
||||
pin_tuya_status: GPIO16
|
||||
pin_button: GPIO13
|
||||
pin_status: GPIO4
|
||||
|
||||
packages:
|
||||
board: !include boards/esp12f.yaml
|
||||
ir: !include interfaces/ir.yaml
|
||||
connection: !include common/wifi.yaml
|
||||
device_base: !include common/common.yaml
|
||||
logger: !include templates/nologger.yaml
|
||||
status: !include templates/status.yaml
|
||||
button: !include templates/button.yaml
|
||||
climate: !include templates/climate_sens.yaml
|
||||
temp: !include sensors/tuya_mcu.yaml
|
||||
|
||||
|
||||
37
esphome/cfg_offline/hvac-ir-zolder.yaml
Normal file
37
esphome/cfg_offline/hvac-ir-zolder.yaml
Normal file
@@ -0,0 +1,37 @@
|
||||
substitutions:
|
||||
device_name: "hvac-ir-zolder"
|
||||
friendly_name: "Airco IR Zolder"
|
||||
comment: "ESP8266, Tuya-hack, IR"
|
||||
location: "zolder"
|
||||
api_password: !secret hvac_zolder_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 hvac_zolder_ip
|
||||
hvac_sensor: sht_temp
|
||||
update_interval: 30s
|
||||
#pin definitions
|
||||
pin_ir_tx: GPIO14
|
||||
pin_ir_rx: GPIO5
|
||||
pin_button: GPIO13
|
||||
pin_leds: GPIO03
|
||||
#pin_status: GPIO4
|
||||
pin_sda: GPIO4
|
||||
pin_scl: GPIO0
|
||||
|
||||
packages:
|
||||
board: !include boards/esp12f.yaml
|
||||
ir: !include interfaces/ir.yaml
|
||||
i2c_a: !include interfaces/i2c_a.yaml
|
||||
connection: !include common/wifi.yaml
|
||||
device_base: !include common/common.yaml
|
||||
climate: !include templates/climate_sens.yaml
|
||||
#status: !include templates/status.yaml
|
||||
logger: !include templates/logger.yaml
|
||||
sht3x: !include sensors/sht3x.yaml
|
||||
smsl: !include templates/remote_smsl.yaml
|
||||
|
||||
|
||||
|
||||
68
esphome/cfg_offline/rgb_moon_woonkamer.yaml
Normal file
68
esphome/cfg_offline/rgb_moon_woonkamer.yaml
Normal file
@@ -0,0 +1,68 @@
|
||||
substitutions:
|
||||
device_name: "esp32-atom-lite"
|
||||
friendly_name: "RGBLED moon woonkamer"
|
||||
comment: "esp32, RGBled, BT proxy"
|
||||
location: "Woonkamer"
|
||||
api_password: !secret esp32-atomo-lite_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 esp32-atomo-lite_ip
|
||||
pin_button: GPIO39
|
||||
pin_leds: GPIO25
|
||||
|
||||
packages:
|
||||
board: !include boards/esp32_m5atom.yaml
|
||||
connection: !include common/wifi.yaml
|
||||
device_base: !include common/common.yaml
|
||||
bt_proxy: !include common/bluetooth.yaml
|
||||
logger: !include templates/nologger.yaml
|
||||
|
||||
binary_sensor:
|
||||
- platform: gpio
|
||||
pin:
|
||||
number: ${pin_button}
|
||||
inverted: true
|
||||
name: ${device_name}_Button
|
||||
id: rgb_button
|
||||
on_click:
|
||||
then:
|
||||
- if:
|
||||
condition:
|
||||
- light.is_on: RGB_Light
|
||||
then:
|
||||
- light.turn_off: RGB_Light
|
||||
else:
|
||||
- light.turn_on: RGB_Light
|
||||
on_double_click:
|
||||
then:
|
||||
- if:
|
||||
condition:
|
||||
- light.is_on: RGB_Light
|
||||
then:
|
||||
- light.dim_relative:
|
||||
id: RGB_Light
|
||||
relative_brightness: 10%
|
||||
else:
|
||||
- light.turn_on: RGB_Light
|
||||
|
||||
light:
|
||||
- platform: neopixelbus
|
||||
type: GRB
|
||||
variant: ws2812X
|
||||
pin: ${pin_leds}
|
||||
num_leds: 1
|
||||
name: moon
|
||||
id: RGB_Light
|
||||
effects:
|
||||
- random:
|
||||
name: "Random"
|
||||
transition_length: 4s
|
||||
update_interval: 5s
|
||||
- addressable_rainbow:
|
||||
name: Rainbow Effect
|
||||
speed: 100
|
||||
width: 50
|
||||
|
||||
78
esphome/cfg_offline/tuya-plug-001.yaml
Normal file
78
esphome/cfg_offline/tuya-plug-001.yaml
Normal file
@@ -0,0 +1,78 @@
|
||||
|
||||
substitutions:
|
||||
device_name: "tuyaplug001"
|
||||
friendly_name: "tuya plug 001"
|
||||
comment: "eps-02S, tuya-hack"
|
||||
location: "zolder"
|
||||
api_password: !secret tuya_plug_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 tuya_plug_001_ip
|
||||
pin_relay: GPIO14
|
||||
pin_button: GPIO1
|
||||
pin_status: GPIO13
|
||||
pin_cf: GPIO04
|
||||
pin_cf1: GPIO05
|
||||
pin_sel: GPIO12
|
||||
|
||||
|
||||
|
||||
packages:
|
||||
board: !include boards/esp01.yaml
|
||||
connection: !include common/wifi.yaml
|
||||
device_base: !include common/common.yaml
|
||||
status: !include templates/status.yaml
|
||||
logger: !include templates/nologger.yaml
|
||||
|
||||
|
||||
binary_sensor:
|
||||
- platform: gpio
|
||||
pin:
|
||||
number: ${pin_button}
|
||||
mode:
|
||||
input: true
|
||||
pullup: true
|
||||
inverted: true
|
||||
name: "Button"
|
||||
on_press:
|
||||
- switch.toggle: relay
|
||||
|
||||
switch:
|
||||
# the power relay
|
||||
- platform: gpio
|
||||
id: relay
|
||||
pin: ${pin_relay}
|
||||
name: '${device_name}'
|
||||
restore_mode: RESTORE_DEFAULT_ON # attempt to restore state on start and defaults to OFF if failed
|
||||
icon: mdi:power-socket-de
|
||||
|
||||
sensor:
|
||||
- platform: hlw8012
|
||||
model: BL0937 # note that the model must be specified to use special calculation parameters
|
||||
current_resistor: 0.0010613489336676262 # adjust it according to the actual resistor value on board
|
||||
voltage_divider: 1407.7685950413224 # (2008.1K)/998 = 2004, adjust it according to the actual resistor values on board
|
||||
sel_pin:
|
||||
number: ${pin_sel}
|
||||
inverted: true # the logic of BL0937 is opposite from HLW8012
|
||||
cf_pin: ${pin_cf}
|
||||
cf1_pin: ${pin_cf1}
|
||||
current:
|
||||
name: 'Current'
|
||||
filters:
|
||||
- multiply: 0.7162477466468644
|
||||
voltage:
|
||||
name: 'Voltage'
|
||||
power:
|
||||
name: 'Power'
|
||||
energy:
|
||||
name: 'Energy'
|
||||
# convert to kWh
|
||||
filters:
|
||||
- multiply: 0.001
|
||||
unit_of_measurement: 'kWh'
|
||||
accuracy_decimals: 4
|
||||
update_interval: 10s
|
||||
change_mode_every: 3
|
||||
67
esphome/cfg_offline/watervalve.yaml
Normal file
67
esphome/cfg_offline/watervalve.yaml
Normal file
@@ -0,0 +1,67 @@
|
||||
substitutions:
|
||||
device_name: "watervalve"
|
||||
friendly_name: "WaterValve Garage"
|
||||
comment: "ESP8266, tuya-hack"
|
||||
location: "Garage"
|
||||
api_password: !secret watervalve_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 watervalve_ip
|
||||
pin_status: GPIO0
|
||||
pin_motor: GPIO13
|
||||
pin_button: GPIO12
|
||||
|
||||
packages:
|
||||
board: !include boards/esp12f.yaml
|
||||
connection: !include common/wifi.yaml
|
||||
device_base: !include common/common.yaml
|
||||
status: !include templates/status.yaml
|
||||
logger: !include templates/logger.yaml
|
||||
|
||||
switch:
|
||||
- platform: gpio
|
||||
id: valveMotor
|
||||
pin: ${pin_motor}
|
||||
name: "Valve"
|
||||
icon: mdi:pipe-valve
|
||||
internal: true
|
||||
|
||||
binary_sensor:
|
||||
- platform: gpio
|
||||
name: "Button"
|
||||
pin: ${pin_button}
|
||||
on_click:
|
||||
min_length: 50ms
|
||||
max_length: 1000ms
|
||||
then:
|
||||
- sprinkler.start_full_cycle: tuin_sprinkler_ctrlr
|
||||
on_double_click:
|
||||
then:
|
||||
- sprinkler.shutdown: tuin_sprinkler_ctrlr
|
||||
|
||||
sprinkler:
|
||||
- id: tuin_sprinkler_ctrlr
|
||||
multiplier_number: "Herhaling"
|
||||
valves:
|
||||
- valve_switch: "hoofd klep"
|
||||
run_duration_number: "hoofd klep timer"
|
||||
valve_switch_id: valveMotor
|
||||
|
||||
sensor:
|
||||
- platform: template
|
||||
name: "Resterende tijd"
|
||||
lambda: |-
|
||||
if (id(tuin_sprinkler_ctrlr).time_remaining_active_valve().has_value()) {
|
||||
// the controller is running, print the number of seconds remaining
|
||||
return id(tuin_sprinkler_ctrlr).time_remaining_active_valve().value();
|
||||
} else {
|
||||
// the controller is NOT running
|
||||
return 0;
|
||||
}
|
||||
unit_of_measurement: s
|
||||
accuracy_decimals: 0
|
||||
device_class: "duration"
|
||||
update_interval: 1s
|
||||
Reference in New Issue
Block a user