home assistant and matrix changes

This commit is contained in:
2024-11-11 00:28:41 +01:00
parent 21d2e34025
commit 96d26c5431
15 changed files with 241 additions and 123 deletions

View File

@@ -8,14 +8,27 @@ esphome:
platform: ESP8266
board: esp01_1m
on_boot:
priority: 300
then:
- light.turn_on: my_light
# Enable logging
logger:
web_server:
port: 80
- light.turn_on:
id: my_light
red: 0.2
green: 0.1
blue: 0
white: 0.2
color_brightness: 0.2
brightness: 0.2
interval:
- interval: 15s
then:
- if:
condition:
api.connected: # check if api connected
else:
- light.dim_relative:
id: my_light
relative_brightness: 1
# Enable Home Assistant API
api:
@@ -29,8 +42,6 @@ wifi:
fast_connect: True
domain: .cloonar.smart
captive_portal:
light:
- platform: rgbw
id: my_light
@@ -39,10 +50,6 @@ light:
green: pwm_g
blue: pwm_b
white: pwm_w
effects:
- random:
- strobe:
- flicker:
output:
- platform: esp8266_pwm

View File

@@ -8,14 +8,27 @@ esphome:
platform: ESP8266
board: esp01_1m
on_boot:
priority: 300
then:
- light.turn_on: my_light
# Enable logging
logger:
web_server:
port: 80
- light.turn_on:
id: my_light
red: 0.2
green: 0.1
blue: 0
white: 0.2
color_brightness: 0.2
brightness: 0.2
interval:
- interval: 15s
then:
- if:
condition:
api.connected: # check if api connected
else:
- light.dim_relative:
id: my_light
relative_brightness: 1
# Enable Home Assistant API
api:
@@ -29,8 +42,6 @@ wifi:
fast_connect: True
domain: .cloonar.smart
captive_portal:
light:
- platform: rgbw
id: my_light
@@ -39,10 +50,6 @@ light:
green: pwm_g
blue: pwm_b
white: pwm_w
effects:
- random:
- strobe:
- flicker:
output:
- platform: esp8266_pwm

View File

@@ -9,14 +9,26 @@ esphome:
board: esp01_1m
on_boot:
then:
- light.turn_on: my_light
# Enable logging
logger:
web_server:
port: 80
- light.turn_on:
id: my_light
red: 0.2
green: 0.1
blue: 0
white: 0.2
color_brightness: 0.2
brightness: 0.2
interval:
- interval: 15s
then:
- if:
condition:
api.connected: # check if api connected
else:
- light.dim_relative:
id: my_light
relative_brightness: 1
# Enable Home Assistant API
api:
@@ -29,8 +41,6 @@ wifi:
fast_connect: True
domain: .cloonar.smart
captive_portal:
light:
- platform: rgbw
id: my_light
@@ -39,10 +49,6 @@ light:
green: pwm_g
blue: pwm_b
white: pwm_w
effects:
- random:
- strobe:
- flicker:
output:
- platform: esp8266_pwm

View File

@@ -9,13 +9,25 @@ esphome:
board: esp01_1m
on_boot:
then:
- light.turn_on: my_light
# Enable logging
logger:
web_server:
port: 80
- light.turn_on:
id: my_light
red: 0.2
green: 0.1
blue: 0
white: 0.2
color_brightness: 0.2
brightness: 0.2
interval:
- interval: 15s
then:
- if:
condition:
api.connected: # check if api connected
else:
- light.dim_relative:
id: my_light
relative_brightness: 1
# Enable Home Assistant API
api:
@@ -29,8 +41,6 @@ wifi:
fast_connect: True
domain: .cloonar.smart
captive_portal:
light:
- platform: rgbw
id: my_light
@@ -39,10 +49,6 @@ light:
green: pwm_g
blue: pwm_b
white: pwm_w
effects:
- random:
- strobe:
- flicker:
output:
- platform: esp8266_pwm

View File

@@ -9,13 +9,25 @@ esphome:
board: esp01_1m
on_boot:
then:
- light.turn_on: my_light
# Enable logging
logger:
web_server:
port: 80
- light.turn_on:
id: my_light
red: 0.2
green: 0.1
blue: 0
white: 0.2
color_brightness: 0.2
brightness: 0.2
interval:
- interval: 15s
then:
- if:
condition:
api.connected: # check if api connected
else:
- light.dim_relative:
id: my_light
relative_brightness: 1
# Enable Home Assistant API
api:
@@ -29,8 +41,6 @@ wifi:
fast_connect: True
domain: .cloonar.smart
captive_portal:
light:
- platform: rgbw
id: my_light
@@ -39,10 +49,6 @@ light:
green: pwm_g
blue: pwm_b
white: pwm_w
effects:
- random:
- strobe:
- flicker:
output:
- platform: esp8266_pwm

View File

@@ -9,13 +9,25 @@ esphome:
board: esp01_1m
on_boot:
then:
- light.turn_on: my_light
# Enable logging
logger:
web_server:
port: 80
- light.turn_on:
id: my_light
red: 0.2
green: 0.1
blue: 0
white: 0.2
color_brightness: 0.2
brightness: 0.2
interval:
- interval: 15s
then:
- if:
condition:
api.connected: # check if api connected
else:
- light.dim_relative:
id: my_light
relative_brightness: 1
# Enable Home Assistant API
api:
@@ -29,8 +41,6 @@ wifi:
fast_connect: True
domain: .cloonar.smart
captive_portal:
light:
- platform: rgbw
id: my_light
@@ -39,10 +49,6 @@ light:
green: pwm_g
blue: pwm_b
white: pwm_w
effects:
- random:
- strobe:
- flicker:
output:
- platform: esp8266_pwm

49
esphome/toilet-bulb.yaml Normal file
View File

@@ -0,0 +1,49 @@
substitutions:
device_name: "toilet-bulb"
friendly_name: "Toilet Bulb"
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:
output:
- platform: esp8266_pwm
id: warm_white
pin: GPIO4
- platform: esp8266_pwm
id: brightness
pin: GPIO5
light:
- platform: cwww
id: my_light
name: ${friendly_name}
warm_white: warm_white
cold_white: brightness
cold_white_color_temperature: 6500 K
warm_white_color_temperature: 2700 K