diff --git a/hass/settings/configuration/group/hidden/light/bath_light.yaml b/hass/settings/configuration/group/hidden/light/bath_light.yaml index 8f33358..c598bf8 100644 --- a/hass/settings/configuration/group/hidden/light/bath_light.yaml +++ b/hass/settings/configuration/group/hidden/light/bath_light.yaml @@ -2,4 +2,5 @@ bath_light: name: Свет (ванна) control: hidden entities: - - light.bath \ No newline at end of file + - light.bath + - light.philips_led \ No newline at end of file diff --git a/hass/settings/configuration/group/home/bath.yaml b/hass/settings/configuration/group/home/bath.yaml index 1be21c1..90d8299 100644 --- a/hass/settings/configuration/group/home/bath.yaml +++ b/hass/settings/configuration/group/home/bath.yaml @@ -5,4 +5,5 @@ - sensor.temperature_158d00012d9ad7 - sensor.humidity_158d00012d9ad7 - light.bath + - light.philips_led - sensor.airfresher_remain \ No newline at end of file diff --git a/hass/settings/configuration/light/bath.yaml b/hass/settings/configuration/light/bath.yaml index af0702b..7791cb5 100644 --- a/hass/settings/configuration/light/bath.yaml +++ b/hass/settings/configuration/light/bath.yaml @@ -5,3 +5,8 @@ payload_on: "ON" payload_off: "OFF" optimistic: false + +- platform: xiaomi_miio + name: bath_led + host: !secret philips_downlight_ip + token: !secret philips_downlight_token \ No newline at end of file diff --git a/hass/settings/configuration/switch/kitchen_mini_light.yaml b/hass/settings/configuration/switch/kitchen_mini_light.yaml index 7fae3e5..32bc68b 100644 --- a/hass/settings/configuration/switch/kitchen_mini_light.yaml +++ b/hass/settings/configuration/switch/kitchen_mini_light.yaml @@ -1,5 +1,12 @@ -- platform: broadlink - host: 192.168.1.63 - mac: 'B4430DCB6C07' - type: 'sp2' - friendly_name: 'kitchen_mini_light' \ No newline at end of file +- platform: mqtt + name: kitchen_mini_light + state_topic: "home/plug/kitchen-mini-light/status" + command_topic: "home/plug/kitchen-mini-light/status/set" + payload_on: "on" + payload_off: "off" + +# - platform: broadlink +# host: 192.168.1.63 +# mac: 'B4430DCB6C07' +# type: 'sp2' +# friendly_name: 'kitchen_mini_light' \ No newline at end of file diff --git a/hass/settings/secrets.yaml.sample b/hass/settings/secrets.yaml.sample index e843dbc..536a28f 100644 --- a/hass/settings/secrets.yaml.sample +++ b/hass/settings/secrets.yaml.sample @@ -52,6 +52,9 @@ powerstrip_key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx wifi_socket_ip: xxxxxxxxx wifi_socket_key: xxxxxxxxx +philips_downlight_ip: xxxxxxxxx +philips_downlight_token: xxxxxxxxx + ################################### # NEST # ################################### diff --git a/nginx/settings/site-confs/home.conf b/nginx/settings/site-confs/home.conf index 0a02b41..3b98150 100644 --- a/nginx/settings/site-confs/home.conf +++ b/nginx/settings/site-confs/home.conf @@ -31,6 +31,12 @@ server { #limit_conn perip 10; #access_log off; + location ~/.well-known/acme-challenge/(.*)\.(.*)$ { + return 200 '$1'; + } + location ~/.well-known/acme-challenge/(.*)$ { + return 200 '$1'; + } location / { real_ip_header X-Forwarded-For;