Move globals above sensor according to feedback:

https://community.home-assistant.io/t/emporia-vue-utility-connect/378347/247
This commit is contained in:
Victor Chang
2025-08-30 00:56:35 -07:00
parent 575cbef882
commit 5eb11dc7b5
2 changed files with 14 additions and 14 deletions

View File

@@ -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:

View File

@@ -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: