This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
esphome: | |
name: dingtian-4ch | |
friendly_name: Dingtian 4CH | |
comment: "ESP32-D0WD v1.0" | |
# Change NPN module modbus speed to 19200 | |
# Baud rate corresponds to the number: 0: 1200 1: 2400 2: 4800 3: 9600 4: 19200 | |
#on_boot: | |
# ## configure controller settings at setup | |
# ## make sure priority is lower than setup_priority of modbus_controller | |
# priority: -100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
substitutions: | |
name: "Bms" | |
invertor_id: "invertor" | |
invertor_name: "Invertor" | |
battery_coefficient: '2' # battery voltage / 12 | |
multiply_10: '5' # 10 / battery_coefficient | |
updates: 5s | |
esphome: | |
name: battery-bms-invertor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
substitutions: | |
inverter_id: inverter | |
updates: 5s | |
api_key: xxx | |
ota_password: xxx | |
esphome: | |
name: inverter-monitor | |
comment: "Inverter monitor" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
substitutions: | |
TELEGRAM_BOT_TOKEN: !secret telegram_bot_token | |
api_key: !secret api_key | |
ota_password: !secret ota_password | |
chat_id: xxxxxxxxx | |
esphome: | |
name: wemos | |
friendly_name: wemos |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% set td = trigger.to_state.last_changed - trigger.from_state.last_changed %} | |
{% set ts = td.total_seconds() | int %} | |
{% set hours, remainder = (ts // 3600, ts % 3600) %} | |
{% set minutes, seconds = (remainder // 60, remainder % 60) %} | |
Days: {{ td.days }}, hours: {{ hours }}, minutes: {{ minutes }}, seconds: {{ seconds }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://www.aliexpress.com/item/1005005848983315.html | |
# Pinout: | |
# GPIO0 - Button | |
# GPIO16 - Relay | |
# GPIO23 - LED | |
# ESP: ESP32-WROOM-32E (ESP32-D0WD V3, rev. 3.1) | |
substitutions: | |
name: 1ch-relay | |
friendly_name: 1CH Relay |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
esphome: | |
name: ld2410c | |
friendly_name: ld2410c | |
esp8266: | |
board: d1_mini_pro | |
# Enable logging | |
logger: |