Compare commits
No commits in common. "b46fed0624ac226292ef699f8ad6ff8bc4fb7b4e" and "0e81fa3bc9ed670fbabf5994f7fe8d51ecf14bc3" have entirely different histories.
b46fed0624
...
0e81fa3bc9
10 changed files with 8 additions and 289 deletions
5
esphome/.gitignore
vendored
5
esphome/.gitignore
vendored
|
|
@ -1,5 +0,0 @@
|
||||||
# Gitignore settings for ESPHome
|
|
||||||
# This is an example and may include too much for your use-case.
|
|
||||||
# You can modify this file to suit your needs.
|
|
||||||
/.esphome/
|
|
||||||
/secrets.yaml
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
# Installation
|
|
||||||
OTA Update Shelly Device to tasmota:
|
|
||||||
https://github.com/arendst/mgos-to-tasmota
|
|
||||||
In Tasmota make OTA Update to minimal:
|
|
||||||
http://ota.tasmota.com/tasmota/release/tasmota-minimal.bin.gz
|
|
||||||
Make ESPHome Configuration in Dashboard:
|
|
||||||
docker run --rm -p 6052:6052 -e ESPHOME_DASHBOARD_USE_PING=true -v "${PWD}":/config -it ghcr.io/esphome/esphome
|
|
||||||
|
|
@ -1,66 +0,0 @@
|
||||||
substitutions:
|
|
||||||
device_name: "bedroom-bulb-1"
|
|
||||||
friendly_name: "Bedroom 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
|
|
||||||
|
|
@ -1,67 +0,0 @@
|
||||||
substitutions:
|
|
||||||
device_name: "bedroom-bulb-2"
|
|
||||||
friendly_name: "Bedroom 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
|
|
||||||
|
|
@ -1,66 +0,0 @@
|
||||||
substitutions:
|
|
||||||
device_name: "bedroom-bulb-3"
|
|
||||||
friendly_name: "Bedroom 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
|
|
||||||
|
|
@ -1,66 +0,0 @@
|
||||||
substitutions:
|
|
||||||
device_name: "bedroom-bulb-4"
|
|
||||||
friendly_name: "Bedroom 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
|
|
||||||
|
|
@ -1,16 +1,10 @@
|
||||||
{ pkgs, ... }: {
|
{ ... }: {
|
||||||
services.avahi = {
|
services.avahi = {
|
||||||
enable = true;
|
enable = true;
|
||||||
reflector = true;
|
reflector = true;
|
||||||
allowInterfaces = [
|
allowInterfaces = [
|
||||||
"multimedia"
|
|
||||||
"server"
|
"server"
|
||||||
"lan"
|
"lan"
|
||||||
"smart"
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
nssmdns
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -150,8 +150,8 @@
|
||||||
entity_id = "light.bedroom_lights";
|
entity_id = "light.bedroom_lights";
|
||||||
};
|
};
|
||||||
data = {
|
data = {
|
||||||
brightness_pct = 15;
|
brightness_pct = 5;
|
||||||
rgbw_color = [ 255 126 0 255 ];
|
color_temp = 450;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@
|
||||||
"broadlink"
|
"broadlink"
|
||||||
"androidtv"
|
"androidtv"
|
||||||
"samsungtv"
|
"samsungtv"
|
||||||
"apple_tv"
|
|
||||||
];
|
];
|
||||||
services.home-assistant.config = {
|
services.home-assistant.config = {
|
||||||
ios = {
|
ios = {
|
||||||
|
|
@ -49,7 +48,7 @@
|
||||||
friendly_name = "Any multimedia device on";
|
friendly_name = "Any multimedia device on";
|
||||||
device_class = "connectivity";
|
device_class = "connectivity";
|
||||||
value_template = ''
|
value_template = ''
|
||||||
{% if (states('media_player.living_room') != 'standby' and states('media_player.living_room') != 'off') or is_state('binary_sensor.ps5', 'on') or is_state('binary_sensor.xbox', 'on') or (states('media_player.fire_tv_firetv_living_cloonar_multimedia') != 'off' and states('media_player.fire_tv_firetv_living_cloonar_multimedia') != 'unavailable') or (is_state('binary_sensor.steamdeck', 'on') and (states('sensor.steamdeck_power') | float(default=0) > 5)) %}
|
{% if is_state('binary_sensor.ps5', 'on') or is_state('binary_sensor.xbox', 'on') or (states('media_player.fire_tv_firetv_living_cloonar_multimedia') != 'off' and states('media_player.fire_tv_firetv_living_cloonar_multimedia') != 'unavailable') or (is_state('binary_sensor.steamdeck', 'on') and (states('sensor.steamdeck_power') | float(default=0) > 5)) %}
|
||||||
on
|
on
|
||||||
{% else %}
|
{% else %}
|
||||||
off
|
off
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,10 @@ let
|
||||||
{ name = "Living Bulb 4"; id = "485519D94A28"; }
|
{ name = "Living Bulb 4"; id = "485519D94A28"; }
|
||||||
{ name = "Living Bulb 5"; id = "485519DA6B6A"; }
|
{ name = "Living Bulb 5"; id = "485519DA6B6A"; }
|
||||||
{ name = "Living Bulb 6"; id = "485519D9E018"; }
|
{ name = "Living Bulb 6"; id = "485519D9E018"; }
|
||||||
|
{ name = "Bedroom Bulb 1"; id = "485519FBDF20"; }
|
||||||
|
{ name = "Bedroom Bulb 2"; id = "485519FBE171"; }
|
||||||
|
{ name = "Bedroom Bulb 3"; id = "485519FBE377"; }
|
||||||
|
{ name = "Bedroom Bulb 4"; id = "485519FC05C5"; }
|
||||||
];
|
];
|
||||||
|
|
||||||
switches = [
|
switches = [
|
||||||
|
|
@ -24,7 +28,6 @@ let
|
||||||
in {
|
in {
|
||||||
services.home-assistant.extraComponents = [
|
services.home-assistant.extraComponents = [
|
||||||
"shelly"
|
"shelly"
|
||||||
"esphome"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
services.home-assistant.config = {
|
services.home-assistant.config = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue