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