98 lines
1.8 KiB
YAML
98 lines
1.8 KiB
YAML
esphome:
|
|
name: pm6006
|
|
comment: PM6006 Amplifier
|
|
platform: esp8266
|
|
board: modwifi
|
|
|
|
wifi:
|
|
ssid: "Fancy Pants"
|
|
password: "Ch8314190970"
|
|
ap:
|
|
ssid: "PM6006 Fallback Hotspot"
|
|
password: "FI1xHKpHuXBJ"
|
|
power_save_mode: HIGH
|
|
|
|
captive_portal:
|
|
|
|
logger:
|
|
|
|
prometheus:
|
|
|
|
api:
|
|
password: "echu2Ceex"
|
|
|
|
ota:
|
|
password: "echu2Ceex"
|
|
|
|
mqtt:
|
|
broker: keylime.i.juju.nz
|
|
keepalive: 60s
|
|
|
|
status_led:
|
|
pin:
|
|
number: GPIO1
|
|
inverted: True
|
|
|
|
binary_sensor:
|
|
- platform: gpio
|
|
name: "PM6006 power sense"
|
|
id: pm6006_power_sense
|
|
pin:
|
|
number: 15
|
|
|
|
remote_transmitter:
|
|
pin:
|
|
number: GPIO13
|
|
inverted: True
|
|
carrier_duty_percent: 100%
|
|
|
|
switch:
|
|
- platform: template
|
|
name: "PM6006 power"
|
|
lambda: |-
|
|
if (id(pm6006_power_sense).state) {
|
|
return true;
|
|
} else {
|
|
return false;
|
|
}
|
|
turn_on_action:
|
|
remote_transmitter.transmit_rc5:
|
|
address: 0x10
|
|
command: 0x0C
|
|
repeat: 2
|
|
turn_off_action:
|
|
remote_transmitter.transmit_rc5:
|
|
address: 0x10
|
|
command: 0x0C
|
|
repeat: 2
|
|
- platform: template
|
|
name: "PM6006 volume up"
|
|
turn_on_action:
|
|
remote_transmitter.transmit_rc5:
|
|
address: 0x10
|
|
command: 16
|
|
turn_off_action:
|
|
remote_transmitter.transmit_rc5:
|
|
address: 0x10
|
|
command: 16
|
|
- platform: template
|
|
name: "PM6006 volume down"
|
|
turn_on_action:
|
|
remote_transmitter.transmit_rc5:
|
|
address: 0x10
|
|
command: 17
|
|
turn_off_action:
|
|
remote_transmitter.transmit_rc5:
|
|
address: 0x10
|
|
command: 17
|
|
- platform: template
|
|
name: "PM6006 mute"
|
|
turn_on_action:
|
|
remote_transmitter.transmit_rc5:
|
|
address: 0x10
|
|
command: 13
|
|
turn_off_action:
|
|
remote_transmitter.transmit_rc5:
|
|
address: 0x10
|
|
command: 13
|