Skip to content

Commit

Permalink
Merge pull request #259 from fthiery/2024.12.0
Browse files Browse the repository at this point in the history
update base config: fix typo, add ignore_efuse_custom_mac, remove trailing spaces, update version
  • Loading branch information
lubeda authored Dec 5, 2024
2 parents 0bb1c4f + db40eb0 commit 4c5c5e9
Showing 1 changed file with 27 additions and 24 deletions.
51 changes: 27 additions & 24 deletions install/ulanzi-easy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ substitutions:
devicename: ulanzi
friendly_name: EspHoMaTriXv2
board: esp32dev
# Pin definition from https://github.com/aptonline/PixelIt_Ulanzi
battery_pin: GPIO34
ldr_pin: GPIO35
matrix_pin: GPIO32
left_button_pin: GPIO26
mid_button_pin: GPIO27
right_button_pin: GPIO14
scl_pin: GPIO22
sda_pin: GPIO21
# Pin definition from https://github.com/aptonline/PixelIt_Ulanzi
battery_pin: GPIO34
ldr_pin: GPIO35
matrix_pin: GPIO32
left_button_pin: GPIO26
mid_button_pin: GPIO27
right_button_pin: GPIO14
scl_pin: GPIO22
sda_pin: GPIO21

output:
- platform: gpio
Expand Down Expand Up @@ -58,30 +58,33 @@ external_components:
- source:
type: git
url: https://github.com/lubeda/EspHoMaTriXv2
ref: "2024.6.0"
refresh: 600s
components: [ ehmtxv2 ]
ref: "2024.12.0"
refresh: 600s
components: [ ehmtxv2 ]

esphome:
comment: "EHMTXv2 from LuBeDa"
name: $devicename
name: $devicename
project:
name: "Ulanzi.EHMTXv2"
version: "2024.6.0"
version: "2024.12.0"
on_boot:
then:
- ds1307.read_time:

esp32:
board: esp32dev
board: "$board"
framework:
advanced:
ignore_efuse_custom_mac: true

font:
- file: MatrixChunky6.ttf
id: px6_font
size: 6
glyphs: |
glyphs: |-
! "#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz°
binary_sensor:
- platform: status
name: "$devicename Status"
Expand All @@ -91,13 +94,13 @@ binary_sensor:
inverted: true
name: "Left button"
- platform: gpio
pin:
pin:
inverted: true
number: $mid_button_pin
mode: INPUT_PULLUP
name: "Middle button"
- platform: gpio
pin:
pin:
number: $right_button_pin
inverted: true
name: "Right button"
Expand Down Expand Up @@ -155,11 +158,11 @@ sensor:
if (n > id(aab_max)) n = id(aab_max);
if (n < id(aab_min)) n = id(aab_min);
int c = id(rgb8x32)->get_brightness(); // current value
c = c>0?c:1 ;
c = c>0?c:1 ;
int d = (n - c) * 100 / c; // diff in %
if ( abs(d) > 2 ) id(rgb8x32)->set_brightness(n);
}
ota:
- platform: esphome
password: !secret ota_password
Expand Down Expand Up @@ -188,7 +191,7 @@ light:
gamma_correct: 2.0
name: "$devicename Light"
restore_mode: ALWAYS_OFF

time:
- platform: homeassistant
on_time_sync:
Expand All @@ -215,7 +218,7 @@ display:
lambda: |-
id(rgb8x32)->tick();
id(rgb8x32)->draw();
ehmtxv2:
id: rgb8x32
icons2html: true
Expand All @@ -230,7 +233,7 @@ ehmtxv2:
special_font_id: px6_font
special_font_yoffset: 7
# until here
icons:
icons:
- id: error
lameid: 40530
- id: home_assistant
Expand Down

0 comments on commit 4c5c5e9

Please sign in to comment.