Replace IR raw codes with vendor aware codes.

Add PM1006 particulate matter sensor.
This commit is contained in:
Marcus Scholz 2021-08-28 19:36:14 +02:00
parent 4076296dd1
commit 51f2850338

View File

@ -58,6 +58,11 @@ output:
pin: GPIO18 pin: GPIO18
id: led_green id: led_green
# Initialize UART for Vindriktning sensor
uart:
rx_pin: GPIO14
baud_rate: 9600
# Create text sensor to represent CO2 LED warn state (somewhat redundant) # Create text sensor to represent CO2 LED warn state (somewhat redundant)
text_sensor: text_sensor:
- platform: template - platform: template
@ -149,39 +154,38 @@ sensor:
name: "Schlafzimmer Luftdruck" name: "Schlafzimmer Luftdruck"
address: 0x76 address: 0x76
update_interval: 60s update_interval: 60s
# Vindriktning particulate matter sensor
- platform: pm1006
pm_2_5:
name: "Feinstaub PM 2.5µm"
# IR Receiver, dumps all received values into serial
remote_receiver: remote_receiver:
pin: pin:
number: 23 number: 23
inverted: true inverted: True
dump: all dump: all
# IR Transmitter
remote_transmitter: remote_transmitter:
pin: GPIO22 pin: GPIO22
# Infrared remotes use a 50% carrier signal # Infrared remotes use a 50% carrier signal
carrier_duty_percent: 50% carrier_duty_percent: 50%
# Temporary test switches
switch: switch:
- platform: template - platform: template
name: Yamaha Power Button name: Yamaha Power Button
turn_on_action: turn_on_action:
- remote_transmitter.transmit_raw: - remote_transmitter.transmit_nec:
carrier_frequency: 38kHz address: 0x7E81
# Yamaha power button command: 0x54AB
code: [ 9922, -3533, 2643, -699, 1542, -700, 1543, -699, 1540, -702,
1540, -702, 1540, -703, 2660, -703, 8266, -703, 2657, -707,
2655, -708, 2654, -710, 3773, -712, 2651, -712, 2651, -713,
2650, -717, 11, -2, 1510, -733, 1507, -5652, 9905, -1301,
1510 ]
- platform: template - platform: template
name: Samsung Power Button name: Samsung Power Button
turn_on_action: turn_on_action:
- remote_transmitter.transmit_raw: - remote_transmitter.transmit_samsung:
carrier_frequency: 38kHz data: 0xE0E040BF
# Samsung power button nbits: 32
code: [ 5430, -3513, 1515, -724, 1519, -723, 1519, -723, 7157, -723,
1519, -722, 1518, -724, 8284, -724, 8284, -724, 2645, -724,
1519, -723, 1517, -725, 1517, -725, 1518, -724, 1517, -725 ]
#script: #script:
# - id: startup_animation # - id: startup_animation
# then: # then: