diff --git a/Integrations/ESPHome/Core.yaml b/Integrations/ESPHome/Core.yaml index 11df89f..32e50a1 100644 --- a/Integrations/ESPHome/Core.yaml +++ b/Integrations/ESPHome/Core.yaml @@ -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: @@ -34,7 +36,7 @@ api: id: scd40 #Setting HLK Password - - service: set_ld2410_bluetooth_password + - action: set_ld2410_bluetooth_password variables: password: string then: @@ -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 diff --git a/Integrations/ESPHome/MSR-1.yaml b/Integrations/ESPHome/MSR-1.yaml index 74519d0..70b1b00 100644 --- a/Integrations/ESPHome/MSR-1.yaml +++ b/Integrations/ESPHome/MSR-1.yaml @@ -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: @@ -35,6 +32,7 @@ captive_portal: web_server: port: 80 + version: 3 packages: core: !include Core.yaml \ No newline at end of file diff --git a/Integrations/ESPHome/MSR-1_BLE.yaml b/Integrations/ESPHome/MSR-1_BLE.yaml index eb0a071..a1c347b 100644 --- a/Integrations/ESPHome/MSR-1_BLE.yaml +++ b/Integrations/ESPHome/MSR-1_BLE.yaml @@ -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: diff --git a/Integrations/ESPHome/MSR-1_Factory.yaml b/Integrations/ESPHome/MSR-1_Factory.yaml index 15b9697..d48c1e6 100644 --- a/Integrations/ESPHome/MSR-1_Factory.yaml +++ b/Integrations/ESPHome/MSR-1_Factory.yaml @@ -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: @@ -28,11 +25,6 @@ esp32_improv: authorizer: none wifi: - on_connect: - - delay: 5s - - ble.disable: - on_disconnect: - - ble.enable: ap: ssid: "Apollo MSR1 Hotspot"