Add version sensor
This commit is contained in:
@@ -2,6 +2,8 @@ substitutions:
|
|||||||
name: tx-ultimate-easy
|
name: tx-ultimate-easy
|
||||||
friendly_name: TX Ultimate Easy
|
friendly_name: TX Ultimate Easy
|
||||||
|
|
||||||
|
version: 0.0.1
|
||||||
|
|
||||||
api:
|
api:
|
||||||
|
|
||||||
binary_sensor:
|
binary_sensor:
|
||||||
@@ -254,6 +256,17 @@ switch:
|
|||||||
then:
|
then:
|
||||||
- lambda: bs_vibrating->publish_state(false);
|
- 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:
|
uart:
|
||||||
id: if_uart_touch
|
id: if_uart_touch
|
||||||
tx_pin: GPIO19
|
tx_pin: GPIO19
|
||||||
|
|||||||
Reference in New Issue
Block a user