Stabiler Zwischenstand vor Release 1.0
This commit is contained in:
+85
-21
@@ -1,10 +1,21 @@
|
||||
substitutions:
|
||||
geraet: auto-sender-01 # <- pro Fahrzeug ändern: 01, 02, 03 ...
|
||||
fahrzeug_id: "0x01" # <- pro Fahrzeug ändern: 0x01, 0x02, 0x03 ...
|
||||
device_name: auto-sender-01
|
||||
friendly_name: Auto Sender 01
|
||||
firmware_version: "1.0.0-rc1"
|
||||
|
||||
wifi_1_ssid: "Leonardo da WiFi"
|
||||
wifi_1_password: "44290812080358610465"
|
||||
|
||||
# Weitere WLANs bei Bedarf aktivieren.
|
||||
# wifi_2_ssid: "Werkstatt"
|
||||
# wifi_2_password: "PASSWORT"
|
||||
# wifi_3_ssid: "Hotspot"
|
||||
# wifi_3_password: "PASSWORT"
|
||||
|
||||
esphome:
|
||||
name: ${geraet}
|
||||
friendly_name: Auto Sender 01
|
||||
name: ${device_name}
|
||||
friendly_name: ${friendly_name}
|
||||
comment: "CC1101 433 MHz Fahrzeugsender ${firmware_version}"
|
||||
|
||||
esp32:
|
||||
board: esp32-c3-devkitm-1
|
||||
@@ -12,6 +23,7 @@ esp32:
|
||||
type: esp-idf
|
||||
|
||||
logger:
|
||||
level: INFO
|
||||
|
||||
api:
|
||||
encryption:
|
||||
@@ -22,44 +34,96 @@ ota:
|
||||
password: "4bd4f24d4a26730d06e84d6e0816fb09"
|
||||
|
||||
wifi:
|
||||
ssid: "Leonardo da WiFi"
|
||||
password: "44290812080358610465"
|
||||
# Wichtig: im Auto ist kein WLAN in Reichweite.
|
||||
# Ohne diese Zeile würde der ESP alle 15 Min neu starten.
|
||||
reboot_timeout: 0s
|
||||
power_save_mode: none
|
||||
|
||||
networks:
|
||||
- ssid: ${wifi_1_ssid}
|
||||
password: ${wifi_1_password}
|
||||
|
||||
# - ssid: ${wifi_2_ssid}
|
||||
# password: ${wifi_2_password}
|
||||
|
||||
# - ssid: ${wifi_3_ssid}
|
||||
# password: ${wifi_3_password}
|
||||
|
||||
ap:
|
||||
ssid: "${friendly_name} Fallback"
|
||||
password: "Spring.3"
|
||||
|
||||
captive_portal:
|
||||
|
||||
# --- SPI zum CC1101 ---
|
||||
spi:
|
||||
clk_pin: GPIO6
|
||||
mosi_pin: GPIO7
|
||||
miso_pin: GPIO5
|
||||
|
||||
# --- CC1101 im Paketmodus ---
|
||||
cc1101:
|
||||
cs_pin: GPIO4
|
||||
gdo0_pin: GPIO3
|
||||
|
||||
frequency: 433.92MHz
|
||||
modulation_type: GFSK
|
||||
symbol_rate: 4800
|
||||
output_power: 10 # volle Leistung, Reichweite regelt der Empfänger per RSSI
|
||||
|
||||
output_power: 10
|
||||
|
||||
packet_mode: true
|
||||
packet_length: 4
|
||||
crc_enable: true
|
||||
|
||||
sync0: 0x91
|
||||
sync1: 0xD3
|
||||
|
||||
# --- alle 2 Sekunden die Fahrzeug-Kennung senden ---
|
||||
# Paketaufbau: [Magic, Magic, Fahrzeug-ID, Reserve]
|
||||
output:
|
||||
- platform: gpio
|
||||
id: status_led
|
||||
pin:
|
||||
number: GPIO8
|
||||
inverted: true
|
||||
|
||||
interval:
|
||||
- interval: 2s
|
||||
then:
|
||||
- cc1101.send_packet:
|
||||
data: [0xA7, 0x3C, ${fahrzeug_id}, 0x00]
|
||||
data:
|
||||
- 0xA7
|
||||
- 0x3C
|
||||
- 0x01
|
||||
- 0x00
|
||||
|
||||
# Onboard-LED des Super Mini (invertiert)
|
||||
light:
|
||||
- platform: status_led
|
||||
name: Status
|
||||
pin:
|
||||
number: GPIO8
|
||||
inverted: true
|
||||
- interval: 60s
|
||||
then:
|
||||
- output.turn_on: status_led
|
||||
- delay: 100ms
|
||||
- output.turn_off: status_led
|
||||
|
||||
sensor:
|
||||
- platform: wifi_signal
|
||||
name: "${friendly_name} WLAN Signal"
|
||||
update_interval: 60s
|
||||
|
||||
- platform: uptime
|
||||
name: "${friendly_name} Laufzeit"
|
||||
update_interval: 60s
|
||||
|
||||
text_sensor:
|
||||
- platform: version
|
||||
name: "${friendly_name} ESPHome Version"
|
||||
|
||||
- platform: template
|
||||
name: "${friendly_name} Firmware Version"
|
||||
lambda: |-
|
||||
return {"${firmware_version}"};
|
||||
|
||||
- platform: wifi_info
|
||||
ip_address:
|
||||
name: "${friendly_name} IP"
|
||||
ssid:
|
||||
name: "${friendly_name} WLAN SSID"
|
||||
mac_address:
|
||||
name: "${friendly_name} MAC"
|
||||
|
||||
button:
|
||||
- platform: restart
|
||||
name: "${friendly_name} Neustart"
|
||||
|
||||
Reference in New Issue
Block a user