Publish device name only at boot and api connection
This commit is contained in:
@@ -100,6 +100,11 @@ script:
|
||||
# - HW Touch
|
||||
|
||||
- id: boot_sequence
|
||||
mode: restart
|
||||
then:
|
||||
- script.execute: publish_device_info
|
||||
|
||||
- id: publish_device_info
|
||||
mode: restart
|
||||
then:
|
||||
- lambda: |-
|
||||
@@ -155,6 +160,7 @@ text_sensor:
|
||||
entity_category: diagnostic
|
||||
internal: false
|
||||
disabled_by_default: false
|
||||
update_interval: never
|
||||
lambda: |-
|
||||
return {"${name}"};
|
||||
filters:
|
||||
|
||||
@@ -13,6 +13,9 @@
|
||||
---
|
||||
api:
|
||||
id: api_server
|
||||
on_client_connected:
|
||||
then:
|
||||
- script.execute: publish_device_info
|
||||
|
||||
script:
|
||||
- id: !extend button_action
|
||||
|
||||
Reference in New Issue
Block a user