Add version sensor
This commit is contained in:
@@ -2,6 +2,8 @@ substitutions:
|
||||
name: tx-ultimate-easy
|
||||
friendly_name: TX Ultimate Easy
|
||||
|
||||
version: 0.0.1
|
||||
|
||||
api:
|
||||
|
||||
binary_sensor:
|
||||
@@ -254,6 +256,17 @@ switch:
|
||||
then:
|
||||
- lambda: bs_vibrating->publish_state(false);
|
||||
|
||||
text_sensor:
|
||||
- id: tx_fw_version
|
||||
name: Firmware version
|
||||
platform: template
|
||||
entity_category: diagnostic
|
||||
icon: mdi:tag-text-outline
|
||||
internal: false
|
||||
update_interval: never
|
||||
lambda: |-
|
||||
return {"${version}"};
|
||||
|
||||
uart:
|
||||
id: if_uart_touch
|
||||
tx_pin: GPIO19
|
||||
|
||||
Reference in New Issue
Block a user