This commit is contained in:
2024-10-13 22:59:09 +02:00
parent 63fb7f8f73
commit e426efb80f
107 changed files with 20616 additions and 5533 deletions

View File

@@ -0,0 +1,20 @@
---
esp32_ble_tracker:
id: ble_tracker
scan_parameters:
continuous: false
bluetooth_proxy:
active: true
esphome:
on_boot: #this is to avoid slow startup time because of BT and WiFi "interactions?" , check https://github.com/esphome/issues/issues/2941#issuecomment-1331851692
priority: 250
then:
- wait_until:
condition:
wifi.connected:
- lambda: >
id(ble_tracker).set_scan_continuous(true);
id(ble_tracker).start_scan();

View File

@@ -6,4 +6,6 @@ logger:
sensor: ERROR
cover: ERROR
switch: ERROR
wifi: ERROR
wifi: ERROR
pulse_counter: ERROR
remote_receiver: DEBUG

View File

@@ -1,3 +1,9 @@
# disable logging
logger:
baud_rate: 0
baud_rate: 0
logs:
display: ERROR
sensor: ERROR
cover: ERROR
switch: ERROR
wifi: ERROR

12
esphome/templates/nostatus.yaml Executable file
View File

@@ -0,0 +1,12 @@
output:
- platform: gpio
pin: ${pin_status}
id: status_led
light:
- platform: binary
name: "status_led"
output: status_led
restore_mode: Restore_and_off

View File

@@ -0,0 +1,62 @@
---
button:
- platform: template
name: SMSL Source
id: smsl_source
icon: mdi:audio-input-stereo-minijack
on_press:
- remote_transmitter.transmit_nec:
address: 0x3412
command: 0xF807
command_repeats: 1
# - remote_transmitter.transmit_pronto:
# data: "0000 006D 0022 0000 0159 00AE 0015 0016 0015 0043 0014 0016 0015 0016 0015 0043 0014 0016 0015 0016 0015 0017 0015 0016 0015 0016 0015 0043 0014 0016 0015 0043 0014 0043 0014 0017 0015 0017 0015 0043 0014 0043 0014 0043 0014 0016 0016 0015 0016 0015 0016 0015 0016 0016 0016 0015 0016 0015 0016 0015 0016 0042 0015 0041 0016 0041 0016 0042 0015 0042 0015 0181"
- platform: template
name: SMSL power
id: smsl_power
icon: mdi:power
on_press:
- remote_transmitter.transmit_nec:
address: 0x3412
command: 0xFE01
command_repeats: 1
- platform: template
name: SMSL up
id: smsl_up
icon: mdi:volume-plus
on_press:
- remote_transmitter.transmit_nec:
address: 0x3412
command: 0xFD02
command_repeats: 1
- platform: template
name: SMSL down
id: smsl_down
icon: mdi:volume-minus
on_press:
- remote_transmitter.transmit_nec:
address: 0x3412
command: 0xF906
command_repeats: 1
- platform: template
name: SMSL mute
id: smsl_mute
icon: mdi:volume-mute
on_press:
- remote_transmitter.transmit_nec:
address: 0x3412
command: 0xF609
command_repeats: 1
# smsl amp
# NEC: address=0x3412
# source 0xF807 - wierdness :/
# up 0xFD02
# down 0xF906
# power 0xFE01
# mute 0xF609
# function 0xF708
# ok 0xFB04
# left 0xFC03
# right 0xFA05