From 91b8615fb10dfe724df95623a6175a7c8ab178d0 Mon Sep 17 00:00:00 2001 From: Everything Smart Home <53482654+EverythingSmartHome@users.noreply.github.com> Date: Tue, 20 Feb 2024 09:54:04 +0000 Subject: [PATCH 1/3] Restore mmWave light functionality --- common/everything-presence-one-sen0395-beta.yaml | 7 +++++++ common/everything-presence-one-sen0395-stable.yaml | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/common/everything-presence-one-sen0395-beta.yaml b/common/everything-presence-one-sen0395-beta.yaml index c98682a..1239bcb 100644 --- a/common/everything-presence-one-sen0395-beta.yaml +++ b/common/everything-presence-one-sen0395-beta.yaml @@ -74,6 +74,13 @@ uart: } } +light: + - platform: binary + name: mmWave LED + output: mmwave_led_output + entity_category: config + disabled_by_default: True + number: - platform: template id: mmwave_zone_1_start diff --git a/common/everything-presence-one-sen0395-stable.yaml b/common/everything-presence-one-sen0395-stable.yaml index 859580b..5871dc3 100644 --- a/common/everything-presence-one-sen0395-stable.yaml +++ b/common/everything-presence-one-sen0395-stable.yaml @@ -11,6 +11,13 @@ uart: sequence: - lambda: UARTDebug::log_string(direction, bytes); +light: + - platform: binary + name: mmWave LED + output: mmwave_led_output + entity_category: config + disabled_by_default: True + binary_sensor: - platform: gpio name: mmWave From 29e360cdd685edced2a8abc1b794dd19d7004340 Mon Sep 17 00:00:00 2001 From: Everything Smart Home <53482654+EverythingSmartHome@users.noreply.github.com> Date: Tue, 20 Feb 2024 09:55:16 +0000 Subject: [PATCH 2/3] Restore mmWave LED functionality --- everything-presence-one-beta-ble.yaml | 2 +- everything-presence-one-beta.yaml | 2 +- everything-presence-one-ble.yaml | 2 +- everything-presence-one.yaml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/everything-presence-one-beta-ble.yaml b/everything-presence-one-beta-ble.yaml index 6253ef4..a78832c 100644 --- a/everything-presence-one-beta-ble.yaml +++ b/everything-presence-one-beta-ble.yaml @@ -2,7 +2,7 @@ substitutions: name: "everything-presence-one" friendly_name: "Everything Presence One" project_name: "Everything Smart Technology.Everything Presence One" - project_version: "1.3.4b" + project_version: "1.3.5b" temperature_offset: "-3" humidity_offset: "5" temperature_update_interval: "60s" diff --git a/everything-presence-one-beta.yaml b/everything-presence-one-beta.yaml index 7fc776f..4e9e262 100644 --- a/everything-presence-one-beta.yaml +++ b/everything-presence-one-beta.yaml @@ -2,7 +2,7 @@ substitutions: name: "everything-presence-one" friendly_name: "Everything Presence One" project_name: "Everything Smart Technology.Everything Presence One" - project_version: "1.3.4b" + project_version: "1.3.5b" temperature_offset: "-3" humidity_offset: "5" temperature_update_interval: "60s" diff --git a/everything-presence-one-ble.yaml b/everything-presence-one-ble.yaml index 8eefb0d..cac7351 100644 --- a/everything-presence-one-ble.yaml +++ b/everything-presence-one-ble.yaml @@ -2,7 +2,7 @@ substitutions: name: "everything-presence-one" friendly_name: "Everything Presence One" project_name: "Everything Smart Technology.Everything Presence One" - project_version: "1.2.0" + project_version: "1.2.1" temperature_offset: "-3" humidity_offset: "5" temperature_update_interval: "60s" diff --git a/everything-presence-one.yaml b/everything-presence-one.yaml index e56457c..6eca2c6 100644 --- a/everything-presence-one.yaml +++ b/everything-presence-one.yaml @@ -2,7 +2,7 @@ substitutions: name: "everything-presence-one" friendly_name: "Everything Presence One" project_name: "Everything Smart Technology.Everything Presence One" - project_version: "1.2.0" + project_version: "1.2.1" temperature_offset: "-3" humidity_offset: "5" temperature_update_interval: "60s" From 0d34691a335ac087397b8b0bc36138c337bfb922 Mon Sep 17 00:00:00 2001 From: Everything Smart Home <53482654+EverythingSmartHome@users.noreply.github.com> Date: Tue, 20 Feb 2024 09:59:44 +0000 Subject: [PATCH 3/3] Add output --- .../everything-presence-one-sen0395-beta.yaml | 19 +++++++++++++++++++ ...verything-presence-one-sen0395-stable.yaml | 19 +++++++++++++++++++ 2 files changed, 38 insertions(+) diff --git a/common/everything-presence-one-sen0395-beta.yaml b/common/everything-presence-one-sen0395-beta.yaml index 1239bcb..9d8e0a3 100644 --- a/common/everything-presence-one-sen0395-beta.yaml +++ b/common/everything-presence-one-sen0395-beta.yaml @@ -80,6 +80,25 @@ light: output: mmwave_led_output entity_category: config disabled_by_default: True + +output: + - platform: template + id: mmwave_led_output + type: binary + write_action: + - switch.turn_off: mmwave_sensor + - delay: 1s + - if: + condition: + lambda: !lambda return state; + then: + - uart.write: "setLedMode 1 0" + else: + - uart.write: "setLedMode 1 1" + - delay: 1s + - uart.write: "saveConfig" + - delay: 3s + - switch.turn_on: mmwave_sensor number: - platform: template diff --git a/common/everything-presence-one-sen0395-stable.yaml b/common/everything-presence-one-sen0395-stable.yaml index 5871dc3..be12a76 100644 --- a/common/everything-presence-one-sen0395-stable.yaml +++ b/common/everything-presence-one-sen0395-stable.yaml @@ -18,6 +18,25 @@ light: entity_category: config disabled_by_default: True +output: + - platform: template + id: mmwave_led_output + type: binary + write_action: + - switch.turn_off: mmwave_sensor + - delay: 1s + - if: + condition: + lambda: !lambda return state; + then: + - uart.write: "setLedMode 1 0" + else: + - uart.write: "setLedMode 1 1" + - delay: 1s + - uart.write: "saveConfig" + - delay: 3s + - switch.turn_on: mmwave_sensor + binary_sensor: - platform: gpio name: mmWave