From dda5e1e6a845646c968364bfeae8ca120155fa72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Magnus=20=C3=98verli?= Date: Thu, 17 Sep 2020 10:33:50 +0200 Subject: [PATCH] Removing deprecated text sensor --- tagreader.yaml | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/tagreader.yaml b/tagreader.yaml index 2865661..5b7c144 100644 --- a/tagreader.yaml +++ b/tagreader.yaml @@ -55,7 +55,7 @@ globals: - id: led_enable type: bool initial_value: 'true' - + switch: - platform: template name: "Sound" @@ -113,7 +113,7 @@ api: level: 50% - delay: 120ms - output.turn_off: buzzer - + - service: rfidreader_tag_ko then: - output.esp8266_pwm.set_frequency: @@ -138,9 +138,6 @@ pn532: on_tag: #TODO #3 - Add condition to read only once every 5 seconds then: - - text_sensor.template.publish: - id: rfid_tag - state: !lambda 'return x;' - homeassistant.event: event: esphome.rfid_read data: @@ -191,23 +188,19 @@ pn532: - + output: - platform: esp8266_pwm pin: D8 id: buzzer - -text_sensor: -- platform: template - name: "RFID Tag" - id: rfid_tag + +text_sensor: - platform: template id: connected - light: - platform: fastled_clockless chipset: WS2812 @@ -218,4 +211,4 @@ light: id: activity_led restore_mode: ALWAYS_OFF name: "Activity LED" - internal: true \ No newline at end of file + internal: true