20260326
This commit is contained in:
127
esphome/archive/badkamer-radiator-fan.yaml
Normal file
127
esphome/archive/badkamer-radiator-fan.yaml
Normal file
@@ -0,0 +1,127 @@
|
||||
|
||||
substitutions:
|
||||
device_name: "badkamerradfan"
|
||||
friendly_name: "badkamerradfan"
|
||||
comment: "esp32-c3 - BTproxy"
|
||||
location: "Badkamer"
|
||||
api_password: !secret badkamerradfan_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 badkamerradfan_ip
|
||||
pin_temp: GPIO3
|
||||
pin_pwm: GPIO2
|
||||
pin_tach1: GPIO6
|
||||
pin_tach2: GPIO7
|
||||
pin_tach3: GPIO9
|
||||
pin_status: GPIO8
|
||||
ledc_freq: "1000"
|
||||
|
||||
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
|
||||
bt_proxy: !include common/bluetooth.yaml
|
||||
|
||||
output:
|
||||
- platform: ledc
|
||||
pin: ${pin_pwm}
|
||||
id: pwm1
|
||||
frequency: ${ledc_freq}
|
||||
|
||||
fan:
|
||||
- platform: speed
|
||||
output: pwm1
|
||||
name: "Badkamer radiator Fan"
|
||||
id: badkamerfan
|
||||
restore_mode: RESTORE_DEFAULT_OFF
|
||||
|
||||
# Example configuration entry
|
||||
one_wire:
|
||||
- platform: gpio
|
||||
pin: ${pin_temp}
|
||||
|
||||
# Individual sensors
|
||||
sensor:
|
||||
- platform: dallas_temp
|
||||
address: 0xb1800000081e5a28
|
||||
name: "Radiataor Temperature"
|
||||
id: radtemperature
|
||||
on_value_range:
|
||||
- above: !lambda return id(TemperatureOn).state;
|
||||
then:
|
||||
- fan.turn_on: badkamerfan
|
||||
- below: !lambda return id(TemperatureOff).state;
|
||||
then:
|
||||
- fan.turn_off: badkamerfan
|
||||
|
||||
- platform: pulse_counter
|
||||
pin:
|
||||
number: ${pin_tach1}
|
||||
mode:
|
||||
input: true
|
||||
pullup: true
|
||||
name: fan1 PWM
|
||||
id: fan_pulse1
|
||||
unit_of_measurement: 'RPM'
|
||||
filters:
|
||||
- multiply: 0.5
|
||||
count_mode:
|
||||
rising_edge: INCREMENT
|
||||
falling_edge: DISABLE
|
||||
update_interval: 3s
|
||||
- platform: pulse_counter
|
||||
pin:
|
||||
number: ${pin_tach2}
|
||||
mode:
|
||||
input: true
|
||||
pullup: true
|
||||
name: fan2 PWM
|
||||
id: fan_pulse2
|
||||
unit_of_measurement: 'RPM'
|
||||
filters:
|
||||
- multiply: 0.5
|
||||
count_mode:
|
||||
rising_edge: INCREMENT
|
||||
falling_edge: DISABLE
|
||||
update_interval: 3s
|
||||
- platform: pulse_counter
|
||||
pin:
|
||||
number: ${pin_tach3}
|
||||
mode:
|
||||
input: true
|
||||
pullup: true
|
||||
name: fan3 PWM
|
||||
id: fan_pulse3
|
||||
unit_of_measurement: 'RPM'
|
||||
filters:
|
||||
- multiply: 0.5
|
||||
count_mode:
|
||||
rising_edge: INCREMENT
|
||||
falling_edge: DISABLE
|
||||
update_interval: 3s
|
||||
|
||||
number:
|
||||
- platform: template
|
||||
name: "Fan on temp"
|
||||
id: TemperatureOn
|
||||
optimistic: true
|
||||
min_value: 15
|
||||
max_value: 65
|
||||
restore_value: True
|
||||
initial_value: 28
|
||||
step: 1
|
||||
|
||||
- platform: template
|
||||
name: "Fan off temp"
|
||||
id: TemperatureOff
|
||||
optimistic: true
|
||||
min_value: 15
|
||||
max_value: 65
|
||||
restore_value: True
|
||||
initial_value: 24
|
||||
step: 1
|
||||
157
esphome/archive/dsmr-reader.yaml
Normal file
157
esphome/archive/dsmr-reader.yaml
Normal file
@@ -0,0 +1,157 @@
|
||||
---
|
||||
substitutions:
|
||||
device_name: slimmelezer
|
||||
friendly_name: "slimmelezer"
|
||||
comment: "esp8266"
|
||||
api_password: !secret slimmelezer_api
|
||||
ota_password: !secret ota_password
|
||||
wifi_ssid: !secret wifi_ssid
|
||||
wifi_password: !secret wifi_password
|
||||
wifi_ssid2: !secret wifi_ssid2
|
||||
wifi_password2: !secret wifi_password2
|
||||
location: "meterkast"
|
||||
|
||||
packages:
|
||||
device_base: !include common/common.yaml
|
||||
connection: !include common/wifi.yaml
|
||||
|
||||
esp8266:
|
||||
restore_from_flash: true
|
||||
board: d1_mini
|
||||
|
||||
wifi:
|
||||
# Powersaving for brownout due to 250mA restriction P1
|
||||
output_power: 14dB
|
||||
|
||||
#captive_portal:
|
||||
|
||||
# Enable logging
|
||||
logger:
|
||||
baud_rate: 0
|
||||
# logs:
|
||||
# component: ERROR
|
||||
|
||||
# Enable Home Assistant API
|
||||
# api:
|
||||
|
||||
# ota:
|
||||
# platform: esphome
|
||||
|
||||
# external_components:
|
||||
# - source: github://oxan/esphome-stream-server
|
||||
|
||||
|
||||
# stream_server:
|
||||
# - id: dsmrreaderserver
|
||||
# uart_id: dsmrreaderuart
|
||||
# port: 6640
|
||||
|
||||
# binary_sensor:
|
||||
# - platform: stream_server
|
||||
# stream_server: dsmrreaderserver
|
||||
# connected:
|
||||
# name: "DSMR Serial Connected"
|
||||
|
||||
uart:
|
||||
- id: dsmrreaderuart
|
||||
baud_rate: 9600
|
||||
rx_pin: D7
|
||||
rx_buffer_size: 1700
|
||||
parity: EVEN
|
||||
data_bits: 7
|
||||
stop_bits: 1
|
||||
|
||||
# globals:
|
||||
# - id: has_key
|
||||
# type: bool
|
||||
# restore_value: yes
|
||||
# initial_value: "false"
|
||||
# - id: stored_decryption_key
|
||||
# type: char[32]
|
||||
# restore_value: yes
|
||||
|
||||
dsmr:
|
||||
id: dsmr_instance
|
||||
max_telegram_length: 1700
|
||||
crc_check: false
|
||||
|
||||
sensor:
|
||||
- platform: dsmr
|
||||
energy_delivered_tariff1:
|
||||
name: "Energy Consumed Tariff 1"
|
||||
energy_delivered_tariff2:
|
||||
name: "Energy Consumed Tariff 2"
|
||||
energy_returned_tariff1:
|
||||
name: "Energy Produced Tariff 1"
|
||||
energy_returned_tariff2:
|
||||
name: "Energy Produced Tariff 2"
|
||||
power_delivered:
|
||||
name: "Power Consumed"
|
||||
accuracy_decimals: 3
|
||||
power_returned:
|
||||
name: "Power Produced"
|
||||
accuracy_decimals: 3
|
||||
electricity_failures:
|
||||
name: "Electricity Failures"
|
||||
icon: mdi:alert
|
||||
electricity_long_failures:
|
||||
name: "Long Electricity Failures"
|
||||
icon: mdi:alert
|
||||
voltage_l1:
|
||||
name: "Voltage Phase 1"
|
||||
voltage_l2:
|
||||
name: "Voltage Phase 2"
|
||||
voltage_l3:
|
||||
name: "Voltage Phase 3"
|
||||
current_l1:
|
||||
name: "Current Phase 1"
|
||||
current_l2:
|
||||
name: "Current Phase 2"
|
||||
current_l3:
|
||||
name: "Current Phase 3"
|
||||
power_delivered_l1:
|
||||
name: "Power Consumed Phase 1"
|
||||
accuracy_decimals: 3
|
||||
power_delivered_l2:
|
||||
name: "Power Consumed Phase 2"
|
||||
accuracy_decimals: 3
|
||||
power_delivered_l3:
|
||||
name: "Power Consumed Phase 3"
|
||||
accuracy_decimals: 3
|
||||
power_returned_l1:
|
||||
name: "Power Produced Phase 1"
|
||||
accuracy_decimals: 3
|
||||
power_returned_l2:
|
||||
name: "Power Produced Phase 2"
|
||||
accuracy_decimals: 3
|
||||
power_returned_l3:
|
||||
name: "Power Produced Phase 3"
|
||||
accuracy_decimals: 3
|
||||
gas_delivered:
|
||||
name: "Gas Consumed"
|
||||
- platform: uptime
|
||||
name: "SlimmeLezer Uptime"
|
||||
- platform: wifi_signal
|
||||
name: "SlimmeLezer Wi-Fi Signal"
|
||||
update_interval: 60s
|
||||
|
||||
text_sensor:
|
||||
- platform: dsmr
|
||||
identification:
|
||||
name: "DSMR Identification"
|
||||
p1_version:
|
||||
name: "DSMR Version"
|
||||
# p1_version_be:
|
||||
# name: "DSMR Version Belgium"
|
||||
# timestamp:
|
||||
# name: "Timestamp"
|
||||
# - platform: wifi_info
|
||||
# ip_address:
|
||||
# name: "SlimmeLezer IP Address"
|
||||
# ssid:
|
||||
# name: "SlimmeLezer Wi-Fi SSID"
|
||||
# bssid:
|
||||
# name: "SlimmeLezer Wi-Fi BSSID"
|
||||
# - platform: version
|
||||
# name: "ESPHome Version"
|
||||
# hide_timestamp: true
|
||||
58
esphome/archive/esp32-c6-2.yaml
Normal file
58
esphome/archive/esp32-c6-2.yaml
Normal file
@@ -0,0 +1,58 @@
|
||||
esphome:
|
||||
name: esp32-c6-2
|
||||
friendly_name: esp32-c6-2
|
||||
|
||||
api:
|
||||
encryption:
|
||||
key: !secret ot_ftd_led
|
||||
|
||||
ota:
|
||||
- platform: esphome
|
||||
password: !secret ota_password
|
||||
|
||||
esp32:
|
||||
board: esp32-c6-devkitm-1
|
||||
framework:
|
||||
type: esp-idf
|
||||
|
||||
logger:
|
||||
|
||||
network:
|
||||
enable_ipv6: true
|
||||
|
||||
openthread:
|
||||
device_type: FTD
|
||||
tlv: !secret otbr_tlv
|
||||
|
||||
output:
|
||||
- platform: gpio
|
||||
pin: GPIO15
|
||||
id: light_output
|
||||
|
||||
light:
|
||||
- platform: binary
|
||||
name: "Desk Lamp"
|
||||
output: light_output
|
||||
|
||||
text_sensor:
|
||||
- platform: openthread_info
|
||||
ip_address:
|
||||
name: "IP Address"
|
||||
channel:
|
||||
name: "Channel"
|
||||
role:
|
||||
name: "Device Role"
|
||||
rloc16:
|
||||
name: "RLOC16"
|
||||
ext_addr:
|
||||
name: "Extended Address"
|
||||
eui64:
|
||||
name: "EUI64 Interface ID"
|
||||
network_name:
|
||||
name: "Network Name"
|
||||
network_key:
|
||||
name: "Network Key"
|
||||
pan_id:
|
||||
name: "PAN ID"
|
||||
ext_pan_id:
|
||||
name: "Extended PAN ID"
|
||||
32
esphome/archive/esp32-nixie.yaml
Normal file
32
esphome/archive/esp32-nixie.yaml
Normal file
@@ -0,0 +1,32 @@
|
||||
esphome:
|
||||
name: esp32-nixie
|
||||
friendly_name: ESP32-nixie
|
||||
|
||||
esp32:
|
||||
board: esp32dev
|
||||
framework:
|
||||
type: esp-idf
|
||||
|
||||
# Enable logging
|
||||
logger:
|
||||
|
||||
# Enable Home Assistant API
|
||||
api:
|
||||
encryption:
|
||||
key: "4iPpRwvWoiq/euJoxnwpPiw+VfJcDxx/SPBtTT0VWRw="
|
||||
|
||||
ota:
|
||||
- platform: esphome
|
||||
password: "bc3f2661a30d3f60973c4158fcd73bd3"
|
||||
|
||||
wifi:
|
||||
ssid: !secret wifi_ssid
|
||||
password: !secret wifi_password
|
||||
|
||||
# Enable fallback hotspot (captive portal) in case wifi connection fails
|
||||
ap:
|
||||
ssid: "Esp32-Nixie Fallback Hotspot"
|
||||
password: "Knp1shnjPoDY"
|
||||
|
||||
captive_portal:
|
||||
|
||||
32
esphome/archive/eth.yaml
Normal file
32
esphome/archive/eth.yaml
Normal file
@@ -0,0 +1,32 @@
|
||||
esphome:
|
||||
name: eth
|
||||
friendly_name: eth
|
||||
|
||||
esp32:
|
||||
board: esp32-s3-devkitc-1
|
||||
framework:
|
||||
type: esp-idf
|
||||
|
||||
# Enable logging
|
||||
logger:
|
||||
|
||||
# Enable Home Assistant API
|
||||
api:
|
||||
encryption:
|
||||
key: "tHL0kVpQa5LCE0MLdxEVjLTVGZahEH0pIiO3VklxnKM="
|
||||
|
||||
ota:
|
||||
- platform: esphome
|
||||
password: "2eb3e4396a094ae7ba24cf54cda85e26"
|
||||
|
||||
wifi:
|
||||
ssid: !secret wifi_ssid
|
||||
password: !secret wifi_password
|
||||
|
||||
# Enable fallback hotspot (captive portal) in case wifi connection fails
|
||||
ap:
|
||||
ssid: "Eth Fallback Hotspot"
|
||||
password: "foGYMGevQflx"
|
||||
|
||||
captive_portal:
|
||||
|
||||
25
esphome/archive/slaap-trainer.yaml
Normal file
25
esphome/archive/slaap-trainer.yaml
Normal file
@@ -0,0 +1,25 @@
|
||||
substitutions:
|
||||
device_name: "slaaptrainer"
|
||||
friendly_name: "slaaptrainer Tim"
|
||||
comment: "esp8266, RGBled"
|
||||
location: "slaapkamer tim"
|
||||
api_password: !secret slaaptrainer_api
|
||||
ota_password: !secret ota_password
|
||||
wifi_ssid: !secret wifi_ssid
|
||||
wifi_password: !secret wifi_password
|
||||
wifi_ssid2: !secret wifi_ssid2
|
||||
wifi_password2: !secret wifi_password2
|
||||
gateway: !secret ip_gateway
|
||||
subnet: !secret ip_subnet
|
||||
ip: !secret slaaptrainer_ip
|
||||
pin_led1: GPIO03
|
||||
num_leds: "35"
|
||||
|
||||
packages:
|
||||
board: !include boards/esp12f.yaml
|
||||
connection: !include common/wifi.yaml
|
||||
device_base: !include common/common.yaml
|
||||
logger: !include templates/nologger.yaml
|
||||
leds: !include templates/light_neopixel.yaml
|
||||
colororange: !include color/COLOR_CSS_ORANGE
|
||||
colorgreen: !include color/COLOR_CSS_GREEN
|
||||
44
esphome/archive/slaap-trainer_Luuk.yaml
Normal file
44
esphome/archive/slaap-trainer_Luuk.yaml
Normal file
@@ -0,0 +1,44 @@
|
||||
substitutions:
|
||||
device_name: "slaaptrainer_luuk"
|
||||
friendly_name: "slaaptrainer Luuk"
|
||||
comment: "esp-C3, RGBled"
|
||||
api_password: !secret slaaptrainer_api
|
||||
ota_password: !secret ota_password
|
||||
wifi_ssid: !secret wifi_ssid
|
||||
wifi_password: !secret wifi_password
|
||||
wifi_ssid2: !secret wifi_ssid2
|
||||
wifi_password2: !secret wifi_password2
|
||||
gateway: !secret ip_gateway
|
||||
subnet: !secret ip_subnet
|
||||
ip: !secret slaaptrainer_luuk_ip
|
||||
location: "slaapkamer Luuk"
|
||||
board: "esp32-c3-devkitm-1"
|
||||
framework: esp-idf
|
||||
pin_led1: GPIO09
|
||||
num_leds: "36"
|
||||
chipset: WS2812
|
||||
is_rgbw: "false"
|
||||
|
||||
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
|
||||
colororange: !include color/COLOR_CSS_ORANGE
|
||||
colorgreen: !include color/COLOR_CSS_GREEN
|
||||
colorred: !include color/COLOR_CSS_RED
|
||||
|
||||
|
||||
# time:
|
||||
# - platform: sntp
|
||||
# on_time:
|
||||
# # Every morning on weekdays
|
||||
# - seconds: 0
|
||||
# minutes: 00
|
||||
# hours: 7
|
||||
# days_of_week: MON-FRI
|
||||
# then:
|
||||
# - light.turn_on: my_light
|
||||
|
||||
|
||||
32
esphome/archive/thread-repeater.yaml
Normal file
32
esphome/archive/thread-repeater.yaml
Normal file
@@ -0,0 +1,32 @@
|
||||
esphome:
|
||||
name: thread-repeater
|
||||
friendly_name: thread-repeater
|
||||
|
||||
esp32:
|
||||
board: esp32-c6-devkitc-1
|
||||
framework:
|
||||
type: esp-idf
|
||||
|
||||
# Enable logging
|
||||
logger:
|
||||
|
||||
# Enable Home Assistant API
|
||||
api:
|
||||
encryption:
|
||||
key: "dDrJ5CD+x5R0yTru0MlfY9y9JaW8+4x6WWvha6Jvyuw="
|
||||
|
||||
ota:
|
||||
- platform: esphome
|
||||
password: "c5b6017a482b9e783b6e88edfc53992b"
|
||||
|
||||
wifi:
|
||||
ssid: !secret wifi_ssid
|
||||
password: !secret wifi_password
|
||||
|
||||
# Enable fallback hotspot (captive portal) in case wifi connection fails
|
||||
ap:
|
||||
ssid: "Thread-Repeater Fallback Hotspot"
|
||||
password: "LkDplhFydNZd"
|
||||
|
||||
captive_portal:
|
||||
|
||||
161
esphome/archive/uzg-poe-dr.yaml
Normal file
161
esphome/archive/uzg-poe-dr.yaml
Normal file
@@ -0,0 +1,161 @@
|
||||
esphome:
|
||||
name: tubeszb-dual-radio-kit-cc2652
|
||||
project:
|
||||
name: tubezb.cc2652+zw
|
||||
version: "3.0"
|
||||
on_boot:
|
||||
priority: 600
|
||||
then:
|
||||
- switch.turn_on: zRST_gpio
|
||||
- delay: 15ms
|
||||
- switch.turn_off: zRST_gpio
|
||||
- lambda: |-
|
||||
id(mdns0).add_extra_service({ "_zigbee-coordinator", "_tcp", 6638, {{"radio_type", "znp"}, {"name", "TubesZB"},{"serial_number", get_mac_address()}} });
|
||||
id(mdns0).add_extra_service({ "_zwave", "_tcp", 6639, {{"version", "1.0"}, {"name", "TubesZB"},{"serial_number", get_mac_address()}} });
|
||||
esp32:
|
||||
board: esp32-poe
|
||||
framework:
|
||||
type: esp-idf
|
||||
|
||||
external_components:
|
||||
- source: github://oxan/esphome-stream-server
|
||||
|
||||
|
||||
#Olimex ESP32-PoE Ethernet
|
||||
ethernet:
|
||||
type: LAN8720
|
||||
mdc_pin: GPIO23
|
||||
mdio_pin: GPIO18
|
||||
clk_mode: GPIO17_OUT
|
||||
phy_addr: 0
|
||||
power_pin: GPIO5
|
||||
|
||||
# Optional manual IP
|
||||
# manual_ip:
|
||||
# static_ip: STATIC_IP
|
||||
# gateway: GATEWAY
|
||||
# subnet: SUBNET
|
||||
|
||||
|
||||
# Enable logging
|
||||
logger:
|
||||
level: DEBUG
|
||||
|
||||
# Enable Home Assistant API
|
||||
api:
|
||||
reboot_timeout: 0s
|
||||
|
||||
ota:
|
||||
platform: esphome
|
||||
|
||||
web_server:
|
||||
port: 80
|
||||
local: true
|
||||
|
||||
|
||||
script:
|
||||
- id: fw_update_mode
|
||||
then:
|
||||
- switch.turn_on: zBSL
|
||||
- delay: 1s
|
||||
- switch.turn_on: zRST_gpio
|
||||
- delay: 1s
|
||||
- switch.turn_off: zRST_gpio
|
||||
- logger.log: "Delaying ~10 seconds for cc2652p2 to settle"
|
||||
- delay: 11s
|
||||
- switch.turn_off: zBSL
|
||||
- logger.log: "Please try update with cc2538-bsl tool now"
|
||||
- logger.log: "cc-bsl usage: cc2538-bsl.py -p socket://ip-of-gw:6638 -evw firmware.hex"
|
||||
|
||||
switch:
|
||||
- platform: gpio
|
||||
pin: 16
|
||||
id: zRST_gpio
|
||||
inverted: no
|
||||
restore_mode: ALWAYS_OFF
|
||||
|
||||
- platform: gpio
|
||||
pin: 33
|
||||
id: z_mode
|
||||
restore_mode: ALWAYS_OFF
|
||||
name: "zigbee-uart mode"
|
||||
on_turn_on:
|
||||
then:
|
||||
- light.turn_on: usb_led
|
||||
on_turn_off:
|
||||
then:
|
||||
- light.turn_off: usb_led
|
||||
|
||||
- platform: gpio
|
||||
pin: 15
|
||||
name: "Zigbee Module Bootloader Pin"
|
||||
id: zBSL
|
||||
inverted: no
|
||||
restore_mode: ALWAYS_OFF
|
||||
disabled_by_default: false
|
||||
|
||||
output:
|
||||
- platform: gpio
|
||||
pin: GPIO12
|
||||
id: LED_USB
|
||||
|
||||
button:
|
||||
- platform: restart
|
||||
name: "Restart the ESP32 Device"
|
||||
|
||||
- platform: template
|
||||
name: "Trigger Zigbee Module Reset"
|
||||
disabled_by_default: false
|
||||
id: zRST
|
||||
on_press:
|
||||
- switch.turn_on: zRST_gpio
|
||||
- delay: 15ms
|
||||
- switch.turn_off: zRST_gpio
|
||||
|
||||
- platform: template
|
||||
name: "Trigger Zigbee Module Bootloader"
|
||||
disabled_by_default: false
|
||||
on_press:
|
||||
- script.execute: fw_update_mode
|
||||
|
||||
light:
|
||||
- platform: status_led
|
||||
name: "state"
|
||||
pin: GPIO14
|
||||
- platform: binary
|
||||
name: "usb_led"
|
||||
output: LED_USB
|
||||
id: usb_led
|
||||
|
||||
uart:
|
||||
- id: uart_bus_zb
|
||||
rx_pin: GPIO36
|
||||
tx_pin: GPIO4
|
||||
baud_rate: 115200
|
||||
# rx_buffer_size: 1024
|
||||
- id: uart_bus_zw
|
||||
rx_pin: GPIO13
|
||||
tx_pin: GPIO2
|
||||
baud_rate: 115200
|
||||
|
||||
stream_server:
|
||||
- id: zb
|
||||
uart_id: uart_bus_zb
|
||||
port: 6638 # optional, default is 6638
|
||||
# buffer_size: 1024
|
||||
- id: zw
|
||||
uart_id: uart_bus_zw
|
||||
port: 6639
|
||||
|
||||
binary_sensor:
|
||||
- platform: stream_server
|
||||
stream_server: zb
|
||||
connected:
|
||||
name: "TubesZB Zigbee Serial Connected"
|
||||
- platform: stream_server
|
||||
stream_server: zw
|
||||
connected:
|
||||
name: "TubesZB Z-Wave Serial Connected"
|
||||
|
||||
mdns:
|
||||
id: mdns0
|
||||
42
esphome/archive/zemismart-curtain.yaml
Executable file
42
esphome/archive/zemismart-curtain.yaml
Executable file
@@ -0,0 +1,42 @@
|
||||
substitutions:
|
||||
device_name: "zemismart-curtain"
|
||||
friendly_name: "zemismart curtain"
|
||||
comment: "esp8266 tuya mcu curtain"
|
||||
location: "overloop"
|
||||
api_password: !secret zemismart_curtain
|
||||
ota_password: !secret ota_password
|
||||
wifi_ssid: !secret wifi_ssid
|
||||
wifi_password: !secret wifi_password
|
||||
wifi_ssid2: !secret wifi_ssid2
|
||||
wifi_password2: !secret wifi_password2
|
||||
gateway: !secret ip_gateway
|
||||
subnet: !secret ip_subnet
|
||||
ip: !secret zemismart_curtain_ip
|
||||
pin_curtain_rx: GPIO13
|
||||
pin_curtain_tx: GPIO15
|
||||
|
||||
|
||||
packages:
|
||||
board: !include boards/esp01.yaml
|
||||
device_base: !include common/common.yaml
|
||||
connection: !include common/wifi.yaml
|
||||
logger: !include templates/nologger.yaml
|
||||
|
||||
uart:
|
||||
- !include interfaces/uart_tywe1s.yaml
|
||||
|
||||
# esphome:
|
||||
# includes:
|
||||
# - include/bcm500ds.h
|
||||
|
||||
external_components:
|
||||
- source: components
|
||||
components: [ tuya_cover ]
|
||||
|
||||
cover:
|
||||
platform: tuya_cover
|
||||
name: Tuya cover
|
||||
|
||||
# custom_component:
|
||||
# - lambda: |-
|
||||
# return { new CustomAPI() };
|
||||
71
esphome/archive/zigbee-server.yaml
Executable file
71
esphome/archive/zigbee-server.yaml
Executable file
@@ -0,0 +1,71 @@
|
||||
substitutions:
|
||||
device_name: "zigbee_server"
|
||||
friendly_name: "Zigbee server"
|
||||
comment: "esp32, POE eth zigbee"
|
||||
location: "hass"
|
||||
api_password: !secret zigbee_server_api
|
||||
ota_password: !secret ota_password
|
||||
# wifi_ssid: !secret wifi_ssid
|
||||
# wifi_password: !secret wifi_password
|
||||
gateway: !secret ip_gateway
|
||||
subnet: !secret ip_subnet
|
||||
dns1: !secret ip_dns1
|
||||
dns2: !secret ip_dns2
|
||||
ip: !secret zigbee_server_ip
|
||||
pin_button: GPIO39
|
||||
pin_leds: GPIO25
|
||||
pin_mdc: GPIO23
|
||||
pin_mdio: GPIO18
|
||||
pin_clk: GPIO17_OUT
|
||||
pin_power: GPIO5
|
||||
pin_efrReset: GPIO33
|
||||
pin_efrTX: GPIO12
|
||||
pin_efrRX: GPIO16
|
||||
|
||||
|
||||
packages:
|
||||
board: !include boards/esp32_wroom_arduino.yaml
|
||||
device_base: !include common/common.yaml
|
||||
ethernet: !include interfaces/eth_LAN8720A.yaml
|
||||
|
||||
ota: !include common/ota.yaml
|
||||
logger: !include templates/nologger.yaml
|
||||
uptimesensor: !include sensors/uptime.yaml
|
||||
time: !include templates/time.yaml
|
||||
|
||||
external_components:
|
||||
- source: github://tube0013/esphome-stream-server-v2
|
||||
- source: github://syssi/esphome-zeroconf@main
|
||||
|
||||
button:
|
||||
- platform: restart
|
||||
name: "Restart the Gateway"
|
||||
disabled_by_default: true
|
||||
|
||||
uart:
|
||||
id: uart_bus
|
||||
tx_pin: ${pin_efrTX}
|
||||
rx_pin: ${pin_efrRX}
|
||||
baud_rate: 115200
|
||||
stop_bits: 1
|
||||
|
||||
stream_server:
|
||||
uart_id: uart_bus
|
||||
id: ss
|
||||
port: 6638 # optional, default is 6638
|
||||
|
||||
binary_sensor:
|
||||
- platform: stream_server
|
||||
stream_server: ss
|
||||
name: "TubesZB Serial Connected"
|
||||
|
||||
zeroconf:
|
||||
- service: tubeszb
|
||||
protocol: tcp
|
||||
port: 6638
|
||||
txt:
|
||||
version: 1.0
|
||||
name: TubesZB
|
||||
radio_type: ember
|
||||
baud_rate: 115200
|
||||
data_flow_control: software
|
||||
Reference in New Issue
Block a user