Skip to content

Commit

Permalink
Merge pull request #8 from adonno/magnusoverli-remove_text_sensor
Browse files Browse the repository at this point in the history
Removing deprecated text sensor
  • Loading branch information
magnusoverli authored Sep 17, 2020
2 parents 93e85a0 + dda5e1e commit 86a5a76
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions tagreader.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ globals:
- id: led_enable
type: bool
initial_value: 'true'

switch:
- platform: template
name: "Sound"
Expand Down Expand Up @@ -113,7 +113,7 @@ api:
level: 50%
- delay: 120ms
- output.turn_off: buzzer

- service: rfidreader_tag_ko
then:
- output.esp8266_pwm.set_frequency:
Expand All @@ -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:
Expand Down Expand Up @@ -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
Expand All @@ -218,4 +211,4 @@ light:
id: activity_led
restore_mode: ALWAYS_OFF
name: "Activity LED"
internal: true
internal: true

0 comments on commit 86a5a76

Please sign in to comment.