From 7c9aae0a7d7c1413d14a6273baf48dafb5d56395 Mon Sep 17 00:00:00 2001 From: Roman Priesol Date: Thu, 19 Feb 2026 11:22:12 +0100 Subject: [PATCH] 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 --- mcu-air-office-r.yaml | 6 +++--- mcu-atoms3.yaml | 8 ++++---- mcu-basement-2.yaml | 2 +- mcu-basement.yaml | 6 +++--- mcu-bedroom-lamp-left.yaml | 2 +- mcu-bedroom-lamp-right.yaml | 2 +- mcu-c6-test-1.yaml | 4 ++-- mcu-c6-test-2.yaml | 4 ++-- mcu-cam-1.yaml | 2 +- mcu-can-node-1.yaml | 2 +- mcu-can-node-2.yaml | 2 +- mcu-clock-1.yaml | 2 +- mcu-clock-living-room.yaml | 2 +- mcu-desk-lamp.yaml | 2 +- mcu-dimmer.yaml | 2 +- mcu-echo-1.yaml | 12 ++++++------ mcu-echo.yaml | 4 ++-- mcu-eworkbench.yaml | 6 +++--- mcu-gate.yaml | 18 +++++++++--------- mcu-heater.yaml | 10 +++++----- mcu-lightening.yaml | 2 +- mcu-lvgl-eworkbench.yaml | 4 ++-- mcu-lvgl-trainer.yaml | 8 ++++---- mcu-lvgl.yaml | 14 +++++++------- mcu-m5paper.yaml | 8 ++++---- mcu-mains-power.yaml | 8 ++++---- mcu-nrf-dk.yaml | 10 ++++++++++ mcu-nspanel-bedroom.yaml | 6 +++--- mcu-nspanel-dev.yaml | 6 +++--- mcu-nspanel-fireplace.yaml | 6 +++--- mcu-nspanel-office-j.yaml | 8 ++++---- mcu-nspanel-office-r.yaml | 8 ++++---- mcu-nspanel-patio.yaml | 8 ++++---- mcu-office-r.yaml | 4 ++-- mcu-patio.yaml | 2 +- mcu-rf433.yaml | 2 +- mcu-shed.yaml | 2 +- mcu-socket-01.yaml | 2 +- mcu-socket-02.yaml | 2 +- mcu-socket-03.yaml | 4 ++-- mcu-tft.yaml | 2 +- mcu-tracker.yaml | 26 +++++++++++++------------- mcu-tv-light.yaml | 6 +++--- mcu-vehicle-honda-pcx125.yaml | 4 ++-- mcu-vehicle-suzuki-dl650.yaml | 4 ++-- mcu-vehicle-toyota-auris-ts.yaml | 2 +- mcu-vehicle-toyota-yaris-cross.yaml | 2 +- mcu-well.yaml | 2 +- 48 files changed, 135 insertions(+), 125 deletions(-) create mode 100644 mcu-nrf-dk.yaml diff --git a/mcu-air-office-r.yaml b/mcu-air-office-r.yaml index 1b807bd..7bc9118 100644 --- a/mcu-air-office-r.yaml +++ b/mcu-air-office-r.yaml @@ -10,7 +10,7 @@ esphome: friendly_name: ${name} area: ${area} comment: ${comment} - + esp32: variant: esp32 framework: @@ -18,7 +18,7 @@ esp32: packages: common: !include common/common.yaml - + i2c: # - id: i2c0 sda: 32 @@ -109,4 +109,4 @@ sensor: uart_id: particle_uart update_interval: 20s pm_2_5: - name: Particulate Matter 2.5µm Concentration \ No newline at end of file + name: Particulate Matter 2.5µm Concentration diff --git a/mcu-atoms3.yaml b/mcu-atoms3.yaml index 23b1a1e..03913fb 100644 --- a/mcu-atoms3.yaml +++ b/mcu-atoms3.yaml @@ -16,7 +16,7 @@ esphome: # id(display_tft).enable(); # id(display_tft).transfer_byte(0x11); # id(display_tft).disable(); - + esp32: variant: esp32s3 flash_size: 8MB @@ -43,7 +43,7 @@ animation: logger: logs: - component: ERROR + component: ERROR web_server: port: 80 @@ -377,7 +377,7 @@ display: id(blinky).next_frame(); // Draw the animation my_animation at position [x=0,y=0] it.image(0, 0, id(blinky), COLOR_ON, COLOR_OFF); - + // // 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.rectangle(0, 0, it.get_width(), it.get_height(), id(my_blue)); @@ -498,4 +498,4 @@ time: # active: true # esp32_improv: -# authorizer: none \ No newline at end of file +# authorizer: none diff --git a/mcu-basement-2.yaml b/mcu-basement-2.yaml index 155d9bd..638f8ef 100644 --- a/mcu-basement-2.yaml +++ b/mcu-basement-2.yaml @@ -16,7 +16,7 @@ esp8266: packages: common: !include common/common_esp8266.yaml - + # Sonoff Dual R2 # GPIO10 Push Button # GPIO00 Pin "button 0" on expansion header diff --git a/mcu-basement.yaml b/mcu-basement.yaml index 9308dd8..3dbc8b4 100644 --- a/mcu-basement.yaml +++ b/mcu-basement.yaml @@ -15,7 +15,7 @@ esp8266: packages: common: !include common/common_esp8266.yaml - + # Sonoff Dual R2 # Pin Function # GPIO10 Push Button @@ -118,7 +118,7 @@ select: id(blower_auto) = false; id(relay_1).turn_off(); } - + status_led: pin: number: 13 @@ -136,7 +136,7 @@ switch: icon: mdi:power-socket-fr pin: 5 id: relay_2 - + time: - platform: homeassistant timezone: Europe/Bratislava diff --git a/mcu-bedroom-lamp-left.yaml b/mcu-bedroom-lamp-left.yaml index d06f625..7f2ec0d 100644 --- a/mcu-bedroom-lamp-left.yaml +++ b/mcu-bedroom-lamp-left.yaml @@ -338,6 +338,6 @@ xiaomi_bslamp2: master1: output_master1 master2: output_master2 front_panel: - i2c: front_panel_i2c + i2c: front_panel_i2c address: 0x2C trigger_pin: GPIO16 diff --git a/mcu-bedroom-lamp-right.yaml b/mcu-bedroom-lamp-right.yaml index 9580c55..6301e6c 100644 --- a/mcu-bedroom-lamp-right.yaml +++ b/mcu-bedroom-lamp-right.yaml @@ -319,6 +319,6 @@ xiaomi_bslamp2: master1: output_master1 master2: output_master2 front_panel: - i2c: front_panel_i2c + i2c: front_panel_i2c address: 0x2C trigger_pin: GPIO16 diff --git a/mcu-c6-test-1.yaml b/mcu-c6-test-1.yaml index a9a072b..62f7fc4 100644 --- a/mcu-c6-test-1.yaml +++ b/mcu-c6-test-1.yaml @@ -46,7 +46,7 @@ esp32: logger: hardware_uart: USB_SERIAL_JTAG logs: - component: ERROR + component: ERROR # web_server: # port: 80 @@ -114,4 +114,4 @@ light: state = !state; packages: - common: !include common/common.yaml \ No newline at end of file + common: !include common/common.yaml diff --git a/mcu-c6-test-2.yaml b/mcu-c6-test-2.yaml index e7bb8d5..fb77971 100644 --- a/mcu-c6-test-2.yaml +++ b/mcu-c6-test-2.yaml @@ -46,7 +46,7 @@ esp32: logger: hardware_uart: USB_SERIAL_JTAG logs: - component: ERROR + component: ERROR # web_server: # port: 80 @@ -114,4 +114,4 @@ light: state = !state; packages: - common: !include common/common.yaml \ No newline at end of file + common: !include common/common.yaml diff --git a/mcu-cam-1.yaml b/mcu-cam-1.yaml index c9581a6..1213d03 100644 --- a/mcu-cam-1.yaml +++ b/mcu-cam-1.yaml @@ -52,4 +52,4 @@ switch: # - port: 8080 # mode: stream # - port: 8081 -# mode: snapshot \ No newline at end of file +# mode: snapshot diff --git a/mcu-can-node-1.yaml b/mcu-can-node-1.yaml index 2cf15ca..a307cd6 100644 --- a/mcu-can-node-1.yaml +++ b/mcu-can-node-1.yaml @@ -25,7 +25,7 @@ external_components: packages: common: !include common/common.yaml - + canbus: - platform: esp32_can id: can_bus diff --git a/mcu-can-node-2.yaml b/mcu-can-node-2.yaml index 4e7cfab..59553fa 100644 --- a/mcu-can-node-2.yaml +++ b/mcu-can-node-2.yaml @@ -25,7 +25,7 @@ external_components: packages: common: !include common/common.yaml - + canbus: - platform: esp32_can id: can_bus diff --git a/mcu-clock-1.yaml b/mcu-clock-1.yaml index 705ff0d..3af65f6 100644 --- a/mcu-clock-1.yaml +++ b/mcu-clock-1.yaml @@ -126,7 +126,7 @@ display: if ((i % 2) == 0) it.print("8 8 "); else - it.print(" 8 8"); + it.print(" 8 8"); } else { if (((i / 10) % 2) == 0) { //it.set_intensity(7); diff --git a/mcu-clock-living-room.yaml b/mcu-clock-living-room.yaml index efcaf22..b8518da 100644 --- a/mcu-clock-living-room.yaml +++ b/mcu-clock-living-room.yaml @@ -76,7 +76,7 @@ display: if ((i % 2) == 0) it.print("8 8 "); else - it.print(" 8 8"); + it.print(" 8 8"); } else { if (((i / 10) % 2) == 0) { //it.set_intensity(7); diff --git a/mcu-desk-lamp.yaml b/mcu-desk-lamp.yaml index 06e8d1e..9f506b9 100644 --- a/mcu-desk-lamp.yaml +++ b/mcu-desk-lamp.yaml @@ -107,7 +107,7 @@ sensor: // positive rotation if (id(rotary).state > 0) { - // + // if (id(rotary_button).state) { temp -= 5.0f; } else { diff --git a/mcu-dimmer.yaml b/mcu-dimmer.yaml index 76a86b7..6d1ca1a 100644 --- a/mcu-dimmer.yaml +++ b/mcu-dimmer.yaml @@ -35,7 +35,7 @@ esp32: framework: type: esp-idf - + packages: common: !include common/common.yaml diff --git a/mcu-echo-1.yaml b/mcu-echo-1.yaml index 459bba1..a16d734 100644 --- a/mcu-echo-1.yaml +++ b/mcu-echo-1.yaml @@ -20,11 +20,11 @@ esp32: # type: esp-idf # version: 5.1.2 # platform_version: 6.5.0 - + external_components: - source: components - # - source: + # - source: # type: git # url: https://github.com/nielsnl68/esphome # ref: nvds-RTTTL_I2S @@ -94,14 +94,14 @@ light: # condition: # lambda: return state > 0; # then: -# - light.turn_on: +# - light.turn_on: # id: neo_buildin # red: 1.0 # green: 0.0 # blue: 0.0 # brightness: 100% # else: -# - light.turn_off: +# - light.turn_off: # id: neo_buildin # # green: 0.0 # # red: 0.0 @@ -134,7 +134,7 @@ speaker: rtttl: id: my_rtttl speaker: echo_speaker - + microphone: - platform: i2s_audio id: echo_microphone @@ -148,4 +148,4 @@ voice_assistant: - media_player.play_media: id: media_out media_url: !lambda |- - return x; \ No newline at end of file + return x; diff --git a/mcu-echo.yaml b/mcu-echo.yaml index 7a7c843..1cf229b 100644 --- a/mcu-echo.yaml +++ b/mcu-echo.yaml @@ -227,12 +227,12 @@ button: # http_request: # useragent: esphome/${device} # timeout: 5s - + # # Example configuration entry # interval: # - interval: 1min # then: # # - script.execute: say_hello_server -# - http_request.get: +# - http_request.get: # url: https://esphome.io # verify_ssl: false diff --git a/mcu-eworkbench.yaml b/mcu-eworkbench.yaml index 7dbe8ff..87cee80 100644 --- a/mcu-eworkbench.yaml +++ b/mcu-eworkbench.yaml @@ -2,7 +2,7 @@ substitutions: device: eworkbench name: Electronics Workbench comment: "Office R | Electronics Workbench" - + esphome: name: mcu-${device} friendly_name: ${name} @@ -32,7 +32,7 @@ packages: # GPIO7 GPIO # GPIO8 GPIO # GPIO10 GPIO -# GPIO18 UART RX +# GPIO18 UART RX # GPIO19 UART TX i2c: @@ -257,7 +257,7 @@ time: # if ((i % 2) == 0) # it.print("8 8 "); # else -# it.print(" 8 8"); +# it.print(" 8 8"); # } else { # if (((i / 10) % 2) == 0) { # //it.set_intensity(7); diff --git a/mcu-gate.yaml b/mcu-gate.yaml index 0149da6..248c61f 100644 --- a/mcu-gate.yaml +++ b/mcu-gate.yaml @@ -14,7 +14,7 @@ esp32: variant: esp32 framework: type: esp-idf - + packages: common: !include common/common.yaml @@ -116,7 +116,7 @@ binary_sensor: - binary_sensor.is_off: ibeacon_yaris - binary_sensor.is_off: ibeacon_pcx125 - binary_sensor.is_off: ibeacon_dl650 - then: + then: - button.press: gate_open on_release: - if: @@ -127,7 +127,7 @@ binary_sensor: - binary_sensor.is_off: ibeacon_yaris - binary_sensor.is_off: ibeacon_pcx125 - binary_sensor.is_off: ibeacon_dl650 - then: + then: - button.press: gate_close - platform: ble_presence id: ibeacon_yaris @@ -143,7 +143,7 @@ binary_sensor: - binary_sensor.is_off: ibeacon_auris - binary_sensor.is_off: ibeacon_pcx125 - binary_sensor.is_off: ibeacon_dl650 - then: + then: - button.press: gate_open on_release: - if: @@ -154,7 +154,7 @@ binary_sensor: - binary_sensor.is_off: ibeacon_auris - binary_sensor.is_off: ibeacon_pcx125 - binary_sensor.is_off: ibeacon_dl650 - then: + then: - button.press: gate_close - platform: ble_presence id: ibeacon_pcx125 @@ -170,7 +170,7 @@ binary_sensor: - binary_sensor.is_off: ibeacon_auris - binary_sensor.is_off: ibeacon_yaris - binary_sensor.is_off: ibeacon_dl650 - then: + then: - button.press: gate_open on_release: - if: @@ -181,7 +181,7 @@ binary_sensor: - binary_sensor.is_off: ibeacon_auris - binary_sensor.is_off: ibeacon_yaris - binary_sensor.is_off: ibeacon_dl650 - then: + then: - button.press: gate_close - platform: ble_presence id: ibeacon_dl650 @@ -197,7 +197,7 @@ binary_sensor: - binary_sensor.is_off: ibeacon_auris - binary_sensor.is_off: ibeacon_yaris - binary_sensor.is_off: ibeacon_pcx125 - then: + then: - button.press: gate_open on_release: - if: @@ -208,7 +208,7 @@ binary_sensor: - binary_sensor.is_off: ibeacon_auris - binary_sensor.is_off: ibeacon_yaris - binary_sensor.is_off: ibeacon_pcx125 - then: + then: - button.press: gate_close # - platform: gpio # id: gate_flash diff --git a/mcu-heater.yaml b/mcu-heater.yaml index e06e707..9e50377 100644 --- a/mcu-heater.yaml +++ b/mcu-heater.yaml @@ -241,7 +241,7 @@ switch: number: 5 # - platform: uart # name: Total Heater Power Reset -# uart_id: +# uart_id: # id: reset_total_heater_power # 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]: 0x960417517301FF28 Hot Water Tank - TOP (Heater) # address: 0x320417500A93FF28 # 1. broken - # address: 0x67041750F44CFF28 # 2. broken + # address: 0x67041750F44CFF28 # 2. broken address: 0x960417517301FF28 # Hot Water Tank - TOP (Heater) name: Heater id: hot_water_heater @@ -297,7 +297,7 @@ sensor: lambda: |- //# platba za odberne miesto 0,75 1,1 //# pevna mesacna zlozka tarify 0,15080000 0,1508 * 75 A - + //## platba za systemove sluzby 0,00629760 //# platba za prevadzku systemu 0,01590000 //# variabilna zlozka tarify za distribuciu 0,00398400 @@ -346,7 +346,7 @@ sensor: - lambda: return x * (0.001) + 2282; unit_of_measurement: kWh icon: mdi:counter - # L2 + # L2 - platform: pzemac address: 162 current: @@ -507,4 +507,4 @@ binary_sensor: - switch.turn_on: heating_demand on_release: then: - - switch.turn_off: heating_demand \ No newline at end of file + - switch.turn_off: heating_demand diff --git a/mcu-lightening.yaml b/mcu-lightening.yaml index f626609..409e20a 100644 --- a/mcu-lightening.yaml +++ b/mcu-lightening.yaml @@ -10,7 +10,7 @@ esphome: friendly_name: ${name} area: ${area} comment: ${comment} - + esp32: variant: esp32 framework: diff --git a/mcu-lvgl-eworkbench.yaml b/mcu-lvgl-eworkbench.yaml index 554bdeb..9fc8fe7 100644 --- a/mcu-lvgl-eworkbench.yaml +++ b/mcu-lvgl-eworkbench.yaml @@ -29,13 +29,13 @@ i2c: psram: mode: octal speed: 40MHz - + spi: id: display_qspi type: quad clk_pin: 47 data_pins: [21, 48, 40, 39] - + color: - id: my_red red: 100% diff --git a/mcu-lvgl-trainer.yaml b/mcu-lvgl-trainer.yaml index 2bd548b..abd00a3 100644 --- a/mcu-lvgl-trainer.yaml +++ b/mcu-lvgl-trainer.yaml @@ -28,13 +28,13 @@ i2c: psram: mode: octal speed: 80MHz - + spi: id: display_qspi type: quad clk_pin: 47 data_pins: [21, 48, 40, 39] - + color: - id: my_red red: 100% @@ -140,7 +140,7 @@ touchscreen: display: main_display i2c_id: touchscreen_bus update_interval: 100ms - # interrupt_pin: + # interrupt_pin: # number: 3 # ignore_strapping_warning: true calibration: @@ -286,4 +286,4 @@ lvgl: - homeassistant.action: action: light.toggle data: - entity_id: light.mcu_dimmer_exercise_room_fan \ No newline at end of file + entity_id: light.mcu_dimmer_exercise_room_fan diff --git a/mcu-lvgl.yaml b/mcu-lvgl.yaml index f0374c2..cf6a76e 100644 --- a/mcu-lvgl.yaml +++ b/mcu-lvgl.yaml @@ -27,12 +27,12 @@ esp32: psram: mode: octal - speed: 80MHz + speed: 80MHz packages: common: !include common/common.yaml -# PINOUTS: ESP32 Cheap Yellow Display, 4.3", IPS, Capacitive +# PINOUTS: ESP32 Cheap Yellow Display, 4.3", IPS, Capacitive ## Display # R0 GND # R1 GND @@ -256,7 +256,7 @@ script: # src: solar_power_icon # 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 - # #bg_color: 0xFFFFFF + # #bg_color: 0xFFFFFF # # - lvgl.indicator.line.update: # # id: power_meter_input2 # # value: !lambda return id(counting_number).state; @@ -288,7 +288,7 @@ script: # src: solar_power_icon # 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 - # #bg_color: 0xFFFFFF + # #bg_color: 0xFFFFFF image: - file: mdi:sun-wireless-outline @@ -329,7 +329,7 @@ lvgl: bg_opa: TRANSP bg_color: 0 radius: 4 - pad_all: 2 + pad_all: 2 - id: details_style text_font: MONTSERRAT_18 align: center @@ -338,7 +338,7 @@ lvgl: bg_opa: TRANSP bg_color: 0 radius: 4 - pad_all: 2 + pad_all: 2 widgets: - obj: # Meter height: 240 @@ -663,4 +663,4 @@ lvgl: image_recolor_opa: 100% #opacity defaults to 0% = must set this for recolor to take effect #bg_color: 0xFFFFFF y: 50 - #x: -60 \ No newline at end of file + #x: -60 diff --git a/mcu-m5paper.yaml b/mcu-m5paper.yaml index 5e59296..aaf8bf1 100644 --- a/mcu-m5paper.yaml +++ b/mcu-m5paper.yaml @@ -27,7 +27,7 @@ time: - platform: homeassistant id: ha_time timezone: Europe/Bratislava - on_time_sync: + on_time_sync: - bm8563.write_time - platform: bm8563 id: rtc_time @@ -75,9 +75,9 @@ binary_sensor: pin: number: 37 inverted: true - on_press: + on_press: - component.update: m5paper_display - on_release: + on_release: - component.update: m5paper_display - platform: gpio name: ${name} Button Press @@ -100,7 +100,7 @@ binary_sensor: x_max: 100 y_min: 0 y_max: 100 - on_press: + on_press: # Example of applying the sleep duration and shutting down to the lowest power mode - bm8563.apply_sleep_duration - delay: 1s diff --git a/mcu-mains-power.yaml b/mcu-mains-power.yaml index 8bfba52..c53ec6d 100644 --- a/mcu-mains-power.yaml +++ b/mcu-mains-power.yaml @@ -21,7 +21,7 @@ esp32: variant: esp32 framework: type: esp-idf - + packages: common: !include common/common.yaml @@ -99,7 +99,7 @@ sensor: # - lambda: return x * (0.001) + 2282; # unit_of_measurement: kWh # icon: mdi:counter - # L2 + # L2 - platform: pzemac address: 11 id: pzemac_l2 @@ -224,7 +224,7 @@ button: - pzemac.reset_energy: pzemac_l1 - pzemac.reset_energy: pzemac_l2 - pzemac.reset_energy: pzemac_l3 - + time: - platform: homeassistant id: ha_time @@ -234,4 +234,4 @@ time: then: - pzemac.reset_energy: pzemac_l1 - pzemac.reset_energy: pzemac_l2 - - pzemac.reset_energy: pzemac_l3 \ No newline at end of file + - pzemac.reset_energy: pzemac_l3 diff --git a/mcu-nrf-dk.yaml b/mcu-nrf-dk.yaml new file mode 100644 index 0000000..be0f5c2 --- /dev/null +++ b/mcu-nrf-dk.yaml @@ -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: diff --git a/mcu-nspanel-bedroom.yaml b/mcu-nspanel-bedroom.yaml index 2704b1b..f89c697 100644 --- a/mcu-nspanel-bedroom.yaml +++ b/mcu-nspanel-bedroom.yaml @@ -33,7 +33,7 @@ external_components: url: https://github.com/sairon/esphome-nspanel-lovelace-ui ref: dev components: [nspanel_lovelace] - + packages: common: !include common/common.yaml @@ -63,7 +63,7 @@ api: then: - lambda: |- id(nspanel_id).upload_tft("${tft_url}"); - + - service: upload_tft variables: url: string @@ -267,7 +267,7 @@ sensor: reference_temperature: 25°C reference_resistance: 10kOhm name: Temperature - + - platform: template id: room_temperature_id diff --git a/mcu-nspanel-dev.yaml b/mcu-nspanel-dev.yaml index 9c6d1a1..2f0dc3d 100644 --- a/mcu-nspanel-dev.yaml +++ b/mcu-nspanel-dev.yaml @@ -51,7 +51,7 @@ external_components: refresh: 0s components: [nspanel_lovelace] # - source: components - + packages: common: !include common/common.yaml # common: !include common/common_dev.yaml @@ -90,7 +90,7 @@ api: # then: # - lambda: |- # id(nspanel_id).upload_tft("${tft_url}"); - + # - service: upload_tft # variables: # url: string @@ -517,7 +517,7 @@ sensor: reference_temperature: 25°C reference_resistance: 10kOhm name: Living Room Temperature Entry - + - platform: template id: room_temperature_id diff --git a/mcu-nspanel-fireplace.yaml b/mcu-nspanel-fireplace.yaml index 9f374dc..0f446ea 100644 --- a/mcu-nspanel-fireplace.yaml +++ b/mcu-nspanel-fireplace.yaml @@ -31,7 +31,7 @@ external_components: url: https://github.com/sairon/esphome-nspanel-lovelace-ui ref: dev components: [nspanel_lovelace] - + packages: common: !include common/common.yaml @@ -61,7 +61,7 @@ api: then: - lambda: |- id(nspanel_id).upload_tft("${tft_url}"); - + - service: upload_tft variables: url: string @@ -294,6 +294,6 @@ sensor: reference_temperature: 25°C reference_resistance: 10kOhm name: "Living Room Temperature" - + - platform: template id: room_temperature_id diff --git a/mcu-nspanel-office-j.yaml b/mcu-nspanel-office-j.yaml index 597f164..2f1c587 100644 --- a/mcu-nspanel-office-j.yaml +++ b/mcu-nspanel-office-j.yaml @@ -32,13 +32,13 @@ external_components: url: https://github.com/sairon/esphome-nspanel-lovelace-ui ref: dev components: [nspanel_lovelace] - + packages: common: !include common/common.yaml api: # 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 # 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 @@ -67,7 +67,7 @@ api: then: - lambda: |- id(nspanel_id).upload_tft("${tft_url}"); - + - service: upload_tft variables: url: string @@ -299,7 +299,7 @@ sensor: # text_sensor: # - platform: ble_scanner # name: BLE Scanner - + # esp32_ble_beacon: # type: iBeacon # uuid: '6d68252f-2e6f-b5b9-965f-43c0a3713880' diff --git a/mcu-nspanel-office-r.yaml b/mcu-nspanel-office-r.yaml index 8ded7b1..113d982 100644 --- a/mcu-nspanel-office-r.yaml +++ b/mcu-nspanel-office-r.yaml @@ -33,7 +33,7 @@ external_components: url: https://github.com/sairon/esphome-nspanel-lovelace-ui ref: dev components: [nspanel_lovelace] - + packages: common: !include common/common.yaml @@ -56,7 +56,7 @@ script: api: # 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 # 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 @@ -86,7 +86,7 @@ api: - logger.log: "tft updating from: ${tft_url}" - lambda: |- id(nspanel_id).upload_tft("${tft_url}"); - + - service: upload_tft variables: url: string @@ -356,7 +356,7 @@ sensor: # text_sensor: # - platform: ble_scanner # name: BLE Scanner - + # esp32_ble_beacon: # type: iBeacon # uuid: '6d68252f-2e6f-b5b9-965f-43c0a3713880' diff --git a/mcu-nspanel-patio.yaml b/mcu-nspanel-patio.yaml index 08e7c56..cb4cf6d 100644 --- a/mcu-nspanel-patio.yaml +++ b/mcu-nspanel-patio.yaml @@ -32,7 +32,7 @@ external_components: ref: dev components: [nspanel_lovelace] - source: components - + packages: common: !include common/common.yaml @@ -62,7 +62,7 @@ api: then: - lambda: |- id(nspanel_id).upload_tft("${tft_url}"); - + - service: upload_tft variables: url: string @@ -235,7 +235,7 @@ switch: entity_category: config pin: number: 19 - + - platform: gpio name: Screen Power id: screen_power @@ -270,6 +270,6 @@ sensor: reference_temperature: 25°C reference_resistance: 10kOhm name: Living Room Temperature - + - platform: template id: room_temperature_id diff --git a/mcu-office-r.yaml b/mcu-office-r.yaml index 458a9bd..86e9d8c 100644 --- a/mcu-office-r.yaml +++ b/mcu-office-r.yaml @@ -3,7 +3,7 @@ substitutions: name: Office R area: Office R comment: "${area} | MS Teams presence" - + esphome: name: mcu-${device} friendly_name: ${name} @@ -54,4 +54,4 @@ output: pin: 5 - platform: ledc id: led_blue - pin: 6 \ No newline at end of file + pin: 6 diff --git a/mcu-patio.yaml b/mcu-patio.yaml index d727f84..abb58d2 100644 --- a/mcu-patio.yaml +++ b/mcu-patio.yaml @@ -3,7 +3,7 @@ substitutions: name: Patio area: Outside comment: "${area}, Patio | On the back yard" - + esphome: name: mcu-${device} friendly_name: ${name} diff --git a/mcu-rf433.yaml b/mcu-rf433.yaml index fa13714..87178e9 100644 --- a/mcu-rf433.yaml +++ b/mcu-rf433.yaml @@ -73,4 +73,4 @@ status_led: # rc_switch_raw: # code: '100000000001010000000010' # protocol: 1 - # repeat: 3 \ No newline at end of file + # repeat: 3 diff --git a/mcu-shed.yaml b/mcu-shed.yaml index ab41219..447de7d 100644 --- a/mcu-shed.yaml +++ b/mcu-shed.yaml @@ -108,4 +108,4 @@ switch: mode: OUTPUT time: - - !include common/time/homeassistant.yaml \ No newline at end of file + - !include common/time/homeassistant.yaml diff --git a/mcu-socket-01.yaml b/mcu-socket-01.yaml index dc58825..81e31f5 100644 --- a/mcu-socket-01.yaml +++ b/mcu-socket-01.yaml @@ -72,7 +72,7 @@ light: name: Blue LED id: light_blue output: led_blue - + sensor: - platform: hlw8012 sel_pin: diff --git a/mcu-socket-02.yaml b/mcu-socket-02.yaml index a997e6d..3d0c244 100644 --- a/mcu-socket-02.yaml +++ b/mcu-socket-02.yaml @@ -74,7 +74,7 @@ output: pin: GPIO02 id: led_blue inverted: True - + sensor: - platform: hlw8012 sel_pin: diff --git a/mcu-socket-03.yaml b/mcu-socket-03.yaml index e7a5e9a..3e7bde8 100644 --- a/mcu-socket-03.yaml +++ b/mcu-socket-03.yaml @@ -59,7 +59,7 @@ binary_sensor: - delay: 10s - switch.turn_off: relay - light.turn_off: light_blue - + output: - platform: gpio pin: GPIO00 @@ -79,7 +79,7 @@ light: name: Blue LED id: light_blue output: led_blue - + sensor: - platform: hlw8012 sel_pin: diff --git a/mcu-tft.yaml b/mcu-tft.yaml index 93cc0d1..dcef378 100644 --- a/mcu-tft.yaml +++ b/mcu-tft.yaml @@ -32,7 +32,7 @@ packages: logger: logs: - component: ERROR + component: ERROR # GPIO1 UART TX # GPIO3 UART RX diff --git a/mcu-tracker.yaml b/mcu-tracker.yaml index 81c87fa..6b7614d 100644 --- a/mcu-tracker.yaml +++ b/mcu-tracker.yaml @@ -9,7 +9,7 @@ esphome: comment: ${comment} on_boot: # priority: -10 - priority: 600 + priority: 600 then: - logger.log: turning modem off - binary_sensor.template.publish: @@ -33,7 +33,7 @@ esphome: state: ON # - switch.turn_on: cmd_gnss_enable # on_boot: - # priority: 600 + # priority: 600 # then: # # https://www.manualslib.com/manual/1498555/Simcom-Sim7000g.html?page=25#manual # - logger.log: turning modem off @@ -42,7 +42,7 @@ esphome: # state: OFF # # The doc says that pulling 'modem_power' to ground works, # # 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 # - switch.turn_on: modem_powerkey # - logger.log: waiting off status @@ -100,7 +100,7 @@ external_components: - source: github://pr#9802 components: [ modem ] - source: components - + # packages: # common: !include common/common.yaml @@ -168,7 +168,7 @@ sensor: name: Longitude altitude: name: Altitude - + switch: - platform: gpio id: modem_powerkey @@ -273,31 +273,31 @@ text_sensor: # parts.push_back(data.substr(0, pos)); # data.erase(0, pos + delimiter.length()); # } - # parts.push_back(data); + # parts.push_back(data); # if (parts.size() < 14) { # return { "Invalid GNSS data: " + gnss_info }; # } - + # std::string latitude = parts[4]; # std::string lat_direction = parts[5]; # std::string longitude = parts[6]; # std::string lon_direction = parts[7]; - + # if (latitude.empty() || lat_direction.empty() || longitude.empty() || lon_direction.empty()) { # return { "Invalid GNSS data: " + gnss_info }; # } - + # double lat_deg = std::stod(latitude.substr(0, 2)); # double lat_min = std::stod(latitude.substr(2)); # double lat = lat_deg + (lat_min / 60.0); # if (lat_direction == "S") lat = -lat; - + # double lon_deg = std::stod(longitude.substr(0, 3)); # double lon_min = std::stod(longitude.substr(3)); # double lon = lon_deg + (lon_min / 60.0); # 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); # return { google_maps_link }; @@ -317,7 +317,7 @@ text_sensor: # url: https://github.com/ssieb/custom_components # components: [ serial ] # - source: components - + # packages: # common: !include common/common.yaml @@ -475,4 +475,4 @@ text_sensor: # name: USSD Code # - platform: serial # uart_id: modem_uart -# id: modem_read \ No newline at end of file +# id: modem_read diff --git a/mcu-tv-light.yaml b/mcu-tv-light.yaml index d6fa059..605adeb 100644 --- a/mcu-tv-light.yaml +++ b/mcu-tv-light.yaml @@ -23,7 +23,7 @@ packages: # B GPIO12 PWM3 # W1 GPIO14 PWM4 # W2 GPIO04 PWM5 -# LED D1 R GPIO05 +# LED D1 R GPIO05 # LED D2 G GPIO01 light: @@ -42,7 +42,7 @@ light: name: Slow Strobe - strobe: name: Fast Strobe - colors: + colors: - state: true duration: 100ms - state: false @@ -63,4 +63,4 @@ output: pin: GPIO14 - platform: esp8266_pwm id: pwm_warm_white - pin: GPIO04 \ No newline at end of file + pin: GPIO04 diff --git a/mcu-vehicle-honda-pcx125.yaml b/mcu-vehicle-honda-pcx125.yaml index 334a9b2..f468d4b 100644 --- a/mcu-vehicle-honda-pcx125.yaml +++ b/mcu-vehicle-honda-pcx125.yaml @@ -50,7 +50,7 @@ external_components: packages: common: !include common/logger.yaml # common: !include common/common.yaml - + # debug: # PINOUTS: M5ATOM @@ -132,4 +132,4 @@ light: call.set_brightness(0.01); } call.perform(); - state = !state; \ No newline at end of file + state = !state; diff --git a/mcu-vehicle-suzuki-dl650.yaml b/mcu-vehicle-suzuki-dl650.yaml index 448822f..0c082da 100644 --- a/mcu-vehicle-suzuki-dl650.yaml +++ b/mcu-vehicle-suzuki-dl650.yaml @@ -50,7 +50,7 @@ external_components: packages: common: !include common/logger.yaml # common: !include common/common.yaml - + # debug: # PINOUTS: M5ATOM @@ -132,4 +132,4 @@ light: call.set_brightness(0.01); } call.perform(); - state = !state; \ No newline at end of file + state = !state; diff --git a/mcu-vehicle-toyota-auris-ts.yaml b/mcu-vehicle-toyota-auris-ts.yaml index cae0d14..4a50b29 100644 --- a/mcu-vehicle-toyota-auris-ts.yaml +++ b/mcu-vehicle-toyota-auris-ts.yaml @@ -151,4 +151,4 @@ light: call.set_brightness(0.01); } call.perform(); - state = !state; \ No newline at end of file + state = !state; diff --git a/mcu-vehicle-toyota-yaris-cross.yaml b/mcu-vehicle-toyota-yaris-cross.yaml index 4c2a315..e3039a2 100644 --- a/mcu-vehicle-toyota-yaris-cross.yaml +++ b/mcu-vehicle-toyota-yaris-cross.yaml @@ -51,7 +51,7 @@ packages: common: !include common/logger.yaml # wifi: !include common/wifi.yaml # common: !include common/common.yaml - + # debug: # PINOUTS: M5ATOM diff --git a/mcu-well.yaml b/mcu-well.yaml index 201313f..f49f609 100644 --- a/mcu-well.yaml +++ b/mcu-well.yaml @@ -289,4 +289,4 @@ valve: - switch.turn_off: irrigation_relay_8 time: - - !include common/time/homeassistant.yaml \ No newline at end of file + - !include common/time/homeassistant.yaml