Mercurial > code > home > repos > homeauto
view espNode/theater_blaster.yaml @ 773:bc3516d02762
old changes in espNode
Ignore-this: cbdcaf859b465e76c2c98e0d4510a1d3
author | drewp@bigasterisk.com |
---|---|
date | Sun, 28 Jun 2020 14:05:12 -0700 |
parents | b14020802f8a |
children | bb3a7869b54d |
line wrap: on
line source
esphome: name: theater_blaster platform: esp32 board: lolin32 # MAC: 3c:71:bf:ab:6e:94 wifi: ssid: !secret wifi_ssid password: !secret wifi_password use_address: 10.2.0.38 mqtt: broker: '10.2.0.1' port: 1883 username: '' password: '' on_json_message: - topic: theater_blaster/ir_out/volume_up then: - remote_transmitter.transmit_nec: address: 0x4BB6 command: 0x40BF repeat: times: !lambda |- if (x.containsKey("times")) { return x["times"]; } return 1; - topic: theater_blaster/ir_out/volume_down then: - remote_transmitter.transmit_nec: address: 0x4BB6 command: 0xC03F repeat: times: !lambda |- if (x.containsKey("times")) { return x["times"]; } return 1; on_message: - topic: theater_blaster/ir_out payload: "input_bd" then: - remote_transmitter.transmit_nec: address: 0x4B36 command: 0x31CE - topic: theater_blaster/ir_out payload: "input_cbl" then: - remote_transmitter.transmit_nec: address: 0x4BB6 command: 0x708F - topic: theater_blaster/ir_out payload: "input_game" then: - remote_transmitter.transmit_nec: address: 0x4BB6 command: 0xB04F - topic: theater_blaster/ir_out payload: "input_pc" then: - remote_transmitter.transmit_nec: address: 0x4BB6 command: 0x39C6 logger: baud_rate: 115200 level: DEBUG ota: remote_receiver: - id: ir_in pin: number: GPIO27 mode: INPUT inverted: True dump: nec - id: rf_in pin: GPIO13 dump: all # Settings to optimize recognition of RF devices tolerance: 50% filter: 250us idle: 4ms buffer_size: 2kb remote_transmitter: id: ir_out pin: GPIO14 carrier_duty_percent: 50% #13 rf recv #12 rf send #https://www.passion-radio.com/img/cms/wifi-kit-32-pinout.png #on_...: # - remote_transmitter.transmit_nec: # address: 0x1234 # command: 0x78AB i2c: sda: 4 scl: 15 font: - file: "/usr/share/fonts/truetype/ttf-bitstream-vera/Vera.ttf" id: font_vera size: 20 display: - platform: ssd1306_i2c model: "SSD1306 128x64" reset_pin: 16 address: 0x3C lambda: |- it.print(128/2, 0+6, id(font_vera), TextAlign::TOP_CENTER, "big cast erisk"); it.print(128/2, 64-6, id(font_vera), TextAlign::BOTTOM_CENTER ,"Volume 45");