-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0c8a74f
commit 7062c35
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Basic VINDRIKTNING pm25 | ||
substitutions: | ||
device_name: "vindriktning-pm1006" | ||
sensor_name: "Vindriktning PM1006" | ||
device_description: "IKEA VINDRIKTNING Particulate Matter Sensor with PM1006" | ||
packages: | ||
device_base: !include common/device_base.yaml | ||
esphome: | ||
name: ${device_name} | ||
comment: ${device_description} | ||
esp8266: | ||
board: d1_mini | ||
wifi: | ||
manual_ip: | ||
static_ip: 192.168.1.59 | ||
gateway: 192.168.1.1 | ||
subnet: 255.255.255.0 | ||
#SERIAL | ||
uart: | ||
- id: uart_a | ||
rx_pin: D4 | ||
baud_rate: 9600 | ||
# | ||
sensor: | ||
# PM1006 | ||
- platform: pm1006 | ||
uart_id: uart_a | ||
pm_2_5: | ||
name: ${sensor_name} PM25 | ||
accuracy_decimals: 2 | ||
filters: | ||
- sliding_window_moving_average: | ||
window_size: 50 | ||
send_every: 15 | ||
send_first_at: 10 |