mirror of
https://github.com/nuttytree/ESPHome-Devices.git
synced 2024-08-30 18:12:19 +00:00
Update wifi to power saving = none
Change all on/off lights from a switch to a binary light Add kitchen bar lights and dining room light
This commit is contained in:
parent
b484cc9e6b
commit
bd9b81baed
@ -60,6 +60,8 @@
|
|||||||
> The following devices are Feit Dimmers:
|
> The following devices are Feit Dimmers:
|
||||||
> > * Basement Stair Lights/Basement Stair Lights 2
|
> > * Basement Stair Lights/Basement Stair Lights 2
|
||||||
> > * Computer Light
|
> > * Computer Light
|
||||||
|
> > * Dining Room Light
|
||||||
> > * Family Room Light
|
> > * Family Room Light
|
||||||
|
> > * Kitchen Bar Lights
|
||||||
> > * Kitchen Table Light
|
> > * Kitchen Table Light
|
||||||
> > * Office Light
|
> > * Office Light
|
||||||
|
@ -23,7 +23,7 @@ binary_sensor:
|
|||||||
mode: INPUT_PULLUP
|
mode: INPUT_PULLUP
|
||||||
on_press:
|
on_press:
|
||||||
then:
|
then:
|
||||||
- switch.toggle: light
|
- light.toggle: the_light
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
id: fan_button
|
id: fan_button
|
||||||
pin:
|
pin:
|
||||||
@ -39,10 +39,19 @@ fan:
|
|||||||
output: fan_output
|
output: fan_output
|
||||||
name: "Basement Bathroom Fan"
|
name: "Basement Bathroom Fan"
|
||||||
|
|
||||||
|
light:
|
||||||
|
- platform: binary
|
||||||
|
id: the_light
|
||||||
|
name: "Basement Bathroom Light"
|
||||||
|
output: light_output
|
||||||
|
|
||||||
output:
|
output:
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
id: fan_output
|
id: fan_output
|
||||||
pin: 4
|
pin: 4
|
||||||
|
- platform: gpio
|
||||||
|
id: light_output
|
||||||
|
pin: 13
|
||||||
|
|
||||||
sensor:
|
sensor:
|
||||||
- !include common/sensor/uptime.yaml
|
- !include common/sensor/uptime.yaml
|
||||||
@ -55,11 +64,6 @@ status_led:
|
|||||||
|
|
||||||
switch:
|
switch:
|
||||||
- !include common/switch/restart.yaml
|
- !include common/switch/restart.yaml
|
||||||
- platform: gpio
|
|
||||||
id: light
|
|
||||||
name: "Basement Bathroom Light"
|
|
||||||
icon: mdi:lightbulb
|
|
||||||
pin: 13
|
|
||||||
|
|
||||||
text_sensor:
|
text_sensor:
|
||||||
- !include common/text_sensor/version.yaml
|
- !include common/text_sensor/version.yaml
|
||||||
|
@ -56,12 +56,12 @@ binary_sensor:
|
|||||||
- homeassistant.service:
|
- homeassistant.service:
|
||||||
service: homeassistant.turn_on
|
service: homeassistant.turn_on
|
||||||
data:
|
data:
|
||||||
entity_id: switch.basement_bathroom_light
|
entity_id: light.basement_bathroom_light
|
||||||
else:
|
else:
|
||||||
- homeassistant.service:
|
- homeassistant.service:
|
||||||
service: homeassistant.turn_on
|
service: homeassistant.turn_on
|
||||||
data:
|
data:
|
||||||
entity_id: switch.basement_shower_light
|
entity_id: light.basement_shower_light
|
||||||
|
|
||||||
- platform: template
|
- platform: template
|
||||||
id: motion_delay_30s
|
id: motion_delay_30s
|
||||||
@ -107,11 +107,11 @@ binary_sensor:
|
|||||||
- homeassistant.service:
|
- homeassistant.service:
|
||||||
service: homeassistant.turn_off
|
service: homeassistant.turn_off
|
||||||
data:
|
data:
|
||||||
entity_id: switch.basement_bathroom_light
|
entity_id: light.basement_bathroom_light
|
||||||
- homeassistant.service:
|
- homeassistant.service:
|
||||||
service: homeassistant.turn_off
|
service: homeassistant.turn_off
|
||||||
data:
|
data:
|
||||||
entity_id: switch.basement_shower_light
|
entity_id: light.basement_shower_light
|
||||||
- homeassistant.service:
|
- homeassistant.service:
|
||||||
service: homeassistant.turn_off
|
service: homeassistant.turn_off
|
||||||
data:
|
data:
|
||||||
@ -139,11 +139,11 @@ binary_sensor:
|
|||||||
|
|
||||||
- platform: homeassistant
|
- platform: homeassistant
|
||||||
id: light
|
id: light
|
||||||
entity_id: switch.basement_bathroom_light
|
entity_id: light.basement_bathroom_light
|
||||||
|
|
||||||
- platform: homeassistant
|
- platform: homeassistant
|
||||||
id: shower_light
|
id: shower_light
|
||||||
entity_id: switch.basement_shower_light
|
entity_id: light.basement_shower_light
|
||||||
|
|
||||||
- platform: homeassistant
|
- platform: homeassistant
|
||||||
id: heat
|
id: heat
|
||||||
|
@ -23,7 +23,7 @@ binary_sensor:
|
|||||||
mode: INPUT_PULLUP
|
mode: INPUT_PULLUP
|
||||||
on_press:
|
on_press:
|
||||||
then:
|
then:
|
||||||
- switch.toggle: light
|
- light.toggle: the_light
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
id: heater_button
|
id: heater_button
|
||||||
pin:
|
pin:
|
||||||
@ -33,6 +33,17 @@ binary_sensor:
|
|||||||
then:
|
then:
|
||||||
- switch.toggle: heater
|
- switch.toggle: heater
|
||||||
|
|
||||||
|
light:
|
||||||
|
- platform: binary
|
||||||
|
id: the_light
|
||||||
|
name: "Basement Shower Light"
|
||||||
|
output: light_output
|
||||||
|
|
||||||
|
output:
|
||||||
|
- platform: gpio
|
||||||
|
id: light_output
|
||||||
|
pin: 13
|
||||||
|
|
||||||
sensor:
|
sensor:
|
||||||
- !include common/sensor/uptime.yaml
|
- !include common/sensor/uptime.yaml
|
||||||
- !include common/sensor/wifi.yaml
|
- !include common/sensor/wifi.yaml
|
||||||
@ -44,11 +55,6 @@ status_led:
|
|||||||
|
|
||||||
switch:
|
switch:
|
||||||
- !include common/switch/restart.yaml
|
- !include common/switch/restart.yaml
|
||||||
- platform: gpio
|
|
||||||
id: light
|
|
||||||
name: "Basement Shower Light"
|
|
||||||
icon: mdi:lightbulb
|
|
||||||
pin: 13
|
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
id: heater
|
id: heater
|
||||||
name: "Basement Bathroom Heater"
|
name: "Basement Bathroom Heater"
|
||||||
|
@ -2,6 +2,7 @@ wifi:
|
|||||||
ssid: !secret wifi_ssid
|
ssid: !secret wifi_ssid
|
||||||
password: !secret wifi_password
|
password: !secret wifi_password
|
||||||
fast_connect: true
|
fast_connect: true
|
||||||
|
power_save_mode: none
|
||||||
manual_ip:
|
manual_ip:
|
||||||
static_ip: ${ip_address}
|
static_ip: ${ip_address}
|
||||||
subnet: !secret ip_subnet
|
subnet: !secret ip_subnet
|
||||||
|
@ -7,38 +7,9 @@ substitutions:
|
|||||||
ota_pwd: !secret dining_room_light_ota_pwd
|
ota_pwd: !secret dining_room_light_ota_pwd
|
||||||
api_pwd: !secret dining_room_light_api_pwd
|
api_pwd: !secret dining_room_light_api_pwd
|
||||||
ap_wifi_pwd: !secret dining_room_light_ap_wifi_pwd
|
ap_wifi_pwd: !secret dining_room_light_ap_wifi_pwd
|
||||||
|
day_brightness: "1"
|
||||||
|
night_brightness: ".03"
|
||||||
|
night_auto_off_time: 15min
|
||||||
|
linked_lights: ""
|
||||||
|
|
||||||
day_level: '100'
|
<<: !include common/device_tuya_dimmer.yaml
|
||||||
night_level: '10'
|
|
||||||
|
|
||||||
esphome:
|
|
||||||
<<: !include common/esphome.yaml
|
|
||||||
includes:
|
|
||||||
- gosund_sw2_dimmer.h
|
|
||||||
|
|
||||||
<<: !include common/common_gosund_dimmer.yaml
|
|
||||||
<<: !include common/logger/logger_debug_no_serial.yaml
|
|
||||||
|
|
||||||
binary_sensor:
|
|
||||||
- !include common/binary_sensor/status.yaml
|
|
||||||
- !include common/binary_sensor/day_night.yaml
|
|
||||||
- !include common/binary_sensor/gosund_dimmer_button.yaml
|
|
||||||
|
|
||||||
sensor:
|
|
||||||
- !include common/sensor/uptime.yaml
|
|
||||||
- !include common/sensor/wifi.yaml
|
|
||||||
|
|
||||||
switch:
|
|
||||||
- !include common/switch/restart.yaml
|
|
||||||
|
|
||||||
text_sensor:
|
|
||||||
- !include common/text_sensor/version.yaml
|
|
||||||
- !include common/text_sensor/wifi.yaml
|
|
||||||
|
|
||||||
script:
|
|
||||||
- id: single_tap
|
|
||||||
then:
|
|
||||||
- logger.log: "Single Tap"
|
|
||||||
- id: double_tap
|
|
||||||
then:
|
|
||||||
- logger.log: "Double Tap"
|
|
||||||
|
15
kitchen_bar_lights.yaml
Normal file
15
kitchen_bar_lights.yaml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
substitutions:
|
||||||
|
device_id: kitchen_bar_lights
|
||||||
|
device_name: Kitchen Bar Lights
|
||||||
|
platform: ESP8266
|
||||||
|
board: esp01_1m
|
||||||
|
ip_address: !secret kitchen_bar_lights_ip
|
||||||
|
ota_pwd: !secret kitchen_bar_lights_ota_pwd
|
||||||
|
api_pwd: !secret kitchen_bar_lights_api_pwd
|
||||||
|
ap_wifi_pwd: !secret kitchen_bar_lights_ap_wifi_pwd
|
||||||
|
day_brightness: "1"
|
||||||
|
night_brightness: ".03"
|
||||||
|
night_auto_off_time: 15min
|
||||||
|
linked_lights: ""
|
||||||
|
|
||||||
|
<<: !include common/device_tuya_dimmer.yaml
|
@ -28,7 +28,7 @@ binary_sensor:
|
|||||||
- homeassistant.service:
|
- homeassistant.service:
|
||||||
service: homeassistant.toggle
|
service: homeassistant.toggle
|
||||||
data:
|
data:
|
||||||
entity_id: switch.patio_lights
|
entity_id: light.patio_lights
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
id: pool_lights_button
|
id: pool_lights_button
|
||||||
pin:
|
pin:
|
||||||
@ -48,7 +48,7 @@ binary_sensor:
|
|||||||
Treo->next_color();
|
Treo->next_color();
|
||||||
- platform: homeassistant
|
- platform: homeassistant
|
||||||
id: patio_lights
|
id: patio_lights
|
||||||
entity_id: switch.patio_lights
|
entity_id: light.patio_lights
|
||||||
on_press:
|
on_press:
|
||||||
then:
|
then:
|
||||||
- switch.turn_on: patio_lights_indicator
|
- switch.turn_on: patio_lights_indicator
|
||||||
|
@ -17,18 +17,22 @@ esphome:
|
|||||||
binary_sensor:
|
binary_sensor:
|
||||||
- !include common/binary_sensor/status.yaml
|
- !include common/binary_sensor/status.yaml
|
||||||
|
|
||||||
|
light:
|
||||||
|
- platform: binary
|
||||||
|
name: "Patio Lights"
|
||||||
|
output: patio_lights_output
|
||||||
|
|
||||||
|
output:
|
||||||
|
- platform: gpio
|
||||||
|
id: patio_lights_output
|
||||||
|
pin: D1
|
||||||
|
|
||||||
sensor:
|
sensor:
|
||||||
- !include common/sensor/uptime.yaml
|
- !include common/sensor/uptime.yaml
|
||||||
- !include common/sensor/wifi.yaml
|
- !include common/sensor/wifi.yaml
|
||||||
|
|
||||||
switch:
|
switch:
|
||||||
- !include common/switch/restart.yaml
|
- !include common/switch/restart.yaml
|
||||||
- platform: gpio
|
|
||||||
id: patio_lights
|
|
||||||
name: "Patio Lights"
|
|
||||||
icon: mdi:lightbulb
|
|
||||||
pin: D1
|
|
||||||
inverted: false
|
|
||||||
|
|
||||||
text_sensor:
|
text_sensor:
|
||||||
- !include common/text_sensor/version.yaml
|
- !include common/text_sensor/version.yaml
|
||||||
|
Loading…
Reference in New Issue
Block a user