1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-31 07:03:55 +00:00

AS3935 Lightning sensor (#666)

* 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

* added as3935 sensor

* updated as3935 with more settings

* update

* support for i2c + spi updated

* added tests and various fixes

* added tx20 wind speed sensor

* 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

* added as3935 sensor

* updated as3935 with more settings

* update

* support for i2c + spi updated

* added tests and various fixes

* updated tests

* fixed style issues

* Remove debug line

* Update log levels

* Reformat

* Auto-convert to int


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-10-12 15:03:35 +02:00
committed by Otto Winter
parent 4d31ad3bdc
commit 68e7e5a51c
17 changed files with 619 additions and 5 deletions

View File

@@ -171,6 +171,10 @@ ads1115:
dallas:
pin: GPIO23
as3935_spi:
cs_pin: GPIO12
pin: GPIO13
sensor:
- platform: adc
pin: A0
@@ -595,7 +599,11 @@ sensor:
name: "ZyAura Temperature"
humidity:
name: "ZyAura Humidity"
- platform: as3935_base
lightning_energy:
name: "Lightning Energy"
distance:
name: "Distance Storm"
esp32_touch:
setup_mode: False
@@ -730,6 +738,8 @@ binary_sensor:
3700, -2263, 1712, -4254, 1711, -4249, 1715, -2266, 1710, -2267,
1709, -2265, 3704, -4250, 1712, -4254, 3700, -2260, 1714, -2265,
1712, -2262, 1714, -2267, 1709]
- platform: as3935_base
name: "Storm Alert"
pca9685:
frequency: 500

View File

@@ -50,6 +50,10 @@ deep_sleep:
run_duration: 20s
sleep_duration: 50s
as3935_i2c:
pin: GPIO12
sensor:
- platform: ble_rssi
mac_address: AC:37:43:77:5F:4C
@@ -125,6 +129,11 @@ sensor:
- platform: homeassistant
entity_id: sensor.hello_world
id: ha_hello_world
- platform: as3935_base
lightning_energy:
name: "Lightning Energy"
distance:
name: "Distance Storm"
time:
- platform: homeassistant
@@ -163,6 +172,8 @@ binary_sensor:
- platform: homeassistant
entity_id: binary_sensor.hello_world
id: ha_hello_world_binary
- platform: as3935_base
name: "Storm Alert"
remote_receiver:
pin: GPIO32