diff --git a/common/everything-presence-one-sen0395-beta.yaml b/common/everything-presence-one-sen0395-beta.yaml index c98682a..9d8e0a3 100644 --- a/common/everything-presence-one-sen0395-beta.yaml +++ b/common/everything-presence-one-sen0395-beta.yaml @@ -74,6 +74,32 @@ uart: } } +light: + - platform: binary + name: mmWave LED + 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 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..be12a76 100644 --- a/common/everything-presence-one-sen0395-stable.yaml +++ b/common/everything-presence-one-sen0395-stable.yaml @@ -11,6 +11,32 @@ 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 + +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 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"