1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-01 19:02:18 +01:00

added tx20 wind speed sensor (#275)

* added tx20 wind speed sensor

* added test

* fixed lint errors

* fixed more lint errors

* updated tx20

* updated tx20 sensor

* updated to new structure and removed static variables

* removed content from __init__.py

* fixing lint errors

* resolved issues from review


Co-authored-by: Thomas <thomas.eckerstorfer@mic-cust.com>
Co-authored-by: Otto Winter <otto@otto-winter.com>
This commit is contained in:
Thomas Eckerstorfer
2019-07-03 16:42:32 +02:00
committed by Otto Winter
parent 81a070d03d
commit c6512013bb
6 changed files with 297 additions and 0 deletions

View File

@@ -564,6 +564,14 @@ sensor:
name: CCS811 TVOC
update_interval: 30s
baseline: 0x4242
- platform: tx20
wind_speed:
name: "Windspeed"
wind_direction_degrees:
name: "Winddirection Degrees"
pin:
number: GPIO04
mode: INPUT
- platform: zyaura
clock_pin: GPIO5
data_pin: GPIO4