Fix trailing spaces and missing newlines in all mcu-*.yaml files

Bulk cleanup: remove trailing whitespace and ensure files end with a
newline. Structural issues (indentation, bracket spacing) left for
per-file fixes.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-19 11:22:12 +01:00
parent c88ccfbdb8
commit 7c9aae0a7d
48 changed files with 135 additions and 125 deletions

View File

@@ -10,7 +10,7 @@ esphome:
friendly_name: ${name} friendly_name: ${name}
area: ${area} area: ${area}
comment: ${comment} comment: ${comment}
esp32: esp32:
variant: esp32 variant: esp32
framework: framework:
@@ -18,7 +18,7 @@ esp32:
packages: packages:
common: !include common/common.yaml common: !include common/common.yaml
i2c: i2c:
# - id: i2c0 # - id: i2c0
sda: 32 sda: 32
@@ -109,4 +109,4 @@ sensor:
uart_id: particle_uart uart_id: particle_uart
update_interval: 20s update_interval: 20s
pm_2_5: pm_2_5:
name: Particulate Matter 2.5µm Concentration name: Particulate Matter 2.5µm Concentration

View File

@@ -16,7 +16,7 @@ esphome:
# id(display_tft).enable(); # id(display_tft).enable();
# id(display_tft).transfer_byte(0x11); # id(display_tft).transfer_byte(0x11);
# id(display_tft).disable(); # id(display_tft).disable();
esp32: esp32:
variant: esp32s3 variant: esp32s3
flash_size: 8MB flash_size: 8MB
@@ -43,7 +43,7 @@ animation:
logger: logger:
logs: logs:
component: ERROR component: ERROR
web_server: web_server:
port: 80 port: 80
@@ -377,7 +377,7 @@ display:
id(blinky).next_frame(); id(blinky).next_frame();
// Draw the animation my_animation at position [x=0,y=0] // Draw the animation my_animation at position [x=0,y=0]
it.image(0, 0, id(blinky), COLOR_ON, COLOR_OFF); it.image(0, 0, id(blinky), COLOR_ON, COLOR_OFF);
// // it.print(0, 0, id(font_default), "Hello World!"); // // it.print(0, 0, id(font_default), "Hello World!");
// // it.strftime(0, 0, id(font_default), TextAlign::TOP_LEFT, "%H:%M", id(ha_time).now()); // // it.strftime(0, 0, id(font_default), TextAlign::TOP_LEFT, "%H:%M", id(ha_time).now());
// it.rectangle(0, 0, it.get_width(), it.get_height(), id(my_blue)); // it.rectangle(0, 0, it.get_width(), it.get_height(), id(my_blue));
@@ -498,4 +498,4 @@ time:
# active: true # active: true
# esp32_improv: # esp32_improv:
# authorizer: none # authorizer: none

View File

@@ -16,7 +16,7 @@ esp8266:
packages: packages:
common: !include common/common_esp8266.yaml common: !include common/common_esp8266.yaml
# Sonoff Dual R2 # Sonoff Dual R2
# GPIO10 Push Button # GPIO10 Push Button
# GPIO00 Pin "button 0" on expansion header # GPIO00 Pin "button 0" on expansion header

View File

@@ -15,7 +15,7 @@ esp8266:
packages: packages:
common: !include common/common_esp8266.yaml common: !include common/common_esp8266.yaml
# Sonoff Dual R2 # Sonoff Dual R2
# Pin Function # Pin Function
# GPIO10 Push Button # GPIO10 Push Button
@@ -118,7 +118,7 @@ select:
id(blower_auto) = false; id(blower_auto) = false;
id(relay_1).turn_off(); id(relay_1).turn_off();
} }
status_led: status_led:
pin: pin:
number: 13 number: 13
@@ -136,7 +136,7 @@ switch:
icon: mdi:power-socket-fr icon: mdi:power-socket-fr
pin: 5 pin: 5
id: relay_2 id: relay_2
time: time:
- platform: homeassistant - platform: homeassistant
timezone: Europe/Bratislava timezone: Europe/Bratislava

View File

@@ -338,6 +338,6 @@ xiaomi_bslamp2:
master1: output_master1 master1: output_master1
master2: output_master2 master2: output_master2
front_panel: front_panel:
i2c: front_panel_i2c i2c: front_panel_i2c
address: 0x2C address: 0x2C
trigger_pin: GPIO16 trigger_pin: GPIO16

View File

@@ -319,6 +319,6 @@ xiaomi_bslamp2:
master1: output_master1 master1: output_master1
master2: output_master2 master2: output_master2
front_panel: front_panel:
i2c: front_panel_i2c i2c: front_panel_i2c
address: 0x2C address: 0x2C
trigger_pin: GPIO16 trigger_pin: GPIO16

View File

@@ -46,7 +46,7 @@ esp32:
logger: logger:
hardware_uart: USB_SERIAL_JTAG hardware_uart: USB_SERIAL_JTAG
logs: logs:
component: ERROR component: ERROR
# web_server: # web_server:
# port: 80 # port: 80
@@ -114,4 +114,4 @@ light:
state = !state; state = !state;
packages: packages:
common: !include common/common.yaml common: !include common/common.yaml

View File

@@ -46,7 +46,7 @@ esp32:
logger: logger:
hardware_uart: USB_SERIAL_JTAG hardware_uart: USB_SERIAL_JTAG
logs: logs:
component: ERROR component: ERROR
# web_server: # web_server:
# port: 80 # port: 80
@@ -114,4 +114,4 @@ light:
state = !state; state = !state;
packages: packages:
common: !include common/common.yaml common: !include common/common.yaml

View File

@@ -52,4 +52,4 @@ switch:
# - port: 8080 # - port: 8080
# mode: stream # mode: stream
# - port: 8081 # - port: 8081
# mode: snapshot # mode: snapshot

View File

@@ -25,7 +25,7 @@ external_components:
packages: packages:
common: !include common/common.yaml common: !include common/common.yaml
canbus: canbus:
- platform: esp32_can - platform: esp32_can
id: can_bus id: can_bus

View File

@@ -25,7 +25,7 @@ external_components:
packages: packages:
common: !include common/common.yaml common: !include common/common.yaml
canbus: canbus:
- platform: esp32_can - platform: esp32_can
id: can_bus id: can_bus

View File

@@ -126,7 +126,7 @@ display:
if ((i % 2) == 0) if ((i % 2) == 0)
it.print("8 8 "); it.print("8 8 ");
else else
it.print(" 8 8"); it.print(" 8 8");
} else { } else {
if (((i / 10) % 2) == 0) { if (((i / 10) % 2) == 0) {
//it.set_intensity(7); //it.set_intensity(7);

View File

@@ -76,7 +76,7 @@ display:
if ((i % 2) == 0) if ((i % 2) == 0)
it.print("8 8 "); it.print("8 8 ");
else else
it.print(" 8 8"); it.print(" 8 8");
} else { } else {
if (((i / 10) % 2) == 0) { if (((i / 10) % 2) == 0) {
//it.set_intensity(7); //it.set_intensity(7);

View File

@@ -107,7 +107,7 @@ sensor:
// positive rotation // positive rotation
if (id(rotary).state > 0) { if (id(rotary).state > 0) {
// //
if (id(rotary_button).state) { if (id(rotary_button).state) {
temp -= 5.0f; temp -= 5.0f;
} else { } else {

View File

@@ -35,7 +35,7 @@ esp32:
framework: framework:
type: esp-idf type: esp-idf
packages: packages:
common: !include common/common.yaml common: !include common/common.yaml

View File

@@ -20,11 +20,11 @@ esp32:
# type: esp-idf # type: esp-idf
# version: 5.1.2 # version: 5.1.2
# platform_version: 6.5.0 # platform_version: 6.5.0
external_components: external_components:
- source: components - source: components
# - source: # - source:
# type: git # type: git
# url: https://github.com/nielsnl68/esphome # url: https://github.com/nielsnl68/esphome
# ref: nvds-RTTTL_I2S # ref: nvds-RTTTL_I2S
@@ -94,14 +94,14 @@ light:
# condition: # condition:
# lambda: return state > 0; # lambda: return state > 0;
# then: # then:
# - light.turn_on: # - light.turn_on:
# id: neo_buildin # id: neo_buildin
# red: 1.0 # red: 1.0
# green: 0.0 # green: 0.0
# blue: 0.0 # blue: 0.0
# brightness: 100% # brightness: 100%
# else: # else:
# - light.turn_off: # - light.turn_off:
# id: neo_buildin # id: neo_buildin
# # green: 0.0 # # green: 0.0
# # red: 0.0 # # red: 0.0
@@ -134,7 +134,7 @@ speaker:
rtttl: rtttl:
id: my_rtttl id: my_rtttl
speaker: echo_speaker speaker: echo_speaker
microphone: microphone:
- platform: i2s_audio - platform: i2s_audio
id: echo_microphone id: echo_microphone
@@ -148,4 +148,4 @@ voice_assistant:
- media_player.play_media: - media_player.play_media:
id: media_out id: media_out
media_url: !lambda |- media_url: !lambda |-
return x; return x;

View File

@@ -227,12 +227,12 @@ button:
# http_request: # http_request:
# useragent: esphome/${device} # useragent: esphome/${device}
# timeout: 5s # timeout: 5s
# # Example configuration entry # # Example configuration entry
# interval: # interval:
# - interval: 1min # - interval: 1min
# then: # then:
# # - script.execute: say_hello_server # # - script.execute: say_hello_server
# - http_request.get: # - http_request.get:
# url: https://esphome.io # url: https://esphome.io
# verify_ssl: false # verify_ssl: false

View File

@@ -2,7 +2,7 @@ substitutions:
device: eworkbench device: eworkbench
name: Electronics Workbench name: Electronics Workbench
comment: "Office R | Electronics Workbench" comment: "Office R | Electronics Workbench"
esphome: esphome:
name: mcu-${device} name: mcu-${device}
friendly_name: ${name} friendly_name: ${name}
@@ -32,7 +32,7 @@ packages:
# GPIO7 GPIO # GPIO7 GPIO
# GPIO8 GPIO # GPIO8 GPIO
# GPIO10 GPIO # GPIO10 GPIO
# GPIO18 UART RX # GPIO18 UART RX
# GPIO19 UART TX # GPIO19 UART TX
i2c: i2c:
@@ -257,7 +257,7 @@ time:
# if ((i % 2) == 0) # if ((i % 2) == 0)
# it.print("8 8 "); # it.print("8 8 ");
# else # else
# it.print(" 8 8"); # it.print(" 8 8");
# } else { # } else {
# if (((i / 10) % 2) == 0) { # if (((i / 10) % 2) == 0) {
# //it.set_intensity(7); # //it.set_intensity(7);

View File

@@ -14,7 +14,7 @@ esp32:
variant: esp32 variant: esp32
framework: framework:
type: esp-idf type: esp-idf
packages: packages:
common: !include common/common.yaml common: !include common/common.yaml
@@ -116,7 +116,7 @@ binary_sensor:
- binary_sensor.is_off: ibeacon_yaris - binary_sensor.is_off: ibeacon_yaris
- binary_sensor.is_off: ibeacon_pcx125 - binary_sensor.is_off: ibeacon_pcx125
- binary_sensor.is_off: ibeacon_dl650 - binary_sensor.is_off: ibeacon_dl650
then: then:
- button.press: gate_open - button.press: gate_open
on_release: on_release:
- if: - if:
@@ -127,7 +127,7 @@ binary_sensor:
- binary_sensor.is_off: ibeacon_yaris - binary_sensor.is_off: ibeacon_yaris
- binary_sensor.is_off: ibeacon_pcx125 - binary_sensor.is_off: ibeacon_pcx125
- binary_sensor.is_off: ibeacon_dl650 - binary_sensor.is_off: ibeacon_dl650
then: then:
- button.press: gate_close - button.press: gate_close
- platform: ble_presence - platform: ble_presence
id: ibeacon_yaris id: ibeacon_yaris
@@ -143,7 +143,7 @@ binary_sensor:
- binary_sensor.is_off: ibeacon_auris - binary_sensor.is_off: ibeacon_auris
- binary_sensor.is_off: ibeacon_pcx125 - binary_sensor.is_off: ibeacon_pcx125
- binary_sensor.is_off: ibeacon_dl650 - binary_sensor.is_off: ibeacon_dl650
then: then:
- button.press: gate_open - button.press: gate_open
on_release: on_release:
- if: - if:
@@ -154,7 +154,7 @@ binary_sensor:
- binary_sensor.is_off: ibeacon_auris - binary_sensor.is_off: ibeacon_auris
- binary_sensor.is_off: ibeacon_pcx125 - binary_sensor.is_off: ibeacon_pcx125
- binary_sensor.is_off: ibeacon_dl650 - binary_sensor.is_off: ibeacon_dl650
then: then:
- button.press: gate_close - button.press: gate_close
- platform: ble_presence - platform: ble_presence
id: ibeacon_pcx125 id: ibeacon_pcx125
@@ -170,7 +170,7 @@ binary_sensor:
- binary_sensor.is_off: ibeacon_auris - binary_sensor.is_off: ibeacon_auris
- binary_sensor.is_off: ibeacon_yaris - binary_sensor.is_off: ibeacon_yaris
- binary_sensor.is_off: ibeacon_dl650 - binary_sensor.is_off: ibeacon_dl650
then: then:
- button.press: gate_open - button.press: gate_open
on_release: on_release:
- if: - if:
@@ -181,7 +181,7 @@ binary_sensor:
- binary_sensor.is_off: ibeacon_auris - binary_sensor.is_off: ibeacon_auris
- binary_sensor.is_off: ibeacon_yaris - binary_sensor.is_off: ibeacon_yaris
- binary_sensor.is_off: ibeacon_dl650 - binary_sensor.is_off: ibeacon_dl650
then: then:
- button.press: gate_close - button.press: gate_close
- platform: ble_presence - platform: ble_presence
id: ibeacon_dl650 id: ibeacon_dl650
@@ -197,7 +197,7 @@ binary_sensor:
- binary_sensor.is_off: ibeacon_auris - binary_sensor.is_off: ibeacon_auris
- binary_sensor.is_off: ibeacon_yaris - binary_sensor.is_off: ibeacon_yaris
- binary_sensor.is_off: ibeacon_pcx125 - binary_sensor.is_off: ibeacon_pcx125
then: then:
- button.press: gate_open - button.press: gate_open
on_release: on_release:
- if: - if:
@@ -208,7 +208,7 @@ binary_sensor:
- binary_sensor.is_off: ibeacon_auris - binary_sensor.is_off: ibeacon_auris
- binary_sensor.is_off: ibeacon_yaris - binary_sensor.is_off: ibeacon_yaris
- binary_sensor.is_off: ibeacon_pcx125 - binary_sensor.is_off: ibeacon_pcx125
then: then:
- button.press: gate_close - button.press: gate_close
# - platform: gpio # - platform: gpio
# id: gate_flash # id: gate_flash

View File

@@ -241,7 +241,7 @@ switch:
number: 5 number: 5
# - platform: uart # - platform: uart
# name: Total Heater Power Reset # name: Total Heater Power Reset
# uart_id: # uart_id:
# id: reset_total_heater_power # id: reset_total_heater_power
# data: [0x01, 0x42, 0x80, 0x11] # data: [0x01, 0x42, 0x80, 0x11]
@@ -256,7 +256,7 @@ sensor:
# [22:06:25][D][dallas.sensor:082]: 0xB2041750CF1AFF28 Heating Water (OUT from Heater, TO System) # [22:06:25][D][dallas.sensor:082]: 0xB2041750CF1AFF28 Heating Water (OUT from Heater, TO System)
# [22:06:25][D][dallas.sensor:082]: 0x960417517301FF28 Hot Water Tank - TOP (Heater) # [22:06:25][D][dallas.sensor:082]: 0x960417517301FF28 Hot Water Tank - TOP (Heater)
# address: 0x320417500A93FF28 # 1. broken # address: 0x320417500A93FF28 # 1. broken
# address: 0x67041750F44CFF28 # 2. broken # address: 0x67041750F44CFF28 # 2. broken
address: 0x960417517301FF28 # Hot Water Tank - TOP (Heater) address: 0x960417517301FF28 # Hot Water Tank - TOP (Heater)
name: Heater name: Heater
id: hot_water_heater id: hot_water_heater
@@ -297,7 +297,7 @@ sensor:
lambda: |- lambda: |-
//# platba za odberne miesto 0,75 1,1 //# platba za odberne miesto 0,75 1,1
//# pevna mesacna zlozka tarify 0,15080000 0,1508 * 75 A //# pevna mesacna zlozka tarify 0,15080000 0,1508 * 75 A
//## platba za systemove sluzby 0,00629760 //## platba za systemove sluzby 0,00629760
//# platba za prevadzku systemu 0,01590000 //# platba za prevadzku systemu 0,01590000
//# variabilna zlozka tarify za distribuciu 0,00398400 //# variabilna zlozka tarify za distribuciu 0,00398400
@@ -346,7 +346,7 @@ sensor:
- lambda: return x * (0.001) + 2282; - lambda: return x * (0.001) + 2282;
unit_of_measurement: kWh unit_of_measurement: kWh
icon: mdi:counter icon: mdi:counter
# L2 # L2
- platform: pzemac - platform: pzemac
address: 162 address: 162
current: current:
@@ -507,4 +507,4 @@ binary_sensor:
- switch.turn_on: heating_demand - switch.turn_on: heating_demand
on_release: on_release:
then: then:
- switch.turn_off: heating_demand - switch.turn_off: heating_demand

View File

@@ -10,7 +10,7 @@ esphome:
friendly_name: ${name} friendly_name: ${name}
area: ${area} area: ${area}
comment: ${comment} comment: ${comment}
esp32: esp32:
variant: esp32 variant: esp32
framework: framework:

View File

@@ -29,13 +29,13 @@ i2c:
psram: psram:
mode: octal mode: octal
speed: 40MHz speed: 40MHz
spi: spi:
id: display_qspi id: display_qspi
type: quad type: quad
clk_pin: 47 clk_pin: 47
data_pins: [21, 48, 40, 39] data_pins: [21, 48, 40, 39]
color: color:
- id: my_red - id: my_red
red: 100% red: 100%

View File

@@ -28,13 +28,13 @@ i2c:
psram: psram:
mode: octal mode: octal
speed: 80MHz speed: 80MHz
spi: spi:
id: display_qspi id: display_qspi
type: quad type: quad
clk_pin: 47 clk_pin: 47
data_pins: [21, 48, 40, 39] data_pins: [21, 48, 40, 39]
color: color:
- id: my_red - id: my_red
red: 100% red: 100%
@@ -140,7 +140,7 @@ touchscreen:
display: main_display display: main_display
i2c_id: touchscreen_bus i2c_id: touchscreen_bus
update_interval: 100ms update_interval: 100ms
# interrupt_pin: # interrupt_pin:
# number: 3 # number: 3
# ignore_strapping_warning: true # ignore_strapping_warning: true
calibration: calibration:
@@ -286,4 +286,4 @@ lvgl:
- homeassistant.action: - homeassistant.action:
action: light.toggle action: light.toggle
data: data:
entity_id: light.mcu_dimmer_exercise_room_fan entity_id: light.mcu_dimmer_exercise_room_fan

View File

@@ -27,12 +27,12 @@ esp32:
psram: psram:
mode: octal mode: octal
speed: 80MHz speed: 80MHz
packages: packages:
common: !include common/common.yaml common: !include common/common.yaml
# PINOUTS: ESP32 Cheap Yellow Display, 4.3", IPS, Capacitive # PINOUTS: ESP32 Cheap Yellow Display, 4.3", IPS, Capacitive
## Display ## Display
# R0 GND # R0 GND
# R1 GND # R1 GND
@@ -256,7 +256,7 @@ script:
# src: solar_power_icon # src: solar_power_icon
# img_recolor: 0xFFF000 #mixes this color with the base image # img_recolor: 0xFFF000 #mixes this color with the base image
# #img_recolor_opa: 100% #opacity defaults to 0% = must set this for recolor to take effect # #img_recolor_opa: 100% #opacity defaults to 0% = must set this for recolor to take effect
# #bg_color: 0xFFFFFF # #bg_color: 0xFFFFFF
# # - lvgl.indicator.line.update: # # - lvgl.indicator.line.update:
# # id: power_meter_input2 # # id: power_meter_input2
# # value: !lambda return id(counting_number).state; # # value: !lambda return id(counting_number).state;
@@ -288,7 +288,7 @@ script:
# src: solar_power_icon # src: solar_power_icon
# img_recolor: 0xFFF000 #mixes this color with the base image # img_recolor: 0xFFF000 #mixes this color with the base image
# #img_recolor_opa: 100% #opacity defaults to 0% = must set this for recolor to take effect # #img_recolor_opa: 100% #opacity defaults to 0% = must set this for recolor to take effect
# #bg_color: 0xFFFFFF # #bg_color: 0xFFFFFF
image: image:
- file: mdi:sun-wireless-outline - file: mdi:sun-wireless-outline
@@ -329,7 +329,7 @@ lvgl:
bg_opa: TRANSP bg_opa: TRANSP
bg_color: 0 bg_color: 0
radius: 4 radius: 4
pad_all: 2 pad_all: 2
- id: details_style - id: details_style
text_font: MONTSERRAT_18 text_font: MONTSERRAT_18
align: center align: center
@@ -338,7 +338,7 @@ lvgl:
bg_opa: TRANSP bg_opa: TRANSP
bg_color: 0 bg_color: 0
radius: 4 radius: 4
pad_all: 2 pad_all: 2
widgets: widgets:
- obj: # Meter - obj: # Meter
height: 240 height: 240
@@ -663,4 +663,4 @@ lvgl:
image_recolor_opa: 100% #opacity defaults to 0% = must set this for recolor to take effect image_recolor_opa: 100% #opacity defaults to 0% = must set this for recolor to take effect
#bg_color: 0xFFFFFF #bg_color: 0xFFFFFF
y: 50 y: 50
#x: -60 #x: -60

View File

@@ -27,7 +27,7 @@ time:
- platform: homeassistant - platform: homeassistant
id: ha_time id: ha_time
timezone: Europe/Bratislava timezone: Europe/Bratislava
on_time_sync: on_time_sync:
- bm8563.write_time - bm8563.write_time
- platform: bm8563 - platform: bm8563
id: rtc_time id: rtc_time
@@ -75,9 +75,9 @@ binary_sensor:
pin: pin:
number: 37 number: 37
inverted: true inverted: true
on_press: on_press:
- component.update: m5paper_display - component.update: m5paper_display
on_release: on_release:
- component.update: m5paper_display - component.update: m5paper_display
- platform: gpio - platform: gpio
name: ${name} Button Press name: ${name} Button Press
@@ -100,7 +100,7 @@ binary_sensor:
x_max: 100 x_max: 100
y_min: 0 y_min: 0
y_max: 100 y_max: 100
on_press: on_press:
# Example of applying the sleep duration and shutting down to the lowest power mode # Example of applying the sleep duration and shutting down to the lowest power mode
- bm8563.apply_sleep_duration - bm8563.apply_sleep_duration
- delay: 1s - delay: 1s

View File

@@ -21,7 +21,7 @@ esp32:
variant: esp32 variant: esp32
framework: framework:
type: esp-idf type: esp-idf
packages: packages:
common: !include common/common.yaml common: !include common/common.yaml
@@ -99,7 +99,7 @@ sensor:
# - lambda: return x * (0.001) + 2282; # - lambda: return x * (0.001) + 2282;
# unit_of_measurement: kWh # unit_of_measurement: kWh
# icon: mdi:counter # icon: mdi:counter
# L2 # L2
- platform: pzemac - platform: pzemac
address: 11 address: 11
id: pzemac_l2 id: pzemac_l2
@@ -224,7 +224,7 @@ button:
- pzemac.reset_energy: pzemac_l1 - pzemac.reset_energy: pzemac_l1
- pzemac.reset_energy: pzemac_l2 - pzemac.reset_energy: pzemac_l2
- pzemac.reset_energy: pzemac_l3 - pzemac.reset_energy: pzemac_l3
time: time:
- platform: homeassistant - platform: homeassistant
id: ha_time id: ha_time
@@ -234,4 +234,4 @@ time:
then: then:
- pzemac.reset_energy: pzemac_l1 - pzemac.reset_energy: pzemac_l1
- pzemac.reset_energy: pzemac_l2 - pzemac.reset_energy: pzemac_l2
- pzemac.reset_energy: pzemac_l3 - pzemac.reset_energy: pzemac_l3

10
mcu-nrf-dk.yaml Normal file
View File

@@ -0,0 +1,10 @@
esphome:
name: mcu-nrf-dk
friendly_name: mcu-nrf-dk
nrf52:
board: nrf52840_dk
bootloader: adafruit_nrf52_sd140_v7
# Enable logging
logger:

View File

@@ -33,7 +33,7 @@ external_components:
url: https://github.com/sairon/esphome-nspanel-lovelace-ui url: https://github.com/sairon/esphome-nspanel-lovelace-ui
ref: dev ref: dev
components: [nspanel_lovelace] components: [nspanel_lovelace]
packages: packages:
common: !include common/common.yaml common: !include common/common.yaml
@@ -63,7 +63,7 @@ api:
then: then:
- lambda: |- - lambda: |-
id(nspanel_id).upload_tft("${tft_url}"); id(nspanel_id).upload_tft("${tft_url}");
- service: upload_tft - service: upload_tft
variables: variables:
url: string url: string
@@ -267,7 +267,7 @@ sensor:
reference_temperature: 25°C reference_temperature: 25°C
reference_resistance: 10kOhm reference_resistance: 10kOhm
name: Temperature name: Temperature
- platform: template - platform: template
id: room_temperature_id id: room_temperature_id

View File

@@ -51,7 +51,7 @@ external_components:
refresh: 0s refresh: 0s
components: [nspanel_lovelace] components: [nspanel_lovelace]
# - source: components # - source: components
packages: packages:
common: !include common/common.yaml common: !include common/common.yaml
# common: !include common/common_dev.yaml # common: !include common/common_dev.yaml
@@ -90,7 +90,7 @@ api:
# then: # then:
# - lambda: |- # - lambda: |-
# id(nspanel_id).upload_tft("${tft_url}"); # id(nspanel_id).upload_tft("${tft_url}");
# - service: upload_tft # - service: upload_tft
# variables: # variables:
# url: string # url: string
@@ -517,7 +517,7 @@ sensor:
reference_temperature: 25°C reference_temperature: 25°C
reference_resistance: 10kOhm reference_resistance: 10kOhm
name: Living Room Temperature Entry name: Living Room Temperature Entry
- platform: template - platform: template
id: room_temperature_id id: room_temperature_id

View File

@@ -31,7 +31,7 @@ external_components:
url: https://github.com/sairon/esphome-nspanel-lovelace-ui url: https://github.com/sairon/esphome-nspanel-lovelace-ui
ref: dev ref: dev
components: [nspanel_lovelace] components: [nspanel_lovelace]
packages: packages:
common: !include common/common.yaml common: !include common/common.yaml
@@ -61,7 +61,7 @@ api:
then: then:
- lambda: |- - lambda: |-
id(nspanel_id).upload_tft("${tft_url}"); id(nspanel_id).upload_tft("${tft_url}");
- service: upload_tft - service: upload_tft
variables: variables:
url: string url: string
@@ -294,6 +294,6 @@ sensor:
reference_temperature: 25°C reference_temperature: 25°C
reference_resistance: 10kOhm reference_resistance: 10kOhm
name: "Living Room Temperature" name: "Living Room Temperature"
- platform: template - platform: template
id: room_temperature_id id: room_temperature_id

View File

@@ -32,13 +32,13 @@ external_components:
url: https://github.com/sairon/esphome-nspanel-lovelace-ui url: https://github.com/sairon/esphome-nspanel-lovelace-ui
ref: dev ref: dev
components: [nspanel_lovelace] components: [nspanel_lovelace]
packages: packages:
common: !include common/common.yaml common: !include common/common.yaml
api: api:
# https://github.com/granadaxronos/120-SONG_NOKIA_RTTTL_RINGTONE_PLAYER_FOR_ARDUINO_UNO/blob/master/RTTTL_PLAYER/songs.h # https://github.com/granadaxronos/120-SONG_NOKIA_RTTTL_RINGTONE_PLAYER_FOR_ARDUINO_UNO/blob/master/RTTTL_PLAYER/songs.h
# #
# stupnovane:d=4,o=6,b=180:c,e,g # stupnovane:d=4,o=6,b=180:c,e,g
# help:d=4,o=6,b=100:f,8p,f,8p,f,8p,f,8p,f,8p,f,8p,f,8p,f,8p,f,8p,f # help:d=4,o=6,b=100:f,8p,f,8p,f,8p,f,8p,f,8p,f,8p,f,8p,f,8p,f,8p,f
# gate_opening:d=16,o=5,b=160:a, 8p, a # gate_opening:d=16,o=5,b=160:a, 8p, a
@@ -67,7 +67,7 @@ api:
then: then:
- lambda: |- - lambda: |-
id(nspanel_id).upload_tft("${tft_url}"); id(nspanel_id).upload_tft("${tft_url}");
- service: upload_tft - service: upload_tft
variables: variables:
url: string url: string
@@ -299,7 +299,7 @@ sensor:
# text_sensor: # text_sensor:
# - platform: ble_scanner # - platform: ble_scanner
# name: BLE Scanner # name: BLE Scanner
# esp32_ble_beacon: # esp32_ble_beacon:
# type: iBeacon # type: iBeacon
# uuid: '6d68252f-2e6f-b5b9-965f-43c0a3713880' # uuid: '6d68252f-2e6f-b5b9-965f-43c0a3713880'

View File

@@ -33,7 +33,7 @@ external_components:
url: https://github.com/sairon/esphome-nspanel-lovelace-ui url: https://github.com/sairon/esphome-nspanel-lovelace-ui
ref: dev ref: dev
components: [nspanel_lovelace] components: [nspanel_lovelace]
packages: packages:
common: !include common/common.yaml common: !include common/common.yaml
@@ -56,7 +56,7 @@ script:
api: api:
# https://github.com/granadaxronos/120-SONG_NOKIA_RTTTL_RINGTONE_PLAYER_FOR_ARDUINO_UNO/blob/master/RTTTL_PLAYER/songs.h # https://github.com/granadaxronos/120-SONG_NOKIA_RTTTL_RINGTONE_PLAYER_FOR_ARDUINO_UNO/blob/master/RTTTL_PLAYER/songs.h
# #
# stupnovane:d=4,o=6,b=180:c,e,g # stupnovane:d=4,o=6,b=180:c,e,g
# help:d=4,o=6,b=100:f,8p,f,8p,f,8p,f,8p,f,8p,f,8p,f,8p,f,8p,f,8p,f # help:d=4,o=6,b=100:f,8p,f,8p,f,8p,f,8p,f,8p,f,8p,f,8p,f,8p,f,8p,f
# gate_opening:d=16,o=5,b=160:a, 8p, a # gate_opening:d=16,o=5,b=160:a, 8p, a
@@ -86,7 +86,7 @@ api:
- logger.log: "tft updating from: ${tft_url}" - logger.log: "tft updating from: ${tft_url}"
- lambda: |- - lambda: |-
id(nspanel_id).upload_tft("${tft_url}"); id(nspanel_id).upload_tft("${tft_url}");
- service: upload_tft - service: upload_tft
variables: variables:
url: string url: string
@@ -356,7 +356,7 @@ sensor:
# text_sensor: # text_sensor:
# - platform: ble_scanner # - platform: ble_scanner
# name: BLE Scanner # name: BLE Scanner
# esp32_ble_beacon: # esp32_ble_beacon:
# type: iBeacon # type: iBeacon
# uuid: '6d68252f-2e6f-b5b9-965f-43c0a3713880' # uuid: '6d68252f-2e6f-b5b9-965f-43c0a3713880'

View File

@@ -32,7 +32,7 @@ external_components:
ref: dev ref: dev
components: [nspanel_lovelace] components: [nspanel_lovelace]
- source: components - source: components
packages: packages:
common: !include common/common.yaml common: !include common/common.yaml
@@ -62,7 +62,7 @@ api:
then: then:
- lambda: |- - lambda: |-
id(nspanel_id).upload_tft("${tft_url}"); id(nspanel_id).upload_tft("${tft_url}");
- service: upload_tft - service: upload_tft
variables: variables:
url: string url: string
@@ -235,7 +235,7 @@ switch:
entity_category: config entity_category: config
pin: pin:
number: 19 number: 19
- platform: gpio - platform: gpio
name: Screen Power name: Screen Power
id: screen_power id: screen_power
@@ -270,6 +270,6 @@ sensor:
reference_temperature: 25°C reference_temperature: 25°C
reference_resistance: 10kOhm reference_resistance: 10kOhm
name: Living Room Temperature name: Living Room Temperature
- platform: template - platform: template
id: room_temperature_id id: room_temperature_id

View File

@@ -3,7 +3,7 @@ substitutions:
name: Office R name: Office R
area: Office R area: Office R
comment: "${area} | MS Teams presence" comment: "${area} | MS Teams presence"
esphome: esphome:
name: mcu-${device} name: mcu-${device}
friendly_name: ${name} friendly_name: ${name}
@@ -54,4 +54,4 @@ output:
pin: 5 pin: 5
- platform: ledc - platform: ledc
id: led_blue id: led_blue
pin: 6 pin: 6

View File

@@ -3,7 +3,7 @@ substitutions:
name: Patio name: Patio
area: Outside area: Outside
comment: "${area}, Patio | On the back yard" comment: "${area}, Patio | On the back yard"
esphome: esphome:
name: mcu-${device} name: mcu-${device}
friendly_name: ${name} friendly_name: ${name}

View File

@@ -73,4 +73,4 @@ status_led:
# rc_switch_raw: # rc_switch_raw:
# code: '100000000001010000000010' # code: '100000000001010000000010'
# protocol: 1 # protocol: 1
# repeat: 3 # repeat: 3

View File

@@ -108,4 +108,4 @@ switch:
mode: OUTPUT mode: OUTPUT
time: time:
- !include common/time/homeassistant.yaml - !include common/time/homeassistant.yaml

View File

@@ -72,7 +72,7 @@ light:
name: Blue LED name: Blue LED
id: light_blue id: light_blue
output: led_blue output: led_blue
sensor: sensor:
- platform: hlw8012 - platform: hlw8012
sel_pin: sel_pin:

View File

@@ -74,7 +74,7 @@ output:
pin: GPIO02 pin: GPIO02
id: led_blue id: led_blue
inverted: True inverted: True
sensor: sensor:
- platform: hlw8012 - platform: hlw8012
sel_pin: sel_pin:

View File

@@ -59,7 +59,7 @@ binary_sensor:
- delay: 10s - delay: 10s
- switch.turn_off: relay - switch.turn_off: relay
- light.turn_off: light_blue - light.turn_off: light_blue
output: output:
- platform: gpio - platform: gpio
pin: GPIO00 pin: GPIO00
@@ -79,7 +79,7 @@ light:
name: Blue LED name: Blue LED
id: light_blue id: light_blue
output: led_blue output: led_blue
sensor: sensor:
- platform: hlw8012 - platform: hlw8012
sel_pin: sel_pin:

View File

@@ -32,7 +32,7 @@ packages:
logger: logger:
logs: logs:
component: ERROR component: ERROR
# GPIO1 UART TX # GPIO1 UART TX
# GPIO3 UART RX # GPIO3 UART RX

View File

@@ -9,7 +9,7 @@ esphome:
comment: ${comment} comment: ${comment}
on_boot: on_boot:
# priority: -10 # priority: -10
priority: 600 priority: 600
then: then:
- logger.log: turning modem off - logger.log: turning modem off
- binary_sensor.template.publish: - binary_sensor.template.publish:
@@ -33,7 +33,7 @@ esphome:
state: ON state: ON
# - switch.turn_on: cmd_gnss_enable # - switch.turn_on: cmd_gnss_enable
# on_boot: # on_boot:
# priority: 600 # priority: 600
# then: # then:
# # https://www.manualslib.com/manual/1498555/Simcom-Sim7000g.html?page=25#manual # # https://www.manualslib.com/manual/1498555/Simcom-Sim7000g.html?page=25#manual
# - logger.log: turning modem off # - logger.log: turning modem off
@@ -42,7 +42,7 @@ esphome:
# state: OFF # state: OFF
# # The doc says that pulling 'modem_power' to ground works, # # The doc says that pulling 'modem_power' to ground works,
# # But I had to put if off for 2.6s, then on ? # # But I had to put if off for 2.6s, then on ?
# - switch.turn_off: modem_powerkey # - switch.turn_off: modem_powerkey
# - delay: 2.6s # - delay: 2.6s
# - switch.turn_on: modem_powerkey # - switch.turn_on: modem_powerkey
# - logger.log: waiting off status # - logger.log: waiting off status
@@ -100,7 +100,7 @@ external_components:
- source: github://pr#9802 - source: github://pr#9802
components: [ modem ] components: [ modem ]
- source: components - source: components
# packages: # packages:
# common: !include common/common.yaml # common: !include common/common.yaml
@@ -168,7 +168,7 @@ sensor:
name: Longitude name: Longitude
altitude: altitude:
name: Altitude name: Altitude
switch: switch:
- platform: gpio - platform: gpio
id: modem_powerkey id: modem_powerkey
@@ -273,31 +273,31 @@ text_sensor:
# parts.push_back(data.substr(0, pos)); # parts.push_back(data.substr(0, pos));
# data.erase(0, pos + delimiter.length()); # data.erase(0, pos + delimiter.length());
# } # }
# parts.push_back(data); # parts.push_back(data);
# if (parts.size() < 14) { # if (parts.size() < 14) {
# return { "Invalid GNSS data: " + gnss_info }; # return { "Invalid GNSS data: " + gnss_info };
# } # }
# std::string latitude = parts[4]; # std::string latitude = parts[4];
# std::string lat_direction = parts[5]; # std::string lat_direction = parts[5];
# std::string longitude = parts[6]; # std::string longitude = parts[6];
# std::string lon_direction = parts[7]; # std::string lon_direction = parts[7];
# if (latitude.empty() || lat_direction.empty() || longitude.empty() || lon_direction.empty()) { # if (latitude.empty() || lat_direction.empty() || longitude.empty() || lon_direction.empty()) {
# return { "Invalid GNSS data: " + gnss_info }; # return { "Invalid GNSS data: " + gnss_info };
# } # }
# double lat_deg = std::stod(latitude.substr(0, 2)); # double lat_deg = std::stod(latitude.substr(0, 2));
# double lat_min = std::stod(latitude.substr(2)); # double lat_min = std::stod(latitude.substr(2));
# double lat = lat_deg + (lat_min / 60.0); # double lat = lat_deg + (lat_min / 60.0);
# if (lat_direction == "S") lat = -lat; # if (lat_direction == "S") lat = -lat;
# double lon_deg = std::stod(longitude.substr(0, 3)); # double lon_deg = std::stod(longitude.substr(0, 3));
# double lon_min = std::stod(longitude.substr(3)); # double lon_min = std::stod(longitude.substr(3));
# double lon = lon_deg + (lon_min / 60.0); # double lon = lon_deg + (lon_min / 60.0);
# if (lon_direction == "W") lon = -lon; # if (lon_direction == "W") lon = -lon;
# std::string google_maps_link = "https://www.google.com/maps/search/?api=1&query=" + std::to_string(lat) + "," + std::to_string(lon); # std::string google_maps_link = "https://www.google.com/maps/search/?api=1&query=" + std::to_string(lat) + "," + std::to_string(lon);
# return { google_maps_link }; # return { google_maps_link };
@@ -317,7 +317,7 @@ text_sensor:
# url: https://github.com/ssieb/custom_components # url: https://github.com/ssieb/custom_components
# components: [ serial ] # components: [ serial ]
# - source: components # - source: components
# packages: # packages:
# common: !include common/common.yaml # common: !include common/common.yaml
@@ -475,4 +475,4 @@ text_sensor:
# name: USSD Code # name: USSD Code
# - platform: serial # - platform: serial
# uart_id: modem_uart # uart_id: modem_uart
# id: modem_read # id: modem_read

View File

@@ -23,7 +23,7 @@ packages:
# B GPIO12 PWM3 # B GPIO12 PWM3
# W1 GPIO14 PWM4 # W1 GPIO14 PWM4
# W2 GPIO04 PWM5 # W2 GPIO04 PWM5
# LED D1 R GPIO05 # LED D1 R GPIO05
# LED D2 G GPIO01 # LED D2 G GPIO01
light: light:
@@ -42,7 +42,7 @@ light:
name: Slow Strobe name: Slow Strobe
- strobe: - strobe:
name: Fast Strobe name: Fast Strobe
colors: colors:
- state: true - state: true
duration: 100ms duration: 100ms
- state: false - state: false
@@ -63,4 +63,4 @@ output:
pin: GPIO14 pin: GPIO14
- platform: esp8266_pwm - platform: esp8266_pwm
id: pwm_warm_white id: pwm_warm_white
pin: GPIO04 pin: GPIO04

View File

@@ -50,7 +50,7 @@ external_components:
packages: packages:
common: !include common/logger.yaml common: !include common/logger.yaml
# common: !include common/common.yaml # common: !include common/common.yaml
# debug: # debug:
# PINOUTS: M5ATOM # PINOUTS: M5ATOM
@@ -132,4 +132,4 @@ light:
call.set_brightness(0.01); call.set_brightness(0.01);
} }
call.perform(); call.perform();
state = !state; state = !state;

View File

@@ -50,7 +50,7 @@ external_components:
packages: packages:
common: !include common/logger.yaml common: !include common/logger.yaml
# common: !include common/common.yaml # common: !include common/common.yaml
# debug: # debug:
# PINOUTS: M5ATOM # PINOUTS: M5ATOM
@@ -132,4 +132,4 @@ light:
call.set_brightness(0.01); call.set_brightness(0.01);
} }
call.perform(); call.perform();
state = !state; state = !state;

View File

@@ -151,4 +151,4 @@ light:
call.set_brightness(0.01); call.set_brightness(0.01);
} }
call.perform(); call.perform();
state = !state; state = !state;

View File

@@ -51,7 +51,7 @@ packages:
common: !include common/logger.yaml common: !include common/logger.yaml
# wifi: !include common/wifi.yaml # wifi: !include common/wifi.yaml
# common: !include common/common.yaml # common: !include common/common.yaml
# debug: # debug:
# PINOUTS: M5ATOM # PINOUTS: M5ATOM

View File

@@ -289,4 +289,4 @@ valve:
- switch.turn_off: irrigation_relay_8 - switch.turn_off: irrigation_relay_8
time: time:
- !include common/time/homeassistant.yaml - !include common/time/homeassistant.yaml