From 5eb11dc7b54aeabff31f8329e25e6eee8f1d665b Mon Sep 17 00:00:00 2001 From: Victor Chang Date: Sat, 30 Aug 2025 00:56:35 -0700 Subject: [PATCH] Move `globals` above `sensor` according to feedback: https://community.home-assistant.io/t/emporia-vue-utility-connect/378347/247 --- example_yaml/vue-utility-solar.yaml | 14 +++++++------- example_yaml/vue-utility.yaml | 14 +++++++------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/example_yaml/vue-utility-solar.yaml b/example_yaml/vue-utility-solar.yaml index b0160de..62a13fa 100644 --- a/example_yaml/vue-utility-solar.yaml +++ b/example_yaml/vue-utility-solar.yaml @@ -43,6 +43,13 @@ uart: tx_pin: GPIO22 baud_rate: 115200 +# Global value for the fast reporting button +globals: + - id: fast_reporting + type: bool + restore_value: no + initial_value: "false" + sensor: - platform: emporia_vue_utility uart_id: emporia_uart @@ -134,13 +141,6 @@ button: - delay: 5min - lambda: id(fast_reporting) = false; -# Global value for above button -globals: - - id: fast_reporting - type: bool - restore_value: no - initial_value: "false" - # This LED is marked D3 on the pcb and is the power led on the case status_led: pin: diff --git a/example_yaml/vue-utility.yaml b/example_yaml/vue-utility.yaml index 9811824..851bd13 100644 --- a/example_yaml/vue-utility.yaml +++ b/example_yaml/vue-utility.yaml @@ -43,6 +43,13 @@ uart: tx_pin: GPIO22 baud_rate: 115200 +# Global value for the fast reporting button +globals: + - id: fast_reporting + type: bool + restore_value: no + initial_value: "false" + sensor: - platform: emporia_vue_utility uart_id: emporia_uart @@ -84,13 +91,6 @@ button: - delay: 5min - lambda: id(fast_reporting) = false; -# Global value for above button -globals: - - id: fast_reporting - type: bool - restore_value: no - initial_value: "false" - # This LED is marked D3 on the pcb and is the power led on the case status_led: pin: