changes to home-assistant and nb
This commit is contained in:
66
esphome/bathroom-bulb-1.yaml
Normal file
66
esphome/bathroom-bulb-1.yaml
Normal file
@@ -0,0 +1,66 @@
|
||||
substitutions:
|
||||
device_name: "bathroom-bulb-1"
|
||||
friendly_name: "Bathroom Bulb 1"
|
||||
|
||||
esphome:
|
||||
name: ${device_name}
|
||||
comment: ${friendly_name}
|
||||
platform: ESP8266
|
||||
board: esp01_1m
|
||||
on_boot:
|
||||
then:
|
||||
- light.turn_on: my_light
|
||||
|
||||
# Enable logging
|
||||
logger:
|
||||
|
||||
web_server:
|
||||
port: 80
|
||||
|
||||
# Enable Home Assistant API
|
||||
api:
|
||||
|
||||
ota:
|
||||
platform: esphome
|
||||
|
||||
wifi:
|
||||
ssid: !secret wifi_ssid
|
||||
password: !secret wifi_password
|
||||
fast_connect: True
|
||||
domain: .cloonar.smart
|
||||
|
||||
captive_portal:
|
||||
|
||||
light:
|
||||
- platform: rgbw
|
||||
id: my_light
|
||||
name: ${friendly_name}
|
||||
red: pwm_r
|
||||
green: pwm_g
|
||||
blue: pwm_b
|
||||
white: pwm_w
|
||||
effects:
|
||||
- random:
|
||||
- strobe:
|
||||
- flicker:
|
||||
|
||||
output:
|
||||
- platform: esp8266_pwm
|
||||
pin: GPIO13
|
||||
frequency: 1000 Hz
|
||||
id: pwm_r
|
||||
|
||||
- platform: esp8266_pwm
|
||||
pin: GPIO12
|
||||
frequency: 1000 Hz
|
||||
id: pwm_g
|
||||
|
||||
- platform: esp8266_pwm
|
||||
pin: GPIO14
|
||||
frequency: 1000 Hz
|
||||
id: pwm_b
|
||||
|
||||
- platform: esp8266_pwm
|
||||
pin: GPIO5
|
||||
frequency: 1000 Hz
|
||||
id: pwm_w
|
||||
66
esphome/bathroom-bulb-2.yaml
Normal file
66
esphome/bathroom-bulb-2.yaml
Normal file
@@ -0,0 +1,66 @@
|
||||
substitutions:
|
||||
device_name: "bathroom-bulb-2"
|
||||
friendly_name: "Bathroom Bulb 2"
|
||||
|
||||
esphome:
|
||||
name: ${device_name}
|
||||
comment: ${friendly_name}
|
||||
platform: ESP8266
|
||||
board: esp01_1m
|
||||
on_boot:
|
||||
then:
|
||||
- light.turn_on: my_light
|
||||
|
||||
# Enable logging
|
||||
logger:
|
||||
|
||||
web_server:
|
||||
port: 80
|
||||
|
||||
# Enable Home Assistant API
|
||||
api:
|
||||
|
||||
ota:
|
||||
platform: esphome
|
||||
|
||||
wifi:
|
||||
ssid: !secret wifi_ssid
|
||||
password: !secret wifi_password
|
||||
fast_connect: True
|
||||
domain: .cloonar.smart
|
||||
|
||||
captive_portal:
|
||||
|
||||
light:
|
||||
- platform: rgbw
|
||||
id: my_light
|
||||
name: ${friendly_name}
|
||||
red: pwm_r
|
||||
green: pwm_g
|
||||
blue: pwm_b
|
||||
white: pwm_w
|
||||
effects:
|
||||
- random:
|
||||
- strobe:
|
||||
- flicker:
|
||||
|
||||
output:
|
||||
- platform: esp8266_pwm
|
||||
pin: GPIO13
|
||||
frequency: 1000 Hz
|
||||
id: pwm_r
|
||||
|
||||
- platform: esp8266_pwm
|
||||
pin: GPIO12
|
||||
frequency: 1000 Hz
|
||||
id: pwm_g
|
||||
|
||||
- platform: esp8266_pwm
|
||||
pin: GPIO14
|
||||
frequency: 1000 Hz
|
||||
id: pwm_b
|
||||
|
||||
- platform: esp8266_pwm
|
||||
pin: GPIO5
|
||||
frequency: 1000 Hz
|
||||
id: pwm_w
|
||||
143
esphome/bathroom-switch-1.yaml
Normal file
143
esphome/bathroom-switch-1.yaml
Normal file
@@ -0,0 +1,143 @@
|
||||
substitutions:
|
||||
devicename: bathroom-switch-1
|
||||
# Name for the relays
|
||||
channel_1: Light
|
||||
channel_2: Air
|
||||
max_power: "2000.0" # watt
|
||||
max_temp: "80.0" # °C
|
||||
|
||||
esphome:
|
||||
name: ${devicename}
|
||||
platform: ESP8266
|
||||
board: esp01_1m
|
||||
|
||||
wifi:
|
||||
ssid: !secret wifi_ssid
|
||||
password: !secret wifi_password
|
||||
|
||||
# Enable Home Assistant API
|
||||
api:
|
||||
|
||||
i2c:
|
||||
sda: GPIO12
|
||||
scl: GPIO14
|
||||
|
||||
sensor:
|
||||
- platform: ade7953_i2c
|
||||
voltage:
|
||||
name: ${devicename} voltage
|
||||
current_a:
|
||||
name: ${channel_2} current
|
||||
internal: true
|
||||
current_b:
|
||||
name: ${channel_1} current
|
||||
internal: true
|
||||
active_power_a:
|
||||
name: ${channel_2} power
|
||||
id: power_channel_2
|
||||
filters:
|
||||
- multiply: 1
|
||||
on_value_range:
|
||||
- above: ${max_power}
|
||||
then:
|
||||
- output.turn_off: shelly_25_relay_2
|
||||
- homeassistant.service:
|
||||
service: persistent_notification.create
|
||||
data:
|
||||
title: Message from ${devicename}
|
||||
data_template:
|
||||
message: Switch turned off because power exceeded ${max_power}W
|
||||
active_power_b:
|
||||
name: ${channel_1} power
|
||||
id: power_channel_1
|
||||
filters:
|
||||
- multiply: -1
|
||||
on_value_range:
|
||||
- above: ${max_power}
|
||||
then:
|
||||
- output.turn_off: shelly_25_relay_1
|
||||
- homeassistant.service:
|
||||
service: persistent_notification.create
|
||||
data:
|
||||
title: Message from ${devicename}
|
||||
data_template:
|
||||
message: Switch turned off because power exceeded ${max_power}W
|
||||
update_interval: 30s
|
||||
|
||||
# NTC Temperature
|
||||
- platform: ntc
|
||||
sensor: temp_resistance_reading
|
||||
name: ${devicename} temperature
|
||||
unit_of_measurement: "°C"
|
||||
accuracy_decimals: 1
|
||||
icon: "mdi:thermometer"
|
||||
calibration:
|
||||
b_constant: 3350
|
||||
reference_resistance: 10kOhm
|
||||
reference_temperature: 298.15K
|
||||
on_value_range:
|
||||
- above: ${max_temp}
|
||||
then:
|
||||
- output.turn_off: shelly_25_relay_1
|
||||
- output.turn_off: shelly_25_relay_2
|
||||
- homeassistant.service:
|
||||
service: persistent_notification.create
|
||||
data:
|
||||
title: Message from ${devicename}
|
||||
data_template:
|
||||
message: Switch turned off because temperature exceeded ${max_temp}°C
|
||||
- platform: resistance
|
||||
id: temp_resistance_reading
|
||||
sensor: temp_analog_reading
|
||||
configuration: DOWNSTREAM
|
||||
resistor: 32kOhm
|
||||
- platform: adc
|
||||
id: temp_analog_reading
|
||||
pin: A0
|
||||
|
||||
status_led:
|
||||
pin:
|
||||
number: GPIO0
|
||||
inverted: yes
|
||||
|
||||
output:
|
||||
- platform: gpio
|
||||
pin: GPIO4
|
||||
id: shelly_25_relay_1
|
||||
- platform: gpio
|
||||
pin: GPIO15
|
||||
id: shelly_25_relay_2
|
||||
|
||||
light:
|
||||
- platform: binary
|
||||
name: "${channel_1}"
|
||||
output: shelly_25_relay_1
|
||||
id: lightid
|
||||
- platform: binary
|
||||
name: "${channel_2}"
|
||||
output: shelly_25_relay_2
|
||||
id: airid
|
||||
|
||||
binary_sensor:
|
||||
- platform: gpio
|
||||
pin:
|
||||
number: GPIO13
|
||||
name: "${channel_1} input"
|
||||
internal: true
|
||||
on_state:
|
||||
then:
|
||||
- light.toggle: lightid
|
||||
- platform: gpio
|
||||
pin:
|
||||
number: GPIO5
|
||||
name: "${channel_2} input"
|
||||
internal: true
|
||||
on_state:
|
||||
then:
|
||||
- light.toggle: airid
|
||||
|
||||
# Prevent short circuit with "floating" pin!
|
||||
- platform: gpio
|
||||
pin: GPIO16
|
||||
name: "ade7953 IRQ pin"
|
||||
internal: true
|
||||
66
esphome/hallway-bulb-1.yaml
Normal file
66
esphome/hallway-bulb-1.yaml
Normal file
@@ -0,0 +1,66 @@
|
||||
substitutions:
|
||||
device_name: "hallway-bulb-1"
|
||||
friendly_name: "Hallway Bulb 1"
|
||||
|
||||
esphome:
|
||||
name: ${device_name}
|
||||
comment: ${friendly_name}
|
||||
platform: ESP8266
|
||||
board: esp01_1m
|
||||
on_boot:
|
||||
then:
|
||||
- light.turn_on: my_light
|
||||
|
||||
# Enable logging
|
||||
logger:
|
||||
|
||||
web_server:
|
||||
port: 80
|
||||
|
||||
# Enable Home Assistant API
|
||||
api:
|
||||
|
||||
ota:
|
||||
platform: esphome
|
||||
|
||||
wifi:
|
||||
ssid: !secret wifi_ssid
|
||||
password: !secret wifi_password
|
||||
fast_connect: True
|
||||
domain: .cloonar.smart
|
||||
|
||||
captive_portal:
|
||||
|
||||
light:
|
||||
- platform: rgbw
|
||||
id: my_light
|
||||
name: ${friendly_name}
|
||||
red: pwm_r
|
||||
green: pwm_g
|
||||
blue: pwm_b
|
||||
white: pwm_w
|
||||
effects:
|
||||
- random:
|
||||
- strobe:
|
||||
- flicker:
|
||||
|
||||
output:
|
||||
- platform: esp8266_pwm
|
||||
pin: GPIO13
|
||||
frequency: 1000 Hz
|
||||
id: pwm_r
|
||||
|
||||
- platform: esp8266_pwm
|
||||
pin: GPIO12
|
||||
frequency: 1000 Hz
|
||||
id: pwm_g
|
||||
|
||||
- platform: esp8266_pwm
|
||||
pin: GPIO14
|
||||
frequency: 1000 Hz
|
||||
id: pwm_b
|
||||
|
||||
- platform: esp8266_pwm
|
||||
pin: GPIO5
|
||||
frequency: 1000 Hz
|
||||
id: pwm_w
|
||||
66
esphome/hallway-bulb-2.yaml
Normal file
66
esphome/hallway-bulb-2.yaml
Normal file
@@ -0,0 +1,66 @@
|
||||
substitutions:
|
||||
device_name: "hallway-bulb-2"
|
||||
friendly_name: "Hallway Bulb 2"
|
||||
|
||||
esphome:
|
||||
name: ${device_name}
|
||||
comment: ${friendly_name}
|
||||
platform: ESP8266
|
||||
board: esp01_1m
|
||||
on_boot:
|
||||
then:
|
||||
- light.turn_on: my_light
|
||||
|
||||
# Enable logging
|
||||
logger:
|
||||
|
||||
web_server:
|
||||
port: 80
|
||||
|
||||
# Enable Home Assistant API
|
||||
api:
|
||||
|
||||
ota:
|
||||
platform: esphome
|
||||
|
||||
wifi:
|
||||
ssid: !secret wifi_ssid
|
||||
password: !secret wifi_password
|
||||
fast_connect: True
|
||||
domain: .cloonar.smart
|
||||
|
||||
captive_portal:
|
||||
|
||||
light:
|
||||
- platform: rgbw
|
||||
id: my_light
|
||||
name: ${friendly_name}
|
||||
red: pwm_r
|
||||
green: pwm_g
|
||||
blue: pwm_b
|
||||
white: pwm_w
|
||||
effects:
|
||||
- random:
|
||||
- strobe:
|
||||
- flicker:
|
||||
|
||||
output:
|
||||
- platform: esp8266_pwm
|
||||
pin: GPIO13
|
||||
frequency: 1000 Hz
|
||||
id: pwm_r
|
||||
|
||||
- platform: esp8266_pwm
|
||||
pin: GPIO12
|
||||
frequency: 1000 Hz
|
||||
id: pwm_g
|
||||
|
||||
- platform: esp8266_pwm
|
||||
pin: GPIO14
|
||||
frequency: 1000 Hz
|
||||
id: pwm_b
|
||||
|
||||
- platform: esp8266_pwm
|
||||
pin: GPIO5
|
||||
frequency: 1000 Hz
|
||||
id: pwm_w
|
||||
66
esphome/livingroom-bulb-1.yaml
Normal file
66
esphome/livingroom-bulb-1.yaml
Normal file
@@ -0,0 +1,66 @@
|
||||
substitutions:
|
||||
device_name: "livingroom-bulb-1"
|
||||
friendly_name: "Living Room Bulb 1"
|
||||
|
||||
esphome:
|
||||
name: ${device_name}
|
||||
comment: ${friendly_name}
|
||||
platform: ESP8266
|
||||
board: esp01_1m
|
||||
on_boot:
|
||||
then:
|
||||
- light.turn_on: my_light
|
||||
|
||||
# Enable logging
|
||||
logger:
|
||||
|
||||
web_server:
|
||||
port: 80
|
||||
|
||||
# Enable Home Assistant API
|
||||
api:
|
||||
|
||||
ota:
|
||||
platform: esphome
|
||||
|
||||
wifi:
|
||||
ssid: !secret wifi_ssid
|
||||
password: !secret wifi_password
|
||||
fast_connect: True
|
||||
domain: .cloonar.smart
|
||||
|
||||
captive_portal:
|
||||
|
||||
light:
|
||||
- platform: rgbw
|
||||
id: my_light
|
||||
name: ${friendly_name}
|
||||
red: pwm_r
|
||||
green: pwm_g
|
||||
blue: pwm_b
|
||||
white: pwm_w
|
||||
effects:
|
||||
- random:
|
||||
- strobe:
|
||||
- flicker:
|
||||
|
||||
output:
|
||||
- platform: esp8266_pwm
|
||||
pin: GPIO13
|
||||
frequency: 1000 Hz
|
||||
id: pwm_r
|
||||
|
||||
- platform: esp8266_pwm
|
||||
pin: GPIO12
|
||||
frequency: 1000 Hz
|
||||
id: pwm_g
|
||||
|
||||
- platform: esp8266_pwm
|
||||
pin: GPIO14
|
||||
frequency: 1000 Hz
|
||||
id: pwm_b
|
||||
|
||||
- platform: esp8266_pwm
|
||||
pin: GPIO5
|
||||
frequency: 1000 Hz
|
||||
id: pwm_w
|
||||
66
esphome/livingroom-bulb-2.yaml
Normal file
66
esphome/livingroom-bulb-2.yaml
Normal file
@@ -0,0 +1,66 @@
|
||||
substitutions:
|
||||
device_name: "livingroom-bulb-2"
|
||||
friendly_name: "Living Room Bulb 2"
|
||||
|
||||
esphome:
|
||||
name: ${device_name}
|
||||
comment: ${friendly_name}
|
||||
platform: ESP8266
|
||||
board: esp01_1m
|
||||
on_boot:
|
||||
then:
|
||||
- light.turn_on: my_light
|
||||
|
||||
# Enable logging
|
||||
logger:
|
||||
|
||||
web_server:
|
||||
port: 80
|
||||
|
||||
# Enable Home Assistant API
|
||||
api:
|
||||
|
||||
ota:
|
||||
platform: esphome
|
||||
|
||||
wifi:
|
||||
ssid: !secret wifi_ssid
|
||||
password: !secret wifi_password
|
||||
fast_connect: True
|
||||
domain: .cloonar.smart
|
||||
|
||||
captive_portal:
|
||||
|
||||
light:
|
||||
- platform: rgbw
|
||||
id: my_light
|
||||
name: ${friendly_name}
|
||||
red: pwm_r
|
||||
green: pwm_g
|
||||
blue: pwm_b
|
||||
white: pwm_w
|
||||
effects:
|
||||
- random:
|
||||
- strobe:
|
||||
- flicker:
|
||||
|
||||
output:
|
||||
- platform: esp8266_pwm
|
||||
pin: GPIO13
|
||||
frequency: 1000 Hz
|
||||
id: pwm_r
|
||||
|
||||
- platform: esp8266_pwm
|
||||
pin: GPIO12
|
||||
frequency: 1000 Hz
|
||||
id: pwm_g
|
||||
|
||||
- platform: esp8266_pwm
|
||||
pin: GPIO14
|
||||
frequency: 1000 Hz
|
||||
id: pwm_b
|
||||
|
||||
- platform: esp8266_pwm
|
||||
pin: GPIO5
|
||||
frequency: 1000 Hz
|
||||
id: pwm_w
|
||||
66
esphome/livingroom-bulb-3.yaml
Normal file
66
esphome/livingroom-bulb-3.yaml
Normal file
@@ -0,0 +1,66 @@
|
||||
substitutions:
|
||||
device_name: "livingroom-bulb-3"
|
||||
friendly_name: "Living Room Bulb 3"
|
||||
|
||||
esphome:
|
||||
name: ${device_name}
|
||||
comment: ${friendly_name}
|
||||
platform: ESP8266
|
||||
board: esp01_1m
|
||||
on_boot:
|
||||
then:
|
||||
- light.turn_on: my_light
|
||||
|
||||
# Enable logging
|
||||
logger:
|
||||
|
||||
web_server:
|
||||
port: 80
|
||||
|
||||
# Enable Home Assistant API
|
||||
api:
|
||||
|
||||
ota:
|
||||
platform: esphome
|
||||
|
||||
wifi:
|
||||
ssid: !secret wifi_ssid
|
||||
password: !secret wifi_password
|
||||
fast_connect: True
|
||||
domain: .cloonar.smart
|
||||
|
||||
captive_portal:
|
||||
|
||||
light:
|
||||
- platform: rgbw
|
||||
id: my_light
|
||||
name: ${friendly_name}
|
||||
red: pwm_r
|
||||
green: pwm_g
|
||||
blue: pwm_b
|
||||
white: pwm_w
|
||||
effects:
|
||||
- random:
|
||||
- strobe:
|
||||
- flicker:
|
||||
|
||||
output:
|
||||
- platform: esp8266_pwm
|
||||
pin: GPIO13
|
||||
frequency: 1000 Hz
|
||||
id: pwm_r
|
||||
|
||||
- platform: esp8266_pwm
|
||||
pin: GPIO12
|
||||
frequency: 1000 Hz
|
||||
id: pwm_g
|
||||
|
||||
- platform: esp8266_pwm
|
||||
pin: GPIO14
|
||||
frequency: 1000 Hz
|
||||
id: pwm_b
|
||||
|
||||
- platform: esp8266_pwm
|
||||
pin: GPIO5
|
||||
frequency: 1000 Hz
|
||||
id: pwm_w
|
||||
66
esphome/livingroom-bulb-4.yaml
Normal file
66
esphome/livingroom-bulb-4.yaml
Normal file
@@ -0,0 +1,66 @@
|
||||
substitutions:
|
||||
device_name: "livingroom-bulb-4"
|
||||
friendly_name: "Living Room Bulb 4"
|
||||
|
||||
esphome:
|
||||
name: ${device_name}
|
||||
comment: ${friendly_name}
|
||||
platform: ESP8266
|
||||
board: esp01_1m
|
||||
on_boot:
|
||||
then:
|
||||
- light.turn_on: my_light
|
||||
|
||||
# Enable logging
|
||||
logger:
|
||||
|
||||
web_server:
|
||||
port: 80
|
||||
|
||||
# Enable Home Assistant API
|
||||
api:
|
||||
|
||||
ota:
|
||||
platform: esphome
|
||||
|
||||
wifi:
|
||||
ssid: !secret wifi_ssid
|
||||
password: !secret wifi_password
|
||||
fast_connect: True
|
||||
domain: .cloonar.smart
|
||||
|
||||
captive_portal:
|
||||
|
||||
light:
|
||||
- platform: rgbw
|
||||
id: my_light
|
||||
name: ${friendly_name}
|
||||
red: pwm_r
|
||||
green: pwm_g
|
||||
blue: pwm_b
|
||||
white: pwm_w
|
||||
effects:
|
||||
- random:
|
||||
- strobe:
|
||||
- flicker:
|
||||
|
||||
output:
|
||||
- platform: esp8266_pwm
|
||||
pin: GPIO13
|
||||
frequency: 1000 Hz
|
||||
id: pwm_r
|
||||
|
||||
- platform: esp8266_pwm
|
||||
pin: GPIO12
|
||||
frequency: 1000 Hz
|
||||
id: pwm_g
|
||||
|
||||
- platform: esp8266_pwm
|
||||
pin: GPIO14
|
||||
frequency: 1000 Hz
|
||||
id: pwm_b
|
||||
|
||||
- platform: esp8266_pwm
|
||||
pin: GPIO5
|
||||
frequency: 1000 Hz
|
||||
id: pwm_w
|
||||
66
esphome/livingroom-bulb-5.yaml
Normal file
66
esphome/livingroom-bulb-5.yaml
Normal file
@@ -0,0 +1,66 @@
|
||||
substitutions:
|
||||
device_name: "livingroom-bulb-5"
|
||||
friendly_name: "Living Room Bulb 5"
|
||||
|
||||
esphome:
|
||||
name: ${device_name}
|
||||
comment: ${friendly_name}
|
||||
platform: ESP8266
|
||||
board: esp01_1m
|
||||
on_boot:
|
||||
then:
|
||||
- light.turn_on: my_light
|
||||
|
||||
# Enable logging
|
||||
logger:
|
||||
|
||||
web_server:
|
||||
port: 80
|
||||
|
||||
# Enable Home Assistant API
|
||||
api:
|
||||
|
||||
ota:
|
||||
platform: esphome
|
||||
|
||||
wifi:
|
||||
ssid: !secret wifi_ssid
|
||||
password: !secret wifi_password
|
||||
fast_connect: True
|
||||
domain: .cloonar.smart
|
||||
|
||||
captive_portal:
|
||||
|
||||
light:
|
||||
- platform: rgbw
|
||||
id: my_light
|
||||
name: ${friendly_name}
|
||||
red: pwm_r
|
||||
green: pwm_g
|
||||
blue: pwm_b
|
||||
white: pwm_w
|
||||
effects:
|
||||
- random:
|
||||
- strobe:
|
||||
- flicker:
|
||||
|
||||
output:
|
||||
- platform: esp8266_pwm
|
||||
pin: GPIO13
|
||||
frequency: 1000 Hz
|
||||
id: pwm_r
|
||||
|
||||
- platform: esp8266_pwm
|
||||
pin: GPIO12
|
||||
frequency: 1000 Hz
|
||||
id: pwm_g
|
||||
|
||||
- platform: esp8266_pwm
|
||||
pin: GPIO14
|
||||
frequency: 1000 Hz
|
||||
id: pwm_b
|
||||
|
||||
- platform: esp8266_pwm
|
||||
pin: GPIO5
|
||||
frequency: 1000 Hz
|
||||
id: pwm_w
|
||||
66
esphome/livingroom-bulb-6.yaml
Normal file
66
esphome/livingroom-bulb-6.yaml
Normal file
@@ -0,0 +1,66 @@
|
||||
substitutions:
|
||||
device_name: "livingroom-bulb-6"
|
||||
friendly_name: "Living Room Bulb 6"
|
||||
|
||||
esphome:
|
||||
name: ${device_name}
|
||||
comment: ${friendly_name}
|
||||
platform: ESP8266
|
||||
board: esp01_1m
|
||||
on_boot:
|
||||
then:
|
||||
- light.turn_on: my_light
|
||||
|
||||
# Enable logging
|
||||
logger:
|
||||
|
||||
web_server:
|
||||
port: 80
|
||||
|
||||
# Enable Home Assistant API
|
||||
api:
|
||||
|
||||
ota:
|
||||
platform: esphome
|
||||
|
||||
wifi:
|
||||
ssid: !secret wifi_ssid
|
||||
password: !secret wifi_password
|
||||
fast_connect: True
|
||||
domain: .cloonar.smart
|
||||
|
||||
captive_portal:
|
||||
|
||||
light:
|
||||
- platform: rgbw
|
||||
id: my_light
|
||||
name: ${friendly_name}
|
||||
red: pwm_r
|
||||
green: pwm_g
|
||||
blue: pwm_b
|
||||
white: pwm_w
|
||||
effects:
|
||||
- random:
|
||||
- strobe:
|
||||
- flicker:
|
||||
|
||||
output:
|
||||
- platform: esp8266_pwm
|
||||
pin: GPIO13
|
||||
frequency: 1000 Hz
|
||||
id: pwm_r
|
||||
|
||||
- platform: esp8266_pwm
|
||||
pin: GPIO12
|
||||
frequency: 1000 Hz
|
||||
id: pwm_g
|
||||
|
||||
- platform: esp8266_pwm
|
||||
pin: GPIO14
|
||||
frequency: 1000 Hz
|
||||
id: pwm_b
|
||||
|
||||
- platform: esp8266_pwm
|
||||
pin: GPIO5
|
||||
frequency: 1000 Hz
|
||||
id: pwm_w
|
||||
Reference in New Issue
Block a user