Skip to content

Commit

Permalink
Create sensor-pm1006.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
jumping2000 authored Aug 10, 2022
1 parent 0c8a74f commit 7062c35
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions ikea_vindriktning/sensor-pm1006.yaml
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

0 comments on commit 7062c35

Please sign in to comment.