2020-07-13 16:45:06 +02:00
|
|
|
substitutions:
|
|
|
|
devicename: test1
|
|
|
|
|
2019-02-13 16:54:02 +01:00
|
|
|
esphome:
|
2018-08-26 11:26:14 +02:00
|
|
|
name: test1
|
|
|
|
platform: ESP32
|
|
|
|
board: nodemcu-32s
|
|
|
|
on_boot:
|
|
|
|
priority: 150.0
|
|
|
|
then:
|
|
|
|
- lambda: >-
|
|
|
|
ESP_LOGD("main", "ON BOOT!");
|
|
|
|
on_shutdown:
|
|
|
|
then:
|
|
|
|
- lambda: >-
|
|
|
|
ESP_LOGD("main", "ON SHUTDOWN!");
|
2018-09-23 18:58:41 +02:00
|
|
|
on_loop:
|
|
|
|
then:
|
|
|
|
- lambda: >-
|
|
|
|
ESP_LOGV("main", "ON LOOP!");
|
2019-05-12 23:04:36 +02:00
|
|
|
- light.addressable_set:
|
|
|
|
id: addr1
|
2019-05-27 19:35:36 +02:00
|
|
|
range_from: 0
|
2019-05-12 23:04:36 +02:00
|
|
|
range_to: 100
|
|
|
|
red: 100%
|
|
|
|
green: !lambda 'return 255;'
|
|
|
|
blue: 0%
|
|
|
|
white: 100%
|
2018-09-26 18:39:41 +02:00
|
|
|
build_path: build/test1
|
2018-08-26 11:26:14 +02:00
|
|
|
|
2020-07-13 16:45:06 +02:00
|
|
|
packages:
|
|
|
|
wifi: !include test_packages/test_packages_package_wifi.yaml
|
|
|
|
pkg_test: !include test_packages/test_packages_package1.yaml
|
|
|
|
|
2018-08-26 11:26:14 +02:00
|
|
|
wifi:
|
2019-01-06 11:43:14 +01:00
|
|
|
networks:
|
|
|
|
- ssid: 'MySSID'
|
|
|
|
password: 'password1'
|
|
|
|
- ssid: 'MySSID2'
|
|
|
|
password: ''
|
|
|
|
channel: 14
|
|
|
|
bssid: 'A1:63:95:47:D3:1D'
|
2018-08-26 11:26:14 +02:00
|
|
|
manual_ip:
|
|
|
|
static_ip: 192.168.178.230
|
|
|
|
gateway: 192.168.178.1
|
|
|
|
subnet: 255.255.255.0
|
|
|
|
dns1: 1.1.1.1
|
|
|
|
dns2: 1.2.2.1
|
|
|
|
domain: .local
|
|
|
|
reboot_timeout: 120s
|
2018-10-13 21:17:19 +02:00
|
|
|
power_save_mode: none
|
2018-08-26 11:26:14 +02:00
|
|
|
|
|
|
|
mqtt:
|
|
|
|
broker: '192.168.178.84'
|
|
|
|
port: 1883
|
|
|
|
username: 'debug'
|
|
|
|
password: 'debug'
|
|
|
|
client_id: someclient
|
|
|
|
discovery: True
|
|
|
|
discovery_retain: False
|
|
|
|
discovery_prefix: discovery
|
|
|
|
topic_prefix: helloworld
|
2018-10-14 18:46:17 +02:00
|
|
|
log_topic:
|
|
|
|
topic: helloworld/hi
|
|
|
|
level: INFO
|
2018-08-26 11:26:14 +02:00
|
|
|
birth_message:
|
|
|
|
will_message:
|
|
|
|
shutdown_message:
|
|
|
|
topic: topic/to/send/to
|
|
|
|
payload: hi
|
|
|
|
qos: 2
|
|
|
|
retain: True
|
|
|
|
keepalive: 60s
|
|
|
|
reboot_timeout: 60s
|
|
|
|
on_message:
|
|
|
|
- topic: my/custom/topic
|
|
|
|
qos: 0
|
|
|
|
then:
|
|
|
|
- lambda: >-
|
2018-09-23 18:58:41 +02:00
|
|
|
ESP_LOGD("main", "Got message %s", x.c_str());
|
2018-08-26 11:26:14 +02:00
|
|
|
- topic: livingroom/ota_mode
|
|
|
|
then:
|
2019-10-17 21:34:58 +02:00
|
|
|
- deep_sleep.prevent
|
2018-08-26 11:26:14 +02:00
|
|
|
- topic: livingroom/ota_mode
|
|
|
|
then:
|
2019-10-17 21:34:58 +02:00
|
|
|
- deep_sleep.enter:
|
2018-10-20 12:41:00 +02:00
|
|
|
on_json_message:
|
|
|
|
topic: the/topic
|
|
|
|
then:
|
2019-03-03 16:45:56 +01:00
|
|
|
- if:
|
|
|
|
condition:
|
|
|
|
- wifi.connected:
|
|
|
|
- mqtt.connected:
|
2019-05-30 13:12:12 +02:00
|
|
|
- light.is_on: kitchen
|
|
|
|
- light.is_off: kitchen
|
2019-03-03 16:45:56 +01:00
|
|
|
then:
|
|
|
|
- lambda: |-
|
|
|
|
int data = x["my_data"];
|
|
|
|
ESP_LOGD("main", "The data is: %d", data);
|
|
|
|
- light.turn_on:
|
|
|
|
id: living_room_lights
|
2019-04-08 18:08:58 +02:00
|
|
|
brightness: !lambda |-
|
|
|
|
float brightness = 1.0;
|
|
|
|
if (x.containsKey("brightness"))
|
|
|
|
brightness = x["brightness"];
|
|
|
|
return brightness;
|
2019-03-03 16:45:56 +01:00
|
|
|
effect: !lambda |-
|
|
|
|
const char *effect = "None";
|
|
|
|
if (x.containsKey("effect"))
|
|
|
|
effect = x["effect"];
|
|
|
|
return effect;
|
2019-04-22 21:56:30 +02:00
|
|
|
- light.control:
|
|
|
|
id: living_room_lights
|
|
|
|
brightness: !lambda 'return id(living_room_lights).current_values.get_brightness() + 0.5;'
|
2019-05-31 10:36:23 +02:00
|
|
|
- light.dim_relative:
|
|
|
|
id: living_room_lights
|
|
|
|
relative_brightness: 5%
|
2019-05-29 19:32:18 +02:00
|
|
|
- uart.write:
|
|
|
|
id: uart0
|
|
|
|
data: Hello World
|
|
|
|
- uart.write: [0x00, 0x20, 0x30]
|
|
|
|
- uart.write: !lambda |-
|
|
|
|
return {};
|
2018-08-26 11:26:14 +02:00
|
|
|
|
|
|
|
i2c:
|
|
|
|
sda: 21
|
|
|
|
scl: 22
|
|
|
|
scan: True
|
|
|
|
frequency: 100kHz
|
2018-11-12 23:30:31 +01:00
|
|
|
setup_priority: -100
|
2018-08-26 11:26:14 +02:00
|
|
|
|
|
|
|
spi:
|
|
|
|
clk_pin: GPIO21
|
|
|
|
mosi_pin: GPIO22
|
|
|
|
miso_pin: GPIO23
|
|
|
|
|
|
|
|
uart:
|
2020-06-13 01:34:38 +02:00
|
|
|
- tx_pin: GPIO22
|
|
|
|
rx_pin: GPIO23
|
|
|
|
baud_rate: 115200
|
|
|
|
id: uart0
|
|
|
|
parity: NONE
|
|
|
|
data_bits: 8
|
|
|
|
stop_bits: 1
|
|
|
|
rx_buffer_size: 512
|
|
|
|
|
|
|
|
- id: adalight_uart
|
|
|
|
tx_pin: GPIO25
|
|
|
|
rx_pin: GPIO26
|
|
|
|
baud_rate: 115200
|
|
|
|
rx_buffer_size: 1024
|
2018-08-26 11:26:14 +02:00
|
|
|
|
|
|
|
ota:
|
|
|
|
safe_mode: True
|
|
|
|
password: 'superlongpasswordthatnoonewillknow'
|
|
|
|
port: 3286
|
|
|
|
|
|
|
|
logger:
|
|
|
|
baud_rate: 0
|
|
|
|
level: VERBOSE
|
|
|
|
logs:
|
|
|
|
mqtt.component: DEBUG
|
|
|
|
mqtt.client: ERROR
|
|
|
|
|
|
|
|
web_server:
|
|
|
|
port: 8080
|
2019-02-13 16:54:02 +01:00
|
|
|
css_url: https://esphome.io/_static/webserver-v1.min.css
|
|
|
|
js_url: https://esphome.io/_static/webserver-v1.min.js
|
2018-08-26 11:26:14 +02:00
|
|
|
|
|
|
|
power_supply:
|
|
|
|
id: 'atx_power_supply'
|
|
|
|
enable_time: 20ms
|
|
|
|
keep_on_time: 10s
|
|
|
|
pin:
|
|
|
|
number: 13
|
|
|
|
inverted: true
|
|
|
|
|
|
|
|
deep_sleep:
|
|
|
|
run_duration: 20s
|
|
|
|
sleep_duration: 50s
|
|
|
|
wakeup_pin: GPIO39
|
|
|
|
wakeup_pin_mode: INVERT_WAKEUP
|
|
|
|
|
|
|
|
ads1115:
|
|
|
|
address: 0x48
|
|
|
|
|
|
|
|
dallas:
|
|
|
|
pin: GPIO23
|
|
|
|
|
2019-10-12 15:03:35 +02:00
|
|
|
as3935_spi:
|
|
|
|
cs_pin: GPIO12
|
2019-10-27 12:30:19 +01:00
|
|
|
irq_pin: GPIO13
|
2019-10-12 15:03:35 +02:00
|
|
|
|
2020-06-13 01:50:09 +02:00
|
|
|
wled:
|
|
|
|
|
2020-06-13 01:34:38 +02:00
|
|
|
adalight:
|
|
|
|
|
2018-08-26 11:26:14 +02:00
|
|
|
sensor:
|
|
|
|
- platform: adc
|
|
|
|
pin: A0
|
|
|
|
name: "Living Room Brightness"
|
|
|
|
update_interval: '1:01'
|
|
|
|
attenuation: 2.5db
|
|
|
|
unit_of_measurement: "°C"
|
|
|
|
icon: "mdi:water-percent"
|
|
|
|
accuracy_decimals: 5
|
|
|
|
expire_after: 120s
|
2018-11-12 23:30:31 +01:00
|
|
|
setup_priority: -100
|
2019-10-21 15:46:39 +02:00
|
|
|
force_update: true
|
2018-08-26 11:26:14 +02:00
|
|
|
filters:
|
|
|
|
- offset: 2.0
|
|
|
|
- multiply: 1.2
|
2019-02-26 19:38:39 +01:00
|
|
|
- calibrate_linear:
|
|
|
|
- 0.0 -> 0.0
|
|
|
|
- 40.0 -> 45.0
|
|
|
|
- 100.0 -> 102.5
|
2018-08-26 11:26:14 +02:00
|
|
|
- filter_out: 42.0
|
2019-03-18 15:07:20 +01:00
|
|
|
- filter_out: nan
|
2019-08-27 19:39:04 +02:00
|
|
|
- median:
|
|
|
|
window_size: 5
|
|
|
|
send_every: 5
|
|
|
|
send_first_at: 3
|
2018-08-26 11:26:14 +02:00
|
|
|
- sliding_window_moving_average:
|
|
|
|
window_size: 15
|
|
|
|
send_every: 15
|
2018-10-26 22:59:03 +02:00
|
|
|
send_first_at: 15
|
2018-08-26 11:26:14 +02:00
|
|
|
- exponential_moving_average:
|
|
|
|
alpha: 0.1
|
|
|
|
send_every: 15
|
|
|
|
- throttle: 1s
|
|
|
|
- heartbeat: 5s
|
|
|
|
- debounce: 0.1s
|
|
|
|
- delta: 5.0
|
|
|
|
- or:
|
|
|
|
- throttle: 1s
|
|
|
|
- delta: 5.0
|
|
|
|
- lambda: return x * (9.0/5.0) + 32.0;
|
|
|
|
on_value:
|
|
|
|
then:
|
2018-12-05 21:22:06 +01:00
|
|
|
- lambda: |-
|
2018-08-26 11:26:14 +02:00
|
|
|
ESP_LOGD("main", "Got value %f", x);
|
2018-10-20 15:16:58 +02:00
|
|
|
id(my_sensor).publish_state(42.0);
|
|
|
|
ESP_LOGI("main", "Value of my sensor: %f", id(my_sensor).state);
|
|
|
|
ESP_LOGI("main", "Raw Value of my sensor: %f", id(my_sensor).state);
|
2018-08-26 11:26:14 +02:00
|
|
|
on_value_range:
|
|
|
|
above: 5
|
|
|
|
below: 10
|
|
|
|
then:
|
|
|
|
- lambda: >-
|
|
|
|
ESP_LOGD("main", "Got value range %f", x);
|
2019-02-17 19:27:33 +01:00
|
|
|
- wait_until:
|
|
|
|
binary_sensor.is_on: binary_sensor1
|
2018-08-26 11:26:14 +02:00
|
|
|
on_raw_value:
|
|
|
|
- lambda: >-
|
|
|
|
ESP_LOGD("main", "Got raw value %f", x);
|
2018-10-20 15:19:59 +02:00
|
|
|
- logger.log:
|
|
|
|
level: DEBUG
|
|
|
|
format: "Got raw value %f"
|
|
|
|
args: ['x']
|
|
|
|
- logger.log: "Got raw value NAN"
|
2018-08-26 11:26:14 +02:00
|
|
|
- mqtt.publish:
|
|
|
|
topic: some/topic
|
|
|
|
payload: Hello
|
|
|
|
qos: 2
|
|
|
|
retain: True
|
2019-04-22 21:56:30 +02:00
|
|
|
- platform: esp32_hall
|
|
|
|
name: ESP32 Hall Sensor
|
2018-08-26 11:26:14 +02:00
|
|
|
- platform: ads1115
|
|
|
|
multiplexer: 'A0_A1'
|
|
|
|
gain: 1.024
|
|
|
|
id: my_sensor
|
|
|
|
filters:
|
|
|
|
state_topic: hi/me
|
|
|
|
retain: false
|
|
|
|
availability:
|
2019-06-16 12:00:15 +02:00
|
|
|
- platform: atm90e32
|
|
|
|
cs_pin: 5
|
|
|
|
phase_a:
|
|
|
|
voltage:
|
|
|
|
name: "EMON Line Voltage A"
|
|
|
|
current:
|
|
|
|
name: "EMON CT1 Current"
|
|
|
|
power:
|
|
|
|
name: "EMON Active Power CT1"
|
2019-11-13 08:49:59 +01:00
|
|
|
reactive_power:
|
|
|
|
name: "EMON Reactive Power CT1"
|
|
|
|
power_factor:
|
|
|
|
name: "EMON Power Factor CT1"
|
2020-03-13 18:27:19 +01:00
|
|
|
gain_voltage: 7305
|
|
|
|
gain_ct: 27961
|
2019-06-16 12:00:15 +02:00
|
|
|
phase_b:
|
|
|
|
current:
|
|
|
|
name: "EMON CT2 Current"
|
|
|
|
power:
|
|
|
|
name: "EMON Active Power CT2"
|
2019-11-20 17:47:34 +01:00
|
|
|
reactive_power:
|
|
|
|
name: "EMON Reactive Power CT2"
|
|
|
|
power_factor:
|
|
|
|
name: "EMON Power Factor CT2"
|
2020-03-13 18:27:19 +01:00
|
|
|
gain_voltage: 7305
|
|
|
|
gain_ct: 27961
|
2019-06-16 12:00:15 +02:00
|
|
|
phase_c:
|
|
|
|
current:
|
|
|
|
name: "EMON CT3 Current"
|
|
|
|
power:
|
|
|
|
name: "EMON Active Power CT3"
|
2019-11-20 17:47:34 +01:00
|
|
|
reactive_power:
|
|
|
|
name: "EMON Reactive Power CT3"
|
|
|
|
power_factor:
|
|
|
|
name: "EMON Power Factor CT3"
|
2020-03-13 18:27:19 +01:00
|
|
|
gain_voltage: 7305
|
|
|
|
gain_ct: 27961
|
2019-06-16 12:00:15 +02:00
|
|
|
frequency:
|
|
|
|
name: "EMON Line Frequency"
|
2019-11-20 17:47:34 +01:00
|
|
|
chip_temperature:
|
|
|
|
name: "EMON Chip Temp A"
|
2020-03-13 18:27:19 +01:00
|
|
|
line_frequency: 60Hz
|
|
|
|
current_phases: 3
|
2019-06-16 12:00:15 +02:00
|
|
|
gain_pga: 2X
|
2018-08-26 11:26:14 +02:00
|
|
|
- platform: bh1750
|
|
|
|
name: "Living Room Brightness 3"
|
|
|
|
internal: true
|
|
|
|
address: 0x23
|
|
|
|
resolution: 1.0
|
|
|
|
update_interval: 30s
|
|
|
|
retain: False
|
|
|
|
availability:
|
|
|
|
state_topic: livingroom/custom_state_topic
|
2020-05-29 04:10:34 +02:00
|
|
|
measurement_time: 31
|
2018-08-26 11:26:14 +02:00
|
|
|
- platform: bme280
|
|
|
|
temperature:
|
|
|
|
name: "Outside Temperature"
|
|
|
|
oversampling: 16x
|
|
|
|
pressure:
|
|
|
|
name: "Outside Pressure"
|
|
|
|
oversampling: none
|
|
|
|
humidity:
|
|
|
|
name: "Outside Humidity"
|
|
|
|
oversampling: 8x
|
|
|
|
address: 0x77
|
|
|
|
iir_filter: 16x
|
|
|
|
update_interval: 15s
|
|
|
|
- platform: bme680
|
|
|
|
temperature:
|
|
|
|
name: "Outside Temperature"
|
|
|
|
oversampling: 16x
|
|
|
|
pressure:
|
|
|
|
name: "Outside Pressure"
|
|
|
|
humidity:
|
|
|
|
name: "Outside Humidity"
|
|
|
|
gas_resistance:
|
|
|
|
name: "Outside Gas Sensor"
|
|
|
|
address: 0x77
|
|
|
|
heater:
|
|
|
|
temperature: 320
|
|
|
|
duration: 150ms
|
|
|
|
update_interval: 15s
|
|
|
|
- platform: bmp085
|
|
|
|
temperature:
|
|
|
|
name: "Outside Temperature"
|
|
|
|
pressure:
|
|
|
|
name: "Outside Pressure"
|
|
|
|
filters:
|
|
|
|
- lambda: >-
|
|
|
|
return x / powf(1.0 - (x / 44330.0), 5.255);
|
|
|
|
update_interval: 15s
|
|
|
|
- platform: bmp280
|
|
|
|
temperature:
|
|
|
|
name: "Outside Temperature"
|
|
|
|
oversampling: 16x
|
|
|
|
pressure:
|
|
|
|
name: "Outside Pressure"
|
|
|
|
address: 0x77
|
|
|
|
update_interval: 15s
|
|
|
|
iir_filter: 16x
|
|
|
|
- platform: dallas
|
|
|
|
address: 0x1C0000031EDD2A28
|
|
|
|
name: "Living Room Temperature"
|
|
|
|
resolution: 9
|
|
|
|
- platform: dallas
|
|
|
|
index: 1
|
|
|
|
name: "Living Room Temperature 2"
|
|
|
|
- platform: dht
|
|
|
|
pin: GPIO26
|
|
|
|
temperature:
|
|
|
|
name: "Living Room Temperature 3"
|
|
|
|
humidity:
|
|
|
|
name: "Living Room Humidity 3"
|
|
|
|
model: AM2302
|
|
|
|
update_interval: 15s
|
|
|
|
- platform: dht12
|
|
|
|
temperature:
|
|
|
|
name: "Living Room Temperature 4"
|
|
|
|
humidity:
|
|
|
|
name: "Living Room Humidity 4"
|
|
|
|
update_interval: 15s
|
|
|
|
- platform: duty_cycle
|
|
|
|
pin: GPIO25
|
|
|
|
name: Duty Cycle Sensor
|
|
|
|
- platform: esp32_hall
|
|
|
|
name: "ESP32 Hall Sensor"
|
|
|
|
update_interval: 15s
|
|
|
|
- platform: hdc1080
|
|
|
|
temperature:
|
|
|
|
name: "Living Room Temperature 5"
|
|
|
|
humidity:
|
|
|
|
name: "Living Room Pressure 5"
|
|
|
|
update_interval: 15s
|
|
|
|
- platform: hlw8012
|
|
|
|
sel_pin: 5
|
|
|
|
cf_pin: 14
|
|
|
|
cf1_pin: 13
|
|
|
|
current:
|
|
|
|
name: "HLW8012 Current"
|
|
|
|
voltage:
|
|
|
|
name: "HLW8012 Voltage"
|
|
|
|
power:
|
|
|
|
name: "HLW8012 Power"
|
2018-11-09 20:27:19 +01:00
|
|
|
id: hlw8012_power
|
2018-08-26 11:26:14 +02:00
|
|
|
update_interval: 15s
|
|
|
|
current_resistor: 0.001 ohm
|
|
|
|
voltage_divider: 2351
|
|
|
|
change_mode_every: 16
|
2019-06-06 22:44:52 +02:00
|
|
|
initial_mode: VOLTAGE
|
2018-11-09 20:27:19 +01:00
|
|
|
- platform: total_daily_energy
|
|
|
|
power_id: hlw8012_power
|
|
|
|
name: "HLW8012 Total Daily Energy"
|
2019-06-06 15:06:02 +02:00
|
|
|
- platform: integration
|
|
|
|
sensor: hlw8012_power
|
|
|
|
name: "Integration Sensor"
|
|
|
|
time_unit: s
|
2018-08-26 11:26:14 +02:00
|
|
|
- platform: hmc5883l
|
|
|
|
address: 0x68
|
|
|
|
field_strength_x:
|
|
|
|
name: "HMC5883L Field Strength X"
|
|
|
|
field_strength_y:
|
|
|
|
name: "HMC5883L Field Strength Y"
|
|
|
|
field_strength_z:
|
|
|
|
name: "HMC5883L Field Strength Z"
|
|
|
|
heading:
|
|
|
|
name: "HMC5883L Heading"
|
|
|
|
range: 130uT
|
2019-11-26 18:43:11 +01:00
|
|
|
oversampling: 8x
|
|
|
|
update_interval: 15s
|
|
|
|
- platform: qmc5883l
|
|
|
|
address: 0x0D
|
|
|
|
field_strength_x:
|
|
|
|
name: "QMC5883L Field Strength X"
|
|
|
|
field_strength_y:
|
|
|
|
name: "QMC5883L Field Strength Y"
|
|
|
|
field_strength_z:
|
|
|
|
name: "QMC5883L Field Strength Z"
|
|
|
|
heading:
|
|
|
|
name: "QMC5883L Heading"
|
|
|
|
range: 800uT
|
|
|
|
oversampling: 256x
|
2018-08-26 11:26:14 +02:00
|
|
|
update_interval: 15s
|
|
|
|
- platform: hx711
|
|
|
|
name: "HX711 Value"
|
|
|
|
dout_pin: GPIO23
|
2019-12-04 16:47:34 +01:00
|
|
|
clk_pin: GPIO25
|
2018-08-26 11:26:14 +02:00
|
|
|
gain: 128
|
|
|
|
update_interval: 15s
|
|
|
|
- platform: ina219
|
|
|
|
address: 0x40
|
|
|
|
shunt_resistance: 0.1 ohm
|
|
|
|
current:
|
|
|
|
name: "INA219 Current"
|
|
|
|
power:
|
|
|
|
name: "INA219 Power"
|
|
|
|
bus_voltage:
|
|
|
|
name: "INA219 Bus Voltage"
|
|
|
|
shunt_voltage:
|
|
|
|
name: "INA219 Shunt Voltage"
|
|
|
|
max_voltage: 32.0V
|
|
|
|
max_current: 3.2A
|
|
|
|
update_interval: 15s
|
2019-11-06 13:59:00 +01:00
|
|
|
- platform: ina226
|
|
|
|
address: 0x40
|
|
|
|
shunt_resistance: 0.1 ohm
|
|
|
|
current:
|
|
|
|
name: "INA226 Current"
|
|
|
|
power:
|
|
|
|
name: "INA226 Power"
|
|
|
|
bus_voltage:
|
|
|
|
name: "INA226 Bus Voltage"
|
|
|
|
shunt_voltage:
|
|
|
|
name: "INA226 Shunt Voltage"
|
|
|
|
max_current: 3.2A
|
|
|
|
update_interval: 15s
|
2018-08-26 11:26:14 +02:00
|
|
|
- platform: ina3221
|
|
|
|
address: 0x40
|
|
|
|
channel_1:
|
|
|
|
shunt_resistance: 0.1 ohm
|
|
|
|
current:
|
|
|
|
name: "INA3221 Channel 1 Current"
|
|
|
|
power:
|
|
|
|
name: "INA3221 Channel 1 Power"
|
|
|
|
bus_voltage:
|
|
|
|
name: "INA3221 Channel 1 Bus Voltage"
|
|
|
|
shunt_voltage:
|
|
|
|
name: "INA3221 Channel 1 Shunt Voltage"
|
|
|
|
update_interval: 15s
|
|
|
|
- platform: htu21d
|
|
|
|
temperature:
|
|
|
|
name: "Living Room Temperature 6"
|
|
|
|
humidity:
|
|
|
|
name: "Living Room Humidity 6"
|
|
|
|
update_interval: 15s
|
|
|
|
- platform: max6675
|
|
|
|
name: "Living Room Temperature"
|
|
|
|
cs_pin: GPIO23
|
|
|
|
update_interval: 15s
|
2019-01-05 20:08:25 +01:00
|
|
|
- platform: max31855
|
|
|
|
name: "Den Temperature"
|
|
|
|
cs_pin: GPIO23
|
|
|
|
update_interval: 15s
|
2019-11-06 13:56:43 +01:00
|
|
|
reference_temperature:
|
|
|
|
name: "MAX31855 Internal Temperature"
|
2020-05-25 00:33:59 +02:00
|
|
|
- platform: max31856
|
|
|
|
name: "BBQ Temperature"
|
|
|
|
cs_pin: GPIO17
|
|
|
|
update_interval: 15s
|
|
|
|
mains_filter: 50Hz
|
2019-11-06 13:56:43 +01:00
|
|
|
- platform: max31865
|
|
|
|
name: "Water Tank Temperature"
|
|
|
|
cs_pin: GPIO23
|
|
|
|
update_interval: 15s
|
|
|
|
reference_resistance: "430 Ω"
|
|
|
|
rtd_nominal_resistance: "100 Ω"
|
2018-08-26 11:26:14 +02:00
|
|
|
- platform: mhz19
|
|
|
|
co2:
|
|
|
|
name: "MH-Z19 CO2 Value"
|
|
|
|
temperature:
|
|
|
|
name: "MH-Z19 Temperature"
|
|
|
|
update_interval: 15s
|
2019-08-27 19:33:25 +02:00
|
|
|
automatic_baseline_calibration: false
|
2018-08-26 11:26:14 +02:00
|
|
|
- platform: mpu6050
|
|
|
|
address: 0x68
|
|
|
|
accel_x:
|
|
|
|
name: "MPU6050 Accel X"
|
|
|
|
accel_y:
|
|
|
|
name: "MPU6050 Accel Y"
|
|
|
|
accel_z:
|
|
|
|
name: "MPU6050 Accel z"
|
|
|
|
gyro_x:
|
|
|
|
name: "MPU6050 Gyro X"
|
|
|
|
gyro_y:
|
|
|
|
name: "MPU6050 Gyro Y"
|
|
|
|
gyro_z:
|
|
|
|
name: "MPU6050 Gyro z"
|
|
|
|
temperature:
|
|
|
|
name: "MPU6050 Temperature"
|
|
|
|
- platform: ms5611
|
|
|
|
temperature:
|
|
|
|
name: "Outside Temperature"
|
|
|
|
pressure:
|
|
|
|
name: "Outside Pressure"
|
|
|
|
address: 0x77
|
|
|
|
update_interval: 15s
|
|
|
|
- platform: pulse_counter
|
|
|
|
name: "Pulse Counter"
|
|
|
|
pin: GPIO12
|
|
|
|
count_mode:
|
|
|
|
rising_edge: INCREMENT
|
|
|
|
falling_edge: DECREMENT
|
|
|
|
internal_filter: 13us
|
|
|
|
update_interval: 15s
|
|
|
|
- platform: rotary_encoder
|
|
|
|
name: "Rotary Encoder"
|
2019-10-17 19:14:52 +02:00
|
|
|
id: rotary_encoder1
|
2018-08-26 11:26:14 +02:00
|
|
|
pin_a: GPIO23
|
2019-12-04 16:47:34 +01:00
|
|
|
pin_b: GPIO25
|
2018-08-26 11:26:14 +02:00
|
|
|
pin_reset: GPIO25
|
|
|
|
filters:
|
|
|
|
- or:
|
|
|
|
- debounce: 0.1s
|
|
|
|
- delta: 10
|
2019-02-28 10:17:38 +01:00
|
|
|
resolution: 4
|
|
|
|
min_value: -10
|
|
|
|
max_value: 30
|
2019-10-17 19:14:52 +02:00
|
|
|
on_value:
|
|
|
|
- sensor.rotary_encoder.set_value:
|
|
|
|
id: rotary_encoder1
|
|
|
|
value: 10
|
|
|
|
- sensor.rotary_encoder.set_value:
|
|
|
|
id: rotary_encoder1
|
|
|
|
value: !lambda 'return -1;'
|
2019-04-22 21:56:30 +02:00
|
|
|
- platform: pulse_width
|
|
|
|
name: Pulse Width
|
|
|
|
pin: GPIO12
|
2019-10-17 21:37:24 +02:00
|
|
|
- platform: senseair
|
|
|
|
co2:
|
|
|
|
name: "SenseAir CO2 Value"
|
|
|
|
update_interval: 15s
|
2018-08-26 11:26:14 +02:00
|
|
|
- platform: sht3xd
|
|
|
|
temperature:
|
|
|
|
name: "Living Room Temperature 8"
|
|
|
|
humidity:
|
|
|
|
name: "Living Room Humidity 8"
|
|
|
|
address: 0x44
|
|
|
|
update_interval: 15s
|
2019-10-19 21:31:37 +02:00
|
|
|
- platform: sts3x
|
|
|
|
name: "Living Room Temperature 9"
|
|
|
|
address: 0x4A
|
2019-08-31 19:24:37 +02:00
|
|
|
- platform: scd30
|
|
|
|
co2:
|
|
|
|
name: "Living Room CO2 9"
|
|
|
|
temperature:
|
|
|
|
name: "Living Room Temperature 9"
|
|
|
|
humidity:
|
|
|
|
name: "Living Room Humidity 9"
|
|
|
|
address: 0x61
|
|
|
|
update_interval: 15s
|
2020-03-12 01:39:40 +01:00
|
|
|
automatic_self_calibration: true
|
|
|
|
altitude_compensation: 10m
|
2019-10-19 21:21:07 +02:00
|
|
|
- platform: sgp30
|
|
|
|
eco2:
|
|
|
|
name: "Workshop eCO2"
|
|
|
|
accuracy_decimals: 1
|
|
|
|
tvoc:
|
|
|
|
name: "Workshop TVOC"
|
|
|
|
accuracy_decimals: 1
|
|
|
|
address: 0x58
|
|
|
|
update_interval: 5s
|
2019-12-04 12:34:10 +01:00
|
|
|
- platform: sps30
|
|
|
|
pm_1_0:
|
|
|
|
name: "Workshop PM <1µm Weight concentration"
|
|
|
|
id: "workshop_PM_1_0"
|
|
|
|
pm_2_5:
|
|
|
|
name: "Workshop PM <2.5µm Weight concentration"
|
|
|
|
id: "workshop_PM_2_5"
|
|
|
|
pm_4_0:
|
|
|
|
name: "Workshop PM <4µm Weight concentration"
|
|
|
|
id: "workshop_PM_4_0"
|
|
|
|
pm_10_0:
|
|
|
|
name: "Workshop PM <10µm Weight concentration"
|
|
|
|
id: "workshop_PM_10_0"
|
|
|
|
pmc_0_5:
|
|
|
|
name: "Workshop PM <0.5µm Number concentration"
|
|
|
|
id: "workshop_PMC_0_5"
|
|
|
|
pmc_1_0:
|
|
|
|
name: "Workshop PM <1µm Number concentration"
|
|
|
|
id: "workshop_PMC_1_0"
|
|
|
|
pmc_2_5:
|
|
|
|
name: "Workshop PM <2.5µm Number concentration"
|
|
|
|
id: "workshop_PMC_2_5"
|
|
|
|
pmc_4_0:
|
|
|
|
name: "Workshop PM <4µm Number concentration"
|
|
|
|
id: "workshop_PMC_4_0"
|
|
|
|
pmc_10_0:
|
|
|
|
name: "Workshop PM <10µm Number concentration"
|
|
|
|
id: "workshop_PMC_10_0"
|
|
|
|
address: 0x69
|
|
|
|
update_interval: 10s
|
2019-10-19 21:31:27 +02:00
|
|
|
- platform: shtcx
|
2019-10-19 21:59:55 +02:00
|
|
|
temperature:
|
|
|
|
name: "Living Room Temperature 10"
|
|
|
|
humidity:
|
|
|
|
name: "Living Room Humidity 10"
|
|
|
|
address: 0x70
|
|
|
|
update_interval: 15s
|
2018-08-26 11:26:14 +02:00
|
|
|
- platform: template
|
|
|
|
name: "Template Sensor"
|
2019-02-10 23:35:07 +01:00
|
|
|
id: template_sensor
|
|
|
|
lambda: |-
|
2018-10-20 15:16:58 +02:00
|
|
|
if (id(ultrasonic_sensor1).state > 1) {
|
2018-08-26 11:26:14 +02:00
|
|
|
return 42.0;
|
|
|
|
} else {
|
|
|
|
return {};
|
|
|
|
}
|
|
|
|
update_interval: 15s
|
2019-02-10 23:35:07 +01:00
|
|
|
on_value:
|
|
|
|
- sensor.template.publish:
|
|
|
|
id: template_sensor
|
|
|
|
state: 43.0
|
|
|
|
- sensor.template.publish:
|
|
|
|
id: template_sensor
|
|
|
|
state: !lambda 'return NAN;'
|
2018-08-26 11:26:14 +02:00
|
|
|
- platform: tsl2561
|
|
|
|
name: "TSL2561 Ambient Light"
|
|
|
|
address: 0x39
|
|
|
|
update_interval: 15s
|
|
|
|
is_cs_package: true
|
|
|
|
integration_time: 402ms
|
|
|
|
gain: 16x
|
|
|
|
- platform: ultrasonic
|
2019-12-04 16:47:34 +01:00
|
|
|
trigger_pin: GPIO25
|
2018-08-26 11:26:14 +02:00
|
|
|
echo_pin:
|
|
|
|
number: GPIO23
|
|
|
|
inverted: true
|
|
|
|
name: "Ultrasonic Sensor"
|
2019-03-03 16:47:10 +01:00
|
|
|
timeout: 5.5m
|
2018-08-26 11:26:14 +02:00
|
|
|
id: ultrasonic_sensor1
|
|
|
|
- platform: uptime
|
|
|
|
name: Uptime Sensor
|
|
|
|
- platform: wifi_signal
|
|
|
|
name: "WiFi Signal Sensor"
|
|
|
|
update_interval: 15s
|
2019-01-29 17:29:21 +01:00
|
|
|
- platform: mqtt_subscribe
|
|
|
|
name: "MQTT Subscribe Sensor 1"
|
|
|
|
topic: "mqtt/topic"
|
|
|
|
id: the_sensor
|
|
|
|
qos: 2
|
|
|
|
on_value:
|
|
|
|
- mqtt.publish_json:
|
|
|
|
topic: the/topic
|
|
|
|
payload: |-
|
2019-03-05 13:53:09 +01:00
|
|
|
root["key"] = id(the_sensor).state;
|
2019-01-29 17:29:21 +01:00
|
|
|
root["greeting"] = "Hello World";
|
2019-03-06 12:39:52 +01:00
|
|
|
- platform: sds011
|
|
|
|
pm_2_5:
|
|
|
|
name: "SDS011 PM2.5"
|
|
|
|
pm_10_0:
|
|
|
|
name: "SDS011 PM10.0"
|
|
|
|
update_interval: 5min
|
|
|
|
rx_only: false
|
2019-05-13 13:06:14 +02:00
|
|
|
- platform: ccs811
|
|
|
|
eco2:
|
|
|
|
name: CCS811 eCO2
|
|
|
|
tvoc:
|
|
|
|
name: CCS811 TVOC
|
|
|
|
update_interval: 30s
|
|
|
|
baseline: 0x4242
|
2019-07-03 16:42:32 +02:00
|
|
|
- platform: tx20
|
|
|
|
wind_speed:
|
|
|
|
name: "Windspeed"
|
|
|
|
wind_direction_degrees:
|
|
|
|
name: "Winddirection Degrees"
|
2019-12-03 15:50:06 +01:00
|
|
|
pin:
|
2019-07-03 16:42:32 +02:00
|
|
|
number: GPIO04
|
|
|
|
mode: INPUT
|
2019-07-03 16:33:18 +02:00
|
|
|
- platform: zyaura
|
|
|
|
clock_pin: GPIO5
|
|
|
|
data_pin: GPIO4
|
|
|
|
co2:
|
|
|
|
name: "ZyAura CO2"
|
|
|
|
temperature:
|
|
|
|
name: "ZyAura Temperature"
|
|
|
|
humidity:
|
|
|
|
name: "ZyAura Humidity"
|
2019-10-12 17:03:01 +02:00
|
|
|
- platform: as3935
|
2019-10-12 15:03:35 +02:00
|
|
|
lightning_energy:
|
|
|
|
name: "Lightning Energy"
|
|
|
|
distance:
|
|
|
|
name: "Distance Storm"
|
2020-03-12 22:25:00 +01:00
|
|
|
- platform: tmp117
|
|
|
|
name: "TMP117 Temperature"
|
|
|
|
update_interval: 5s
|
2020-04-06 19:11:41 +02:00
|
|
|
- platform: hm3301
|
|
|
|
pm_1_0:
|
|
|
|
name: "PM1.0"
|
|
|
|
pm_2_5:
|
|
|
|
name: "PM2.5"
|
|
|
|
pm_10_0:
|
|
|
|
name: "PM10.0"
|
2020-06-12 04:14:54 +02:00
|
|
|
aqi:
|
|
|
|
name: "AQI"
|
|
|
|
calculation_type: "CAQI"
|
2018-08-26 11:26:14 +02:00
|
|
|
|
|
|
|
esp32_touch:
|
|
|
|
setup_mode: False
|
|
|
|
iir_filter: 10ms
|
|
|
|
sleep_duration: 27ms
|
|
|
|
measurement_duration: 8ms
|
|
|
|
low_voltage_reference: 0.5V
|
|
|
|
high_voltage_reference: 2.7V
|
|
|
|
voltage_attenuation: 1.5V
|
|
|
|
|
|
|
|
binary_sensor:
|
|
|
|
- platform: gpio
|
|
|
|
pin: GPIO9
|
|
|
|
name: "Living Room Window"
|
|
|
|
device_class: window
|
|
|
|
filters:
|
|
|
|
- invert:
|
|
|
|
- delayed_on: 40ms
|
|
|
|
- delayed_off: 40ms
|
|
|
|
on_press:
|
|
|
|
then:
|
|
|
|
- lambda: >-
|
|
|
|
ESP_LOGD("main", "Pressed");
|
|
|
|
on_release:
|
|
|
|
then:
|
|
|
|
- lambda: >-
|
|
|
|
ESP_LOGD("main", "Released");
|
|
|
|
on_click:
|
|
|
|
- min_length: 50ms
|
|
|
|
max_length: 350ms
|
|
|
|
then:
|
|
|
|
- lambda: >-
|
|
|
|
ESP_LOGD("main", "Clicked");
|
|
|
|
- then:
|
|
|
|
- lambda: >-
|
|
|
|
ESP_LOGD("main", "Clicked");
|
|
|
|
on_double_click:
|
|
|
|
- min_length: 50ms
|
|
|
|
max_length: 350ms
|
|
|
|
then:
|
|
|
|
- lambda: >-
|
|
|
|
ESP_LOGD("main", "Double Clicked");
|
|
|
|
- then:
|
|
|
|
- lambda: >-
|
|
|
|
ESP_LOGD("main", "Double Clicked");
|
2018-11-09 20:18:04 +01:00
|
|
|
on_multi_click:
|
|
|
|
- timing:
|
|
|
|
- ON for at most 1s
|
|
|
|
- OFF for at most 1s
|
|
|
|
- ON for at most 1s
|
|
|
|
- OFF for at least 0.2s
|
|
|
|
then:
|
|
|
|
- logger.log:
|
|
|
|
format: "Multi Clicked TWO"
|
|
|
|
level: warn
|
|
|
|
- timing:
|
|
|
|
- OFF for 1s to 2s
|
|
|
|
- ON for 1s to 2s
|
|
|
|
- OFF for at least 0.5s
|
|
|
|
then:
|
|
|
|
- logger.log:
|
|
|
|
format: "Multi Clicked LONG SINGLE"
|
|
|
|
level: warn
|
|
|
|
- timing:
|
|
|
|
- ON for at most 1s
|
|
|
|
- OFF for at least 0.5s
|
|
|
|
then:
|
|
|
|
- logger.log:
|
|
|
|
format: "Multi Clicked SINGLE"
|
|
|
|
level: warn
|
2018-08-26 11:26:14 +02:00
|
|
|
id: binary_sensor1
|
2018-12-02 13:16:02 +01:00
|
|
|
- platform: gpio
|
|
|
|
pin:
|
|
|
|
number: GPIO9
|
|
|
|
mode: INPUT_PULLUP
|
|
|
|
name: "Living Room Window 2"
|
2018-08-26 11:26:14 +02:00
|
|
|
- platform: status
|
|
|
|
name: "Living Room Status"
|
|
|
|
- platform: esp32_touch
|
|
|
|
name: "ESP32 Touch Pad GPIO27"
|
|
|
|
pin: GPIO27
|
|
|
|
threshold: 1000
|
2019-06-16 19:14:13 +02:00
|
|
|
id: btn_left
|
2018-08-26 11:26:14 +02:00
|
|
|
- platform: nextion
|
|
|
|
page_id: 0
|
|
|
|
component_id: 2
|
|
|
|
name: "Nextion Component 2 Touch"
|
|
|
|
- platform: template
|
|
|
|
name: "Garage Door Open"
|
2019-02-10 23:35:07 +01:00
|
|
|
id: garage_door
|
|
|
|
lambda: |-
|
2018-10-20 15:16:58 +02:00
|
|
|
if (isnan(id(my_sensor).state)) {
|
2018-08-26 11:26:14 +02:00
|
|
|
// isnan checks if the ultrasonic sensor echo
|
|
|
|
// has timed out, resulting in a NaN (not a number) state
|
|
|
|
// in that case, return {} to indicate that we don't know.
|
|
|
|
return {};
|
2018-10-20 15:16:58 +02:00
|
|
|
} else if (id(my_sensor).state > 30) {
|
2018-08-26 11:26:14 +02:00
|
|
|
// Garage Door is open.
|
|
|
|
return true;
|
|
|
|
} else {
|
|
|
|
// Garage Door is closed.
|
|
|
|
return false;
|
|
|
|
}
|
2019-02-10 23:35:07 +01:00
|
|
|
on_press:
|
|
|
|
- binary_sensor.template.publish:
|
|
|
|
id: garage_door
|
|
|
|
state: OFF
|
2019-10-18 11:22:08 +02:00
|
|
|
- output.ledc.set_frequency:
|
|
|
|
id: gpio_19
|
|
|
|
frequency: 500.0Hz
|
|
|
|
- output.ledc.set_frequency:
|
|
|
|
id: gpio_19
|
|
|
|
frequency: !lambda 'return 500.0;'
|
2018-08-26 11:26:14 +02:00
|
|
|
- platform: pn532
|
|
|
|
uid: 74-10-37-94
|
|
|
|
name: "PN532 NFC Tag"
|
|
|
|
- platform: rdm6300
|
|
|
|
uid: 7616525
|
|
|
|
name: "RDM6300 NFC Tag"
|
|
|
|
- platform: gpio
|
|
|
|
name: "PCF binary sensor"
|
|
|
|
pin:
|
|
|
|
pcf8574: pcf8574_hub
|
|
|
|
number: 1
|
|
|
|
mode: INPUT
|
|
|
|
inverted: True
|
2019-03-03 16:51:55 +01:00
|
|
|
- platform: gpio
|
2019-10-17 16:18:41 +02:00
|
|
|
name: "MCP21 binary sensor"
|
2019-03-03 16:51:55 +01:00
|
|
|
pin:
|
|
|
|
mcp23017: mcp23017_hub
|
|
|
|
number: 1
|
|
|
|
mode: INPUT
|
|
|
|
inverted: True
|
2019-10-17 16:18:41 +02:00
|
|
|
- platform: gpio
|
|
|
|
name: "MCP22 binary sensor"
|
|
|
|
pin:
|
|
|
|
mcp23008: mcp23008_hub
|
|
|
|
number: 7
|
|
|
|
mode: INPUT_PULLUP
|
|
|
|
inverted: False
|
2020-04-12 21:07:10 +02:00
|
|
|
- platform: gpio
|
|
|
|
name: "MCP23 binary sensor"
|
|
|
|
pin:
|
|
|
|
mcp23016: mcp23016_hub
|
|
|
|
number: 7
|
|
|
|
mode: INPUT
|
|
|
|
inverted: False
|
2019-10-17 16:18:41 +02:00
|
|
|
|
2019-06-14 12:53:27 +02:00
|
|
|
- platform: remote_receiver
|
|
|
|
name: "Raw Remote Receiver Test"
|
|
|
|
raw:
|
|
|
|
code: [5685, -4252, 1711, -2265, 1712, -2265, 1711, -2264, 1712, -2266,
|
|
|
|
3700, -2263, 1712, -4254, 1711, -4249, 1715, -2266, 1710, -2267,
|
|
|
|
1709, -2265, 3704, -4250, 1712, -4254, 3700, -2260, 1714, -2265,
|
|
|
|
1712, -2262, 1714, -2267, 1709]
|
2019-10-12 17:03:01 +02:00
|
|
|
- platform: as3935
|
2019-10-12 15:03:35 +02:00
|
|
|
name: "Storm Alert"
|
2018-08-26 11:26:14 +02:00
|
|
|
|
|
|
|
pca9685:
|
|
|
|
frequency: 500
|
|
|
|
address: 0x0
|
|
|
|
|
2019-10-14 11:30:41 +02:00
|
|
|
tlc59208f:
|
|
|
|
- address: 0x20
|
|
|
|
id: tlc59208f_1
|
|
|
|
- address: 0x22
|
|
|
|
id: tlc59208f_2
|
|
|
|
- address: 0x24
|
|
|
|
id: tlc59208f_3
|
|
|
|
|
2018-11-13 16:51:30 +01:00
|
|
|
my9231:
|
|
|
|
data_pin: GPIO12
|
|
|
|
clock_pin: GPIO14
|
|
|
|
num_channels: 6
|
|
|
|
num_chips: 2
|
|
|
|
bit_depth: 16
|
|
|
|
|
2018-08-26 11:26:14 +02:00
|
|
|
output:
|
|
|
|
- platform: gpio
|
|
|
|
pin: GPIO26
|
|
|
|
id: gpio_26
|
|
|
|
power_supply: atx_power_supply
|
|
|
|
inverted: False
|
|
|
|
- platform: ledc
|
|
|
|
pin: 19
|
|
|
|
id: gpio_19
|
|
|
|
frequency: 1500Hz
|
|
|
|
channel: 14
|
|
|
|
max_power: 0.5
|
|
|
|
- platform: pca9685
|
|
|
|
id: pca_0
|
|
|
|
channel: 0
|
|
|
|
- platform: pca9685
|
|
|
|
id: pca_1
|
|
|
|
channel: 1
|
|
|
|
- platform: pca9685
|
|
|
|
id: pca_2
|
|
|
|
channel: 2
|
|
|
|
- platform: pca9685
|
|
|
|
id: pca_3
|
|
|
|
channel: 3
|
|
|
|
- platform: pca9685
|
|
|
|
id: pca_4
|
|
|
|
channel: 4
|
|
|
|
- platform: pca9685
|
|
|
|
id: pca_5
|
|
|
|
channel: 5
|
|
|
|
- platform: pca9685
|
|
|
|
id: pca_6
|
|
|
|
channel: 6
|
|
|
|
- platform: pca9685
|
|
|
|
id: pca_7
|
|
|
|
channel: 7
|
2019-10-14 11:30:41 +02:00
|
|
|
- platform: tlc59208f
|
|
|
|
id: tlc_0
|
|
|
|
channel: 0
|
|
|
|
tlc59208f_id: 'tlc59208f_1'
|
|
|
|
- platform: tlc59208f
|
|
|
|
id: tlc_1
|
|
|
|
channel: 1
|
|
|
|
tlc59208f_id: 'tlc59208f_1'
|
|
|
|
- platform: tlc59208f
|
|
|
|
id: tlc_2
|
|
|
|
channel: 2
|
|
|
|
tlc59208f_id: 'tlc59208f_1'
|
|
|
|
- platform: tlc59208f
|
|
|
|
id: tlc_3
|
|
|
|
channel: 0
|
|
|
|
tlc59208f_id: 'tlc59208f_2'
|
|
|
|
- platform: tlc59208f
|
|
|
|
id: tlc_4
|
|
|
|
channel: 1
|
|
|
|
tlc59208f_id: 'tlc59208f_2'
|
|
|
|
- platform: tlc59208f
|
|
|
|
id: tlc_5
|
|
|
|
channel: 2
|
|
|
|
tlc59208f_id: 'tlc59208f_2'
|
|
|
|
- platform: tlc59208f
|
|
|
|
id: tlc_6
|
|
|
|
channel: 0
|
|
|
|
tlc59208f_id: 'tlc59208f_3'
|
|
|
|
- platform: tlc59208f
|
|
|
|
id: tlc_7
|
|
|
|
channel: 1
|
|
|
|
tlc59208f_id: 'tlc59208f_3'
|
|
|
|
- platform: tlc59208f
|
|
|
|
id: tlc_8
|
|
|
|
channel: 2
|
|
|
|
tlc59208f_id: 'tlc59208f_3'
|
2018-08-26 11:26:14 +02:00
|
|
|
- platform: gpio
|
|
|
|
id: id2
|
|
|
|
pin:
|
|
|
|
pcf8574: pcf8574_hub
|
|
|
|
number: 0
|
|
|
|
mode: OUTPUT
|
|
|
|
inverted: False
|
2019-03-03 16:51:55 +01:00
|
|
|
- platform: gpio
|
|
|
|
id: id22
|
|
|
|
pin:
|
|
|
|
mcp23017: mcp23017_hub
|
|
|
|
number: 0
|
|
|
|
mode: OUTPUT
|
|
|
|
inverted: False
|
2019-10-17 16:18:41 +02:00
|
|
|
- platform: gpio
|
|
|
|
id: id23
|
|
|
|
pin:
|
|
|
|
mcp23008: mcp23008_hub
|
|
|
|
number: 0
|
|
|
|
mode: OUTPUT
|
|
|
|
inverted: False
|
2020-04-12 21:07:10 +02:00
|
|
|
- platform: gpio
|
|
|
|
id: id25
|
|
|
|
pin:
|
|
|
|
mcp23016: mcp23016_hub
|
|
|
|
number: 0
|
|
|
|
mode: OUTPUT
|
|
|
|
inverted: False
|
2018-11-13 16:51:30 +01:00
|
|
|
- platform: my9231
|
|
|
|
id: my_0
|
|
|
|
channel: 0
|
|
|
|
- platform: my9231
|
|
|
|
id: my_1
|
|
|
|
channel: 1
|
|
|
|
- platform: my9231
|
|
|
|
id: my_2
|
|
|
|
channel: 2
|
|
|
|
- platform: my9231
|
|
|
|
id: my_3
|
|
|
|
channel: 3
|
|
|
|
- platform: my9231
|
|
|
|
id: my_4
|
|
|
|
channel: 4
|
|
|
|
- platform: my9231
|
|
|
|
id: my_5
|
|
|
|
channel: 5
|
2019-12-07 17:15:04 +01:00
|
|
|
- platform: slow_pwm
|
|
|
|
id: id24
|
|
|
|
pin: GPIO26
|
|
|
|
period: 15s
|
Add AC Dimmer support (#880)
* Add AC Dimmer support
Fixes https://github.com/esphome/feature-requests/issues/278
* fixes
basically missed the output pin setup and in the switching was switching true true true :P
* Format
* Enable ESP32
* Also setup ZC pin
* Support multiple dimmers sharing ZC pin
* Fix ESP32
* Lint
* off gate on zc detect
* tests pins validation
* Climate Mitsubishi (#725)
* add climate
* Mitsubishi updates
* refactor mitsubishi to use climate_ir
* lint
* fix: only decode when not str already (#923)
Signed-off-by: wilmardo <info@wilmardenouden.nl>
* fix climate-ir bad merge (#935)
* fix climate-ir bad merge
* add mitshubishi test
* http_request: fix memory allocation (#916)
* http_request version fix (#917)
* PID Climate (#885)
* PID Climate
* Add sensor for debugging PID output value
* Add dump_config, use percent
* Add more observable values
* Update
* Set target temperature
* Add autotuner
* Add algorithm explanation
* Add autotuner action, update controller
* Add simulator
* Format
* Change defaults
* Updates
* Use b''.decode() instead of str(b'') (#941)
Handling of request arguments in WizardRequestHandler is not decoding
bytes and rather just doing a str conversion resulting in a value of
"b''" being supplied to the wizard code.
* Adding the espressif 2.6.3 (#944)
* extract and use current version of python 3 (#938)
* Inverted output in neopixelbus (#895)
* Added inverted output
* Added support for inverted output in neopixelbus
* Update esphome/components/neopixelbus/light.py
Co-Authored-By: Otto Winter <otto@otto-winter.com>
* Update light.py
* corrected lint errors
Co-authored-by: Otto Winter <otto@otto-winter.com>
* Added degree symbol for MAX7219 7-segment display. (#764)
The ascii char to use it is "~" (0x7E).
Disclaimer: I didn't test this yet.
* Fix dump/tx of 64 bit codes (#940)
* Fix dump/tx of 64 bit codes
* fixed source format
* Update hdc1080.cpp (#887)
* Update hdc1080.cpp
increase waittime, to fix reading errors
* Fix: Update HDC1080.cpp
i fixed the my change on write_bytes
* add tcl112 support for dry, fan and swing (#939)
* Fix SGP30 incorrect baseline reading/writing (#936)
* Split the SGP30 baseline into 2 values
- According to the SGP30 datasheet, each eCO2 and TVOC baseline is a 2-byte value (MSB first)
- The current implementation ignores the MSB of each of the value
- Update the schema to allow 2 different baseline values (optional, but both need to be specified for the baseline to apply)
* Make both eCO2 and TVOC required if the optional baseline is defined
* Make dump_config() looks better
* Add register_*_effect to allow registering custom effects (#947)
This allows to register custom effect from user components,
allowing for bigger composability of source.
* Bugfix/normalize core comparisons (and Python 3 update fixes) (#952)
* Correct implementation of comparisons to be Pythonic
If a comparison cannot be made return NotImplemented, this allows the
Python interpreter to try other comparisons (eg __ieq__) and either
return False (in the case of __eq__) or raise a TypeError
exception (eg in the case of __lt__).
* Python 3 updates
* Add a more helpful message in exception if platform is not defined
* Added a basic pre-commit check
* Add transmit pioneer (#922)
* Added pioneer_protocol to support transmit_pioneer
* Display tm1637 (#946)
* add TM1637 support
* Support a further variant of Xiaomi CGG1 (#930)
* Daikin climate ir component (#964)
* Daikin ARC43XXX IR remote controller support
* Format and lint fixes
* Check temperature values against allowed min/max
* fix tm1637 missing __init__.py (#975)
* Add AC Dimmer support
Fixes https://github.com/esphome/feature-requests/issues/278
* fixes
basically missed the output pin setup and in the switching was switching true true true :P
* Format
* Enable ESP32
* Also setup ZC pin
* Support multiple dimmers sharing ZC pin
* Fix ESP32
* Lint
* off gate on zc detect
* tests pins validation
* fix esp8266 many dimmers, changed timing
* Increased value resolution, added min power
* use min_power from base class
* fix min_power. add init with half cycle
* added method for trailing pulse, trailing and leading
* fix method name. try filter invalid falling pulse
* renamed to ac_dimmer
* fix ESP32 not configuring zero cross twice
Co-authored-by: Guillermo Ruffino <glm.net@gmail.com>
Co-authored-by: Wilmar den Ouden <wilmardo@users.noreply.github.com>
Co-authored-by: Nikolay Vasilchuk <Anonym.tsk@gmail.com>
Co-authored-by: Tim Savage <tim@savage.company>
Co-authored-by: Vc <37367415+Valcob@users.noreply.github.com>
Co-authored-by: gitolicious <mrjchn@gmail.com>
Co-authored-by: voibit <krestean@gmail.com>
Co-authored-by: Luar Roji <cyberplant@users.noreply.github.com>
Co-authored-by: András Bíró <1202136+andrasbiro@users.noreply.github.com>
Co-authored-by: dmkif <dmkif@users.noreply.github.com>
Co-authored-by: Panuruj Khambanonda (PK) <pk@panurujk.com>
Co-authored-by: Kamil Trzciński <ayufan@ayufan.eu>
Co-authored-by: Keith Burzinski <kbx81x@gmail.com>
Co-authored-by: Mario <4376789+mario-tux@users.noreply.github.com>
Co-authored-by: Héctor Giménez <hector.fwbz@gmail.com>
2020-04-10 05:07:18 +02:00
|
|
|
- platform: ac_dimmer
|
|
|
|
id: dimmer1
|
|
|
|
gate_pin: GPIO5
|
|
|
|
zero_cross_pin: GPIO26
|
2020-05-24 05:06:55 +02:00
|
|
|
- platform: esp32_dac
|
|
|
|
pin: GPIO25
|
|
|
|
id: dac_output
|
2018-08-26 11:26:14 +02:00
|
|
|
|
2020-06-13 01:17:13 +02:00
|
|
|
e131:
|
|
|
|
|
2018-08-26 11:26:14 +02:00
|
|
|
light:
|
|
|
|
- platform: binary
|
|
|
|
name: "Desk Lamp"
|
|
|
|
output: gpio_26
|
|
|
|
effects:
|
|
|
|
- strobe:
|
|
|
|
- strobe:
|
|
|
|
name: "My Strobe"
|
|
|
|
colors:
|
|
|
|
- state: True
|
|
|
|
duration: 250ms
|
|
|
|
- state: False
|
|
|
|
duration: 250ms
|
2020-04-25 20:39:34 +02:00
|
|
|
on_turn_on:
|
|
|
|
- switch.template.publish:
|
|
|
|
id: livingroom_lights
|
|
|
|
state: yes
|
|
|
|
on_turn_off:
|
|
|
|
- switch.template.publish:
|
|
|
|
id: livingroom_lights
|
|
|
|
state: yes
|
2018-08-26 11:26:14 +02:00
|
|
|
- platform: monochromatic
|
|
|
|
name: "Kitchen Lights"
|
|
|
|
id: kitchen
|
|
|
|
output: gpio_19
|
|
|
|
gamma_correct: 2.8
|
|
|
|
default_transition_length: 2s
|
|
|
|
effects:
|
|
|
|
- strobe:
|
|
|
|
- flicker:
|
|
|
|
- flicker:
|
|
|
|
name: "My Flicker"
|
|
|
|
alpha: 98%
|
|
|
|
intensity: 1.5%
|
|
|
|
- lambda:
|
|
|
|
name: My Custom Effect
|
|
|
|
update_interval: 1s
|
|
|
|
lambda: |-
|
|
|
|
static int state = 0;
|
|
|
|
state += 1;
|
|
|
|
if (state == 4)
|
|
|
|
state = 0;
|
|
|
|
- platform: rgb
|
|
|
|
name: "Living Room Lights"
|
2018-10-20 12:41:00 +02:00
|
|
|
id: living_room_lights
|
2018-08-26 11:26:14 +02:00
|
|
|
red: pca_0
|
|
|
|
green: pca_1
|
|
|
|
blue: pca_2
|
|
|
|
- platform: rgbw
|
|
|
|
name: "Living Room Lights 2"
|
|
|
|
red: pca_3
|
|
|
|
green: pca_4
|
|
|
|
blue: pca_5
|
|
|
|
white: pca_6
|
2020-07-10 01:29:44 +02:00
|
|
|
color_interlock: true
|
2018-08-26 11:26:14 +02:00
|
|
|
- platform: rgbww
|
|
|
|
name: "Living Room Lights 2"
|
|
|
|
red: pca_3
|
|
|
|
green: pca_4
|
|
|
|
blue: pca_5
|
|
|
|
cold_white: pca_6
|
|
|
|
warm_white: pca_6
|
|
|
|
cold_white_color_temperature: 153 mireds
|
|
|
|
warm_white_color_temperature: 500 mireds
|
2020-07-10 01:29:44 +02:00
|
|
|
color_interlock: true
|
2018-08-26 11:26:14 +02:00
|
|
|
- platform: cwww
|
|
|
|
name: "Living Room Lights 2"
|
|
|
|
cold_white: pca_6
|
|
|
|
warm_white: pca_6
|
|
|
|
cold_white_color_temperature: 153 mireds
|
|
|
|
warm_white_color_temperature: 500 mireds
|
2020-04-08 14:31:23 +02:00
|
|
|
constant_brightness: true
|
2018-08-26 11:26:14 +02:00
|
|
|
- platform: fastled_clockless
|
2019-02-16 16:47:23 +01:00
|
|
|
id: addr1
|
2018-08-26 11:26:14 +02:00
|
|
|
chipset: WS2811
|
|
|
|
pin: GPIO23
|
|
|
|
num_leds: 60
|
|
|
|
rgb_order: BRG
|
|
|
|
max_refresh_rate: 20ms
|
|
|
|
power_supply: atx_power_supply
|
2018-10-20 13:14:02 +02:00
|
|
|
color_correct: [75%, 100%, 50%]
|
2018-08-26 11:26:14 +02:00
|
|
|
name: "FastLED WS2811 Light"
|
|
|
|
effects:
|
2019-01-02 13:04:27 +01:00
|
|
|
- addressable_color_wipe:
|
|
|
|
- addressable_color_wipe:
|
2018-08-26 11:26:14 +02:00
|
|
|
name: Color Wipe Effect With Custom Values
|
|
|
|
colors:
|
|
|
|
- red: 100%
|
|
|
|
green: 100%
|
|
|
|
blue: 100%
|
|
|
|
num_leds: 1
|
|
|
|
- red: 0%
|
|
|
|
green: 0%
|
|
|
|
blue: 0%
|
|
|
|
num_leds: 1
|
|
|
|
add_led_interval: 100ms
|
|
|
|
reverse: False
|
2019-01-02 13:04:27 +01:00
|
|
|
- addressable_scan:
|
|
|
|
- addressable_scan:
|
2018-08-26 11:26:14 +02:00
|
|
|
name: Scan Effect With Custom Values
|
|
|
|
move_interval: 100ms
|
2019-01-02 13:04:27 +01:00
|
|
|
- addressable_twinkle:
|
|
|
|
- addressable_twinkle:
|
2018-08-26 11:26:14 +02:00
|
|
|
name: Twinkle Effect With Custom Values
|
|
|
|
twinkle_probability: 5%
|
|
|
|
progress_interval: 4ms
|
2019-01-02 13:04:27 +01:00
|
|
|
- addressable_random_twinkle:
|
|
|
|
- addressable_random_twinkle:
|
2018-08-26 11:26:14 +02:00
|
|
|
name: Random Twinkle Effect With Custom Values
|
|
|
|
twinkle_probability: 5%
|
|
|
|
progress_interval: 32ms
|
2019-01-02 13:04:27 +01:00
|
|
|
- addressable_fireworks:
|
|
|
|
- addressable_fireworks:
|
2018-08-26 11:26:14 +02:00
|
|
|
name: Fireworks Effect With Custom Values
|
|
|
|
update_interval: 32ms
|
|
|
|
spark_probability: 10%
|
|
|
|
use_random_color: false
|
|
|
|
fade_out_rate: 120
|
2019-01-02 13:04:27 +01:00
|
|
|
- addressable_flicker:
|
|
|
|
- addressable_flicker:
|
2018-08-26 11:26:14 +02:00
|
|
|
name: Flicker Effect With Custom Values
|
|
|
|
update_interval: 16ms
|
|
|
|
intensity: 5%
|
2019-06-19 11:33:14 +02:00
|
|
|
- addressable_lambda:
|
|
|
|
name: "Test For Custom Lambda Effect"
|
|
|
|
lambda: |-
|
2020-04-29 00:24:06 +02:00
|
|
|
if (initial_run) {
|
|
|
|
it[0] = current_color;
|
|
|
|
}
|
2020-06-28 00:08:15 +02:00
|
|
|
|
2020-06-13 01:50:09 +02:00
|
|
|
- wled:
|
|
|
|
port: 11111
|
2020-06-28 00:08:15 +02:00
|
|
|
|
2020-06-13 01:34:38 +02:00
|
|
|
- adalight:
|
|
|
|
uart_id: adalight_uart
|
2020-06-28 00:08:15 +02:00
|
|
|
|
2019-05-27 19:35:36 +02:00
|
|
|
- automation:
|
|
|
|
name: Custom Effect
|
|
|
|
sequence:
|
|
|
|
- light.addressable_set:
|
|
|
|
id: addr1
|
|
|
|
red: 100%
|
|
|
|
green: 100%
|
|
|
|
blue: 0%
|
|
|
|
- delay: 100ms
|
|
|
|
- light.addressable_set:
|
|
|
|
id: addr1
|
|
|
|
red: 0%
|
|
|
|
green: 100%
|
|
|
|
blue: 0%
|
2020-06-13 01:17:13 +02:00
|
|
|
- e131:
|
|
|
|
universe: 1
|
2018-08-26 11:26:14 +02:00
|
|
|
- platform: fastled_spi
|
2019-02-16 16:47:23 +01:00
|
|
|
id: addr2
|
2018-08-26 11:26:14 +02:00
|
|
|
chipset: WS2801
|
|
|
|
data_pin: GPIO23
|
|
|
|
clock_pin: GPIO22
|
|
|
|
num_leds: 60
|
|
|
|
rgb_order: BRG
|
|
|
|
name: "FastLED SPI Light"
|
2019-01-06 16:59:11 +01:00
|
|
|
- platform: neopixelbus
|
2019-02-16 16:47:23 +01:00
|
|
|
id: addr3
|
2019-01-06 16:59:11 +01:00
|
|
|
name: "Neopixelbus Light"
|
|
|
|
gamma_correct: 2.8
|
|
|
|
color_correct: [0.0, 0.0, 0.0, 0.0]
|
|
|
|
default_transition_length: 10s
|
|
|
|
power_supply: atx_power_supply
|
|
|
|
effects:
|
|
|
|
- addressable_flicker:
|
|
|
|
name: Flicker Effect With Custom Values
|
|
|
|
update_interval: 16ms
|
|
|
|
intensity: 5%
|
|
|
|
type: GRBW
|
|
|
|
variant: SK6812
|
|
|
|
method: ESP32_I2S_0
|
|
|
|
num_leds: 60
|
|
|
|
pin: GPIO23
|
2019-02-16 16:47:23 +01:00
|
|
|
- platform: partition
|
|
|
|
name: "Partition Light"
|
|
|
|
segments:
|
|
|
|
- id: addr1
|
|
|
|
from: 0
|
|
|
|
to: 0
|
|
|
|
- id: addr2
|
|
|
|
from: 1
|
|
|
|
to: 10
|
|
|
|
- id: addr2
|
|
|
|
from: 20
|
|
|
|
to: 25
|
2018-08-26 11:26:14 +02:00
|
|
|
|
|
|
|
remote_transmitter:
|
|
|
|
- pin: 32
|
2019-04-17 12:06:00 +02:00
|
|
|
carrier_duty_percent: 100%
|
2018-08-26 11:26:14 +02:00
|
|
|
|
2019-05-27 20:17:12 +02:00
|
|
|
climate:
|
|
|
|
- platform: tcl112
|
|
|
|
name: TCL112 Climate With Sensor
|
|
|
|
supports_heat: True
|
|
|
|
supports_cool: True
|
|
|
|
sensor: my_sensor
|
|
|
|
- platform: tcl112
|
|
|
|
name: TCL112 Climate
|
2019-05-27 21:09:16 +02:00
|
|
|
- platform: coolix
|
|
|
|
name: Coolix Climate With Sensor
|
|
|
|
supports_heat: True
|
|
|
|
supports_cool: True
|
|
|
|
sensor: my_sensor
|
|
|
|
- platform: coolix
|
|
|
|
name: Coolix Climate
|
2019-12-03 15:50:06 +01:00
|
|
|
- platform: fujitsu_general
|
|
|
|
name: Fujitsu General Climate
|
2020-01-22 23:38:04 +01:00
|
|
|
- platform: daikin
|
|
|
|
name: Daikin Climate
|
2019-12-03 15:50:06 +01:00
|
|
|
- platform: yashima
|
|
|
|
name: Yashima Climate
|
2019-12-31 04:20:11 +01:00
|
|
|
- platform: mitsubishi
|
|
|
|
name: Mitsubishi
|
2020-04-22 03:53:14 +02:00
|
|
|
- platform: whirlpool
|
|
|
|
name: Whirlpool Climate
|
2020-06-22 03:29:43 +02:00
|
|
|
- platform: climate_ir_lg
|
|
|
|
name: LG Climate
|
2020-07-13 14:23:53 +02:00
|
|
|
- platform: toshiba
|
|
|
|
name: Toshiba Climate
|
2019-05-27 20:17:12 +02:00
|
|
|
|
2018-08-26 11:26:14 +02:00
|
|
|
switch:
|
|
|
|
- platform: gpio
|
|
|
|
pin: GPIO25
|
|
|
|
name: "Living Room Dehumidifier"
|
|
|
|
icon: "mdi:restart"
|
|
|
|
inverted: True
|
|
|
|
command_topic: custom_command_topic
|
2019-01-06 11:43:14 +01:00
|
|
|
restore_mode: ALWAYS_OFF
|
2019-04-17 12:06:00 +02:00
|
|
|
- platform: template
|
|
|
|
name: JVC Off
|
2018-08-26 11:26:14 +02:00
|
|
|
id: living_room_lights_on
|
2019-04-17 12:06:00 +02:00
|
|
|
turn_on_action:
|
|
|
|
remote_transmitter.transmit_jvc:
|
|
|
|
data: 0x10EF
|
|
|
|
- platform: template
|
|
|
|
name: NEC
|
2018-08-26 11:26:14 +02:00
|
|
|
id: living_room_lights_off
|
2019-04-17 12:06:00 +02:00
|
|
|
turn_on_action:
|
|
|
|
remote_transmitter.transmit_nec:
|
|
|
|
address: 0x4242
|
|
|
|
command: 0x8484
|
|
|
|
- platform: template
|
|
|
|
name: LG
|
|
|
|
turn_on_action:
|
|
|
|
remote_transmitter.transmit_lg:
|
|
|
|
data: 4294967295
|
|
|
|
nbits: 28
|
|
|
|
- platform: template
|
|
|
|
name: Samsung
|
|
|
|
turn_on_action:
|
|
|
|
remote_transmitter.transmit_samsung:
|
|
|
|
data: 0xABCDEF
|
|
|
|
- platform: template
|
|
|
|
name: Sony
|
|
|
|
turn_on_action:
|
|
|
|
remote_transmitter.transmit_sony:
|
|
|
|
data: 0xABCDEF
|
|
|
|
nbits: 12
|
|
|
|
- platform: template
|
|
|
|
name: Panasonic
|
|
|
|
turn_on_action:
|
|
|
|
remote_transmitter.transmit_panasonic:
|
|
|
|
address: 0x4004
|
|
|
|
command: 0x1000BCD
|
2020-01-13 23:39:17 +01:00
|
|
|
- platform: template
|
|
|
|
name: Pioneer
|
|
|
|
turn_on_action:
|
|
|
|
- remote_transmitter.transmit_pioneer:
|
|
|
|
rc_code_1: 0xA556
|
|
|
|
rc_code_2: 0xA506
|
|
|
|
repeat:
|
|
|
|
times: 2
|
2019-04-17 12:06:00 +02:00
|
|
|
- platform: template
|
|
|
|
name: RC Switch Raw
|
|
|
|
turn_on_action:
|
|
|
|
remote_transmitter.transmit_rc_switch_raw:
|
2019-06-26 21:47:34 +02:00
|
|
|
code: '00101001100111110101xxxx'
|
2019-04-17 12:06:00 +02:00
|
|
|
protocol: 1
|
|
|
|
- platform: template
|
|
|
|
name: RC Switch Type A
|
|
|
|
turn_on_action:
|
|
|
|
remote_transmitter.transmit_rc_switch_type_a:
|
|
|
|
group: '11001'
|
|
|
|
device: '01000'
|
|
|
|
state: True
|
|
|
|
protocol:
|
|
|
|
pulse_length: 175
|
|
|
|
sync: [1, 31]
|
|
|
|
zero: [1, 3]
|
|
|
|
one: [3, 1]
|
|
|
|
inverted: False
|
|
|
|
- platform: template
|
|
|
|
name: RC Switch Type B
|
|
|
|
turn_on_action:
|
|
|
|
remote_transmitter.transmit_rc_switch_type_b:
|
|
|
|
address: 4
|
|
|
|
channel: 2
|
|
|
|
state: True
|
|
|
|
- platform: template
|
|
|
|
name: RC Switch Type C
|
|
|
|
turn_on_action:
|
|
|
|
remote_transmitter.transmit_rc_switch_type_c:
|
|
|
|
family: 'a'
|
|
|
|
group: 1
|
|
|
|
device: 2
|
|
|
|
state: True
|
|
|
|
- platform: template
|
|
|
|
name: RC Switch Type D
|
|
|
|
turn_on_action:
|
|
|
|
remote_transmitter.transmit_rc_switch_type_d:
|
|
|
|
group: 'a'
|
|
|
|
device: 2
|
|
|
|
state: True
|
|
|
|
- platform: template
|
|
|
|
name: RC5
|
|
|
|
turn_on_action:
|
|
|
|
remote_transmitter.transmit_rc5:
|
|
|
|
address: 0x00
|
|
|
|
command: 0x0B
|
|
|
|
- platform: template
|
|
|
|
name: RC5
|
|
|
|
turn_on_action:
|
|
|
|
remote_transmitter.transmit_raw:
|
|
|
|
code: [1000, -1000]
|
2018-08-26 11:26:14 +02:00
|
|
|
- platform: template
|
|
|
|
name: Living Room Lights
|
2019-02-10 23:35:07 +01:00
|
|
|
id: livingroom_lights
|
2018-08-26 11:26:14 +02:00
|
|
|
optimistic: True
|
2019-02-10 23:28:56 +01:00
|
|
|
assumed_state: yes
|
2018-08-26 11:26:14 +02:00
|
|
|
turn_on_action:
|
|
|
|
- switch.turn_on: living_room_lights_on
|
2018-10-26 22:57:03 +02:00
|
|
|
- output.set_level:
|
|
|
|
id: gpio_19
|
|
|
|
level: 50%
|
|
|
|
- output.set_level:
|
|
|
|
id: gpio_19
|
|
|
|
level: !lambda 'return 0.5;'
|
2020-05-24 05:06:55 +02:00
|
|
|
- output.set_level:
|
|
|
|
id: dac_output
|
|
|
|
level: 50%
|
|
|
|
- output.set_level:
|
|
|
|
id: dac_output
|
|
|
|
level: !lambda 'return 0.5;'
|
2018-08-26 11:26:14 +02:00
|
|
|
turn_off_action:
|
|
|
|
- switch.turn_on: living_room_lights_off
|
2018-11-09 20:05:50 +01:00
|
|
|
restore_state: False
|
2019-02-10 23:35:07 +01:00
|
|
|
on_turn_on:
|
|
|
|
- switch.template.publish:
|
|
|
|
id: livingroom_lights
|
|
|
|
state: yes
|
2018-08-26 11:26:14 +02:00
|
|
|
- platform: restart
|
|
|
|
name: "Living Room Restart"
|
|
|
|
- platform: shutdown
|
|
|
|
name: "Living Room Shutdown"
|
|
|
|
- platform: output
|
|
|
|
name: "Generic Output"
|
|
|
|
output: pca_6
|
|
|
|
- platform: template
|
|
|
|
name: "Template Switch"
|
|
|
|
id: my_switch
|
|
|
|
lambda: |-
|
2018-10-20 15:16:58 +02:00
|
|
|
if (id(binary_sensor1).state) {
|
2018-08-26 11:26:14 +02:00
|
|
|
return true;
|
|
|
|
} else {
|
|
|
|
return {};
|
|
|
|
}
|
|
|
|
id(my_switch).publish_state(false);
|
|
|
|
id(my_switch).publish_state(true);
|
2018-10-20 15:16:58 +02:00
|
|
|
if (id(my_switch).state) {
|
2018-08-26 11:26:14 +02:00
|
|
|
// Switch is ON, do something here
|
2018-10-20 15:16:58 +02:00
|
|
|
id(my_switch).turn_off();
|
|
|
|
id(my_switch).turn_on();
|
2018-08-26 11:26:14 +02:00
|
|
|
} else {
|
|
|
|
// Switch is OFF, do something else here
|
|
|
|
}
|
|
|
|
optimistic: true
|
2019-02-10 23:28:56 +01:00
|
|
|
assumed_state: no
|
2018-11-09 20:05:50 +01:00
|
|
|
restore_state: True
|
2019-02-10 23:35:07 +01:00
|
|
|
on_turn_off:
|
|
|
|
- switch.template.publish:
|
|
|
|
id: my_switch
|
|
|
|
state: !lambda 'return false;'
|
2018-08-26 11:26:14 +02:00
|
|
|
- platform: uart
|
|
|
|
name: "UART String Output"
|
|
|
|
data: 'DataToSend'
|
|
|
|
- platform: uart
|
|
|
|
name: "UART Bytes Output"
|
|
|
|
data: [0xDE, 0xAD, 0xBE, 0xEF]
|
2018-10-26 22:57:03 +02:00
|
|
|
- platform: template
|
2019-02-10 23:28:56 +01:00
|
|
|
assumed_state: yes
|
2018-10-26 22:57:03 +02:00
|
|
|
name: Stepper Switch
|
|
|
|
turn_on_action:
|
|
|
|
- stepper.set_target:
|
|
|
|
id: my_stepper
|
|
|
|
target: !lambda |-
|
|
|
|
static int32_t i = 0;
|
|
|
|
i += 1000;
|
|
|
|
if (i > 5000) {
|
|
|
|
i = -5000;
|
|
|
|
}
|
|
|
|
return i;
|
2019-02-22 17:43:30 +01:00
|
|
|
- stepper.report_position:
|
|
|
|
id: my_stepper
|
|
|
|
position: 0
|
2018-08-26 11:26:14 +02:00
|
|
|
|
2020-06-28 00:08:15 +02:00
|
|
|
- platform: gpio
|
|
|
|
name: "SN74HC595 Pin #0"
|
|
|
|
pin:
|
|
|
|
sn74hc595: sn74hc595_hub
|
|
|
|
# Use pin number 0
|
|
|
|
number: 0
|
|
|
|
inverted: False
|
|
|
|
|
2018-08-26 11:26:14 +02:00
|
|
|
fan:
|
|
|
|
- platform: binary
|
|
|
|
output: gpio_26
|
|
|
|
name: "Living Room Fan 1"
|
2020-06-14 21:54:31 +02:00
|
|
|
oscillation_output: gpio_19
|
|
|
|
direction_output: gpio_26
|
2018-08-26 11:26:14 +02:00
|
|
|
- platform: speed
|
|
|
|
output: pca_6
|
|
|
|
name: "Living Room Fan 2"
|
2020-06-14 21:54:31 +02:00
|
|
|
oscillation_output: gpio_19
|
|
|
|
direction_output: gpio_26
|
2018-08-26 11:26:14 +02:00
|
|
|
speed:
|
|
|
|
low: 0.45
|
|
|
|
medium: 0.75
|
|
|
|
high: 1.0
|
2020-07-15 11:45:54 +02:00
|
|
|
oscillation_state_topic: oscillation/state/topic
|
|
|
|
oscillation_command_topic: oscillation/command/topic
|
|
|
|
speed_state_topic: speed/state/topic
|
|
|
|
speed_command_topic: speed/command/topic
|
2018-08-26 11:26:14 +02:00
|
|
|
|
2019-02-17 00:35:23 +01:00
|
|
|
interval:
|
|
|
|
- interval: 10s
|
|
|
|
then:
|
|
|
|
- display.page.show: !lambda |-
|
|
|
|
if (true) return id(page1); else return id(page2);
|
2019-04-17 12:06:00 +02:00
|
|
|
- display.page.show_next: display1
|
|
|
|
- display.page.show_previous: display1
|
2019-06-16 19:14:13 +02:00
|
|
|
- interval: 2s
|
|
|
|
then:
|
|
|
|
- lambda: |-
|
|
|
|
static uint16_t btn_left_state = id(btn_left)->get_value();
|
|
|
|
|
|
|
|
ESP_LOGD("adaptive touch", "___ Touch Pad '%s' (T%u): val: %u state: %u tres:%u", id(btn_left)->get_name().c_str(), id(btn_left)->get_touch_pad(), id(btn_left)->get_value(), btn_left_state, id(btn_left)->get_threshold());
|
2019-12-03 15:50:06 +01:00
|
|
|
|
2019-06-16 19:14:13 +02:00
|
|
|
btn_left_state = ((uint32_t) id(btn_left)->get_value() + 63 * (uint32_t)btn_left_state) >> 6;
|
|
|
|
|
|
|
|
id(btn_left)->set_threshold(btn_left_state * 0.9);
|
2019-02-17 00:35:23 +01:00
|
|
|
|
2020-06-28 23:37:36 +02:00
|
|
|
color:
|
|
|
|
- id: kbx_red
|
|
|
|
red: 100%
|
|
|
|
green: 1%
|
|
|
|
blue: 2%
|
|
|
|
- id: kbx_blue
|
|
|
|
red: 0%
|
|
|
|
green: 1%
|
|
|
|
blue: 100%
|
|
|
|
|
2018-08-26 11:26:14 +02:00
|
|
|
display:
|
|
|
|
- platform: lcd_gpio
|
|
|
|
dimensions: 18x4
|
|
|
|
data_pins:
|
|
|
|
- GPIO19
|
|
|
|
- GPIO21
|
|
|
|
- GPIO22
|
2019-12-04 16:47:34 +01:00
|
|
|
- GPIO23
|
2018-08-26 11:26:14 +02:00
|
|
|
enable_pin: GPIO23
|
2019-12-04 16:47:34 +01:00
|
|
|
rs_pin: GPIO25
|
2018-08-26 11:26:14 +02:00
|
|
|
lambda: |-
|
|
|
|
it.print("Hello World!");
|
|
|
|
- platform: lcd_pcf8574
|
|
|
|
dimensions: 18x4
|
|
|
|
address: 0x3F
|
|
|
|
lambda: |-
|
|
|
|
it.print("Hello World!");
|
|
|
|
- platform: max7219
|
|
|
|
cs_pin: GPIO23
|
|
|
|
num_chips: 1
|
|
|
|
lambda: |-
|
|
|
|
it.print("01234567");
|
2020-01-13 23:44:55 +01:00
|
|
|
- platform: tm1637
|
|
|
|
clk_pin: GPIO23
|
|
|
|
dio_pin: GPIO25
|
|
|
|
intensity: 3
|
|
|
|
lambda: |-
|
|
|
|
it.print("1234");
|
2020-05-19 00:13:29 +02:00
|
|
|
- platform: tm1637
|
|
|
|
clk_pin:
|
|
|
|
mcp23017: mcp23017_hub
|
|
|
|
number: 1
|
|
|
|
dio_pin:
|
|
|
|
mcp23017: mcp23017_hub
|
|
|
|
number: 2
|
|
|
|
intensity: 3
|
|
|
|
lambda: |-
|
|
|
|
it.print("1234");
|
2018-08-26 11:26:14 +02:00
|
|
|
- platform: nextion
|
|
|
|
lambda: |-
|
|
|
|
it.set_component_value("gauge", 50);
|
|
|
|
it.set_component_text("textview", "Hello World!");
|
2020-04-04 23:23:23 +02:00
|
|
|
- platform: pcd8544
|
|
|
|
cs_pin: GPIO23
|
|
|
|
dc_pin: GPIO23
|
|
|
|
reset_pin: GPIO23
|
|
|
|
lambda: |-
|
|
|
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
2018-08-26 11:26:14 +02:00
|
|
|
- platform: ssd1306_i2c
|
2019-10-17 16:36:11 +02:00
|
|
|
model: "SSD1306_128X64"
|
2018-08-26 11:26:14 +02:00
|
|
|
reset_pin: GPIO23
|
|
|
|
address: 0x3C
|
2019-04-17 12:06:00 +02:00
|
|
|
id: display1
|
2019-10-17 16:36:11 +02:00
|
|
|
brightness: 60%
|
2019-02-17 00:35:23 +01:00
|
|
|
pages:
|
|
|
|
- id: page1
|
|
|
|
lambda: |-
|
|
|
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
|
|
|
- id: page2
|
|
|
|
lambda: |-
|
|
|
|
// Nothing
|
2018-08-26 11:26:14 +02:00
|
|
|
- platform: ssd1306_spi
|
|
|
|
model: "SSD1306 128x64"
|
|
|
|
cs_pin: GPIO23
|
|
|
|
dc_pin: GPIO23
|
|
|
|
reset_pin: GPIO23
|
|
|
|
lambda: |-
|
|
|
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
2019-10-19 20:44:43 +02:00
|
|
|
- platform: ssd1325_spi
|
|
|
|
model: "SSD1325 128x64"
|
|
|
|
cs_pin: GPIO23
|
|
|
|
dc_pin: GPIO23
|
|
|
|
reset_pin: GPIO23
|
|
|
|
lambda: |-
|
|
|
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
2020-07-10 04:49:26 +02:00
|
|
|
- platform: ssd1351_spi
|
|
|
|
model: "SSD1351 128x128"
|
|
|
|
cs_pin: GPIO23
|
|
|
|
dc_pin: GPIO23
|
|
|
|
reset_pin: GPIO23
|
|
|
|
lambda: |-
|
|
|
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
2018-08-26 11:26:14 +02:00
|
|
|
- platform: waveshare_epaper
|
|
|
|
cs_pin: GPIO23
|
|
|
|
dc_pin: GPIO23
|
|
|
|
busy_pin: GPIO23
|
|
|
|
reset_pin: GPIO23
|
|
|
|
model: 2.90in
|
|
|
|
full_update_every: 30
|
|
|
|
lambda: |-
|
|
|
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
2020-06-28 23:37:36 +02:00
|
|
|
- platform: st7789v
|
|
|
|
cs_pin: GPIO5
|
|
|
|
dc_pin: GPIO16
|
|
|
|
reset_pin: GPIO23
|
|
|
|
backlight_pin: GPIO4
|
|
|
|
lambda: |-
|
|
|
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
2018-08-26 11:26:14 +02:00
|
|
|
|
2019-12-04 13:11:53 +01:00
|
|
|
tm1651:
|
|
|
|
id: tm1651_battery
|
|
|
|
clk_pin: GPIO23
|
|
|
|
dio_pin: GPIO23
|
|
|
|
|
2018-08-26 11:26:14 +02:00
|
|
|
remote_receiver:
|
|
|
|
pin: GPIO32
|
|
|
|
dump: all
|
|
|
|
|
|
|
|
status_led:
|
|
|
|
pin: GPIO2
|
|
|
|
|
|
|
|
pn532:
|
|
|
|
cs_pin: GPIO23
|
|
|
|
update_interval: 1s
|
2018-10-17 21:29:44 +02:00
|
|
|
on_tag:
|
|
|
|
- lambda: |-
|
|
|
|
ESP_LOGD("main", "Found tag %s", x.c_str());
|
|
|
|
- mqtt.publish:
|
|
|
|
topic: the/topic
|
|
|
|
payload: !lambda 'return x;'
|
2018-08-26 11:26:14 +02:00
|
|
|
|
|
|
|
rdm6300:
|
|
|
|
|
2019-05-13 13:11:02 +02:00
|
|
|
gps:
|
|
|
|
|
2018-08-26 11:26:14 +02:00
|
|
|
time:
|
|
|
|
- platform: sntp
|
|
|
|
id: sntp_time
|
|
|
|
servers:
|
|
|
|
- 0.pool.ntp.org
|
|
|
|
- 1.pool.ntp.org
|
2019-01-15 20:13:20 +01:00
|
|
|
- 192.168.178.1
|
2018-09-23 18:58:41 +02:00
|
|
|
on_time:
|
|
|
|
cron: '/30 0-30,30/5 * ? JAN-DEC MON,SAT-SUN,TUE-FRI'
|
|
|
|
then:
|
|
|
|
- lambda: 'ESP_LOGD("main", "time");'
|
2019-05-13 13:11:02 +02:00
|
|
|
- platform: gps
|
2018-08-26 11:26:14 +02:00
|
|
|
|
|
|
|
cover:
|
|
|
|
- platform: template
|
|
|
|
name: "Template Cover"
|
2019-02-10 23:35:07 +01:00
|
|
|
id: template_cover
|
|
|
|
lambda: |-
|
2018-10-20 15:16:58 +02:00
|
|
|
if (id(binary_sensor1).state) {
|
2019-04-22 21:56:30 +02:00
|
|
|
return COVER_OPEN;
|
2018-08-26 11:26:14 +02:00
|
|
|
} else {
|
|
|
|
return {};
|
|
|
|
}
|
|
|
|
optimistic: true
|
2019-02-10 23:35:07 +01:00
|
|
|
open_action:
|
|
|
|
- cover.template.publish:
|
|
|
|
id: template_cover
|
|
|
|
state: CLOSED
|
2019-02-10 23:28:56 +01:00
|
|
|
assumed_state: no
|
2018-08-26 11:26:14 +02:00
|
|
|
|
|
|
|
debug:
|
|
|
|
|
|
|
|
pcf8574:
|
|
|
|
- id: 'pcf8574_hub'
|
|
|
|
address: 0x21
|
|
|
|
pcf8575: False
|
2018-10-26 22:57:03 +02:00
|
|
|
|
2019-03-03 16:51:55 +01:00
|
|
|
mcp23017:
|
|
|
|
- id: 'mcp23017_hub'
|
|
|
|
|
2019-10-17 16:18:41 +02:00
|
|
|
mcp23008:
|
|
|
|
- id: 'mcp23008_hub'
|
|
|
|
address: 0x22
|
|
|
|
|
2020-04-12 21:07:10 +02:00
|
|
|
mcp23016:
|
|
|
|
- id: 'mcp23016_hub'
|
|
|
|
address: 0x23
|
|
|
|
|
2018-10-26 22:57:03 +02:00
|
|
|
stepper:
|
|
|
|
- platform: a4988
|
|
|
|
id: my_stepper
|
|
|
|
step_pin: GPIO23
|
2019-12-04 16:47:34 +01:00
|
|
|
dir_pin: GPIO25
|
2018-10-26 22:57:03 +02:00
|
|
|
sleep_pin: GPIO25
|
|
|
|
max_speed: 250 steps/s
|
|
|
|
acceleration: 100 steps/s^2
|
|
|
|
deceleration: 200 steps/s^2
|
2018-11-12 23:30:31 +01:00
|
|
|
|
|
|
|
|
|
|
|
globals:
|
|
|
|
- id: glob_int
|
|
|
|
type: int
|
|
|
|
restore_value: yes
|
|
|
|
initial_value: '0'
|
|
|
|
- id: glob_float
|
|
|
|
type: float
|
|
|
|
restore_value: yes
|
|
|
|
initial_value: '0.0f'
|
|
|
|
- id: glob_bool
|
|
|
|
type: bool
|
|
|
|
restore_value: no
|
|
|
|
initial_value: 'true'
|
|
|
|
- id: glob_string
|
|
|
|
type: std::string
|
|
|
|
restore_value: no
|
|
|
|
# initial_value: ""
|
2019-01-29 17:29:21 +01:00
|
|
|
|
|
|
|
text_sensor:
|
|
|
|
- platform: mqtt_subscribe
|
|
|
|
name: "MQTT Subscribe Text"
|
|
|
|
topic: "the/topic"
|
|
|
|
qos: 2
|
2019-02-16 16:47:05 +01:00
|
|
|
on_value:
|
|
|
|
- text_sensor.template.publish:
|
|
|
|
id: template_text
|
|
|
|
state: Hello World
|
|
|
|
- text_sensor.template.publish:
|
|
|
|
id: template_text
|
|
|
|
state: |-
|
|
|
|
return "Hello World2";
|
2019-06-14 12:40:14 +02:00
|
|
|
- globals.set:
|
|
|
|
id: glob_int
|
|
|
|
value: '0'
|
2019-02-16 16:47:05 +01:00
|
|
|
- platform: template
|
|
|
|
name: Template Text Sensor
|
|
|
|
id: template_text
|
2019-03-05 14:05:51 +01:00
|
|
|
- platform: wifi_info
|
|
|
|
ip_address:
|
|
|
|
name: "IP Address"
|
|
|
|
ssid:
|
|
|
|
name: "SSID"
|
|
|
|
bssid:
|
|
|
|
name: "BSSID"
|
2020-04-25 01:58:32 +02:00
|
|
|
mac_address:
|
|
|
|
name: "Mac Address"
|
2020-07-12 00:55:30 +02:00
|
|
|
- platform: version
|
|
|
|
name: "ESPHome Version No Timestamp"
|
|
|
|
hide_timestamp: True
|
2020-06-28 00:08:15 +02:00
|
|
|
|
|
|
|
sn74hc595:
|
|
|
|
- id: 'sn74hc595_hub'
|
|
|
|
data_pin: GPIO21
|
|
|
|
clock_pin: GPIO23
|
|
|
|
latch_pin: GPIO22
|
|
|
|
oe_pin: GPIO32
|
|
|
|
sr_count: 2
|
2020-07-25 17:57:11 +02:00
|
|
|
|
|
|
|
rtttl:
|
|
|
|
output: gpio_19
|