Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 22 additions & 6 deletions Integrations/ESPHome/Core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,31 @@ substitutions:
device_description: ${name} made by Apollo Automation - version ${version}.

esp32:
board: esp32-c3-devkitm-1
variant: esp32c3
flash_size: 4MB
framework:
type: esp-idf
captive_portal:

web_server:
port: 80
version: 3

api:
on_client_connected:
- delay: 1s
- light.turn_off: rgb_light
- lambda: 'id(cycleCounter) = 30;'
services:
- service: play_buzzer
actions:
- action: play_buzzer
variables:
song_str: string
then:
- rtttl.play:
rtttl: !lambda 'return song_str;'

#Co2 Calibration Service
- service: calibrate_co2_value
#Co2 Calibration Action
- action: calibrate_co2_value
variables:
co2_ppm: float
then:
Expand All @@ -34,7 +36,7 @@ api:
id: scd40

#Setting HLK Password
- service: set_ld2410_bluetooth_password
- action: set_ld2410_bluetooth_password
variables:
password: string
then:
Expand Down Expand Up @@ -649,6 +651,20 @@ text_sensor:
- platform: ld2410
version:
name: "Radar Firmware Version"
- platform: wifi_info
ip_address:
name: "IP Address"
id: wifi_ip
- platform: version
name: "ESPHome Version"
hide_timestamp: true
entity_category: "diagnostic"
- platform: template
name: "Apollo Firmware Version"
id: apollo_firmware_version
lambda: |-
return {"${version}"};
entity_category: "diagnostic"

select:
- platform: ld2410
Expand Down
4 changes: 1 addition & 3 deletions Integrations/ESPHome/MSR-1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ esphome:
friendly_name: Apollo Multisensor Mk1 (MSR-1)
comment: Apollo Multisensor Mk1 (MSR-1)
name_add_mac_suffix: true
platformio_options:
board_build.flash_mode: dio

on_boot:
- priority: 900.0
then:
Expand Down Expand Up @@ -35,6 +32,7 @@ captive_portal:

web_server:
port: 80
version: 3

packages:
core: !include Core.yaml
3 changes: 0 additions & 3 deletions Integrations/ESPHome/MSR-1_BLE.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ esphome:
friendly_name: Apollo Multisensor Mk1 (MSR-1)
comment: Apollo Multisensor Mk1 (MSR-1)
name_add_mac_suffix: true
platformio_options:
board_build.flash_mode: dio

on_boot:
- priority: 900.0
then:
Expand Down
8 changes: 0 additions & 8 deletions Integrations/ESPHome/MSR-1_Factory.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ esphome:
friendly_name: Apollo Multisensor Mk1 (MSR-1)
comment: Apollo Multisensor Mk1 (MSR-1)
name_add_mac_suffix: true
platformio_options:
board_build.flash_mode: dio

on_boot:
- priority: 900.0
then:
Expand All @@ -28,11 +25,6 @@ esp32_improv:
authorizer: none

wifi:
on_connect:
- delay: 5s
- ble.disable:
on_disconnect:
- ble.enable:
ap:
ssid: "Apollo MSR1 Hotspot"

Expand Down