diff --git a/automations.yaml b/automations.yaml index c0ab29c..490a0e9 100644 --- a/automations.yaml +++ b/automations.yaml @@ -56,29 +56,22 @@ entity_id: timer.sleep_timer condition: [] action: - - service: homeassistant.turn_off - target: - entity_id: group.basement_lights - service: homeassistant.turn_off target: entity_id: + - light.upstairs_light + - light.livingroom_lamp - light.bedroom_lamp_left - switch.bedroom_lamp_right + - group.outside_lights + - light.globe_bulb_2 + - switch.christmas_tree - service: media_player.play_media data: media_content_id: /media/whitenoisefan.m4a media_content_type: music target: entity_id: media_player.squeezebox_radio - - service: light.turn_off - target: - entity_id: light.upstairs_light - data: - transition: 10 - - type: turn_off - device_id: 451b184dee654bf08731024d01b4b602 - entity_id: light.porch_light - domain: light - service: input_boolean.turn_on target: entity_id: input_boolean.night_mode @@ -95,7 +88,6 @@ target: entity_id: - media_player.lg_tv_remote - - media_player.bedroom_tv_chromecast mode: restart - id: '1632963978970' alias: Bedroom lamp on at sunset @@ -115,14 +107,9 @@ entity_id: device_tracker.jen state: home action: - - type: turn_on - device_id: 4850dbfbf153e58dd801ca200dcd79d6 - entity_id: light.bedroom_lamp_left - domain: light - brightness_pct: 45 - service: homeassistant.turn_on target: - entity_id: switch.bedroom_lamp_right + entity_id: group.bedroom_lights mode: single - id: '1633200241746' alias: Office Button Presses @@ -151,15 +138,13 @@ target: entity_id: light.bedroom_lamp_left button_long_press: - - service: timer.start - data: - duration: '0' + - service: script.turn_on target: - entity_id: timer.sleep_timer + entity_id: script.start_sleep_timer button_double_press: - service: homeassistant.toggle target: - entity_id: switch.bedroom_lamp_right + entity_id: light.bedroom_lamp_right - id: '1633312071688' alias: Shaedyn's Bedtime Countdown description: '' @@ -244,18 +229,18 @@ brightness_pct: 15 mode: single - id: '1633561149527' - alias: Porch light on at night + alias: Outside lights on at night description: '' trigger: - platform: numeric_state entity_id: sun.sun - below: '-1' + below: '1' attribute: elevation condition: [] action: - - service: light.turn_on + - service: homeassistant.turn_on target: - entity_id: light.porch_light + entity_id: group.outside_lights mode: single - id: '1633576069502' alias: Upstairs light bright when shae's door opens @@ -281,7 +266,7 @@ to: 'off' for: hours: 0 - minutes: 1 + minutes: 5 seconds: 0 milliseconds: 0 - service: light.turn_off diff --git a/camera.yaml b/camera.yaml index 9a24dd3..022cf12 100644 --- a/camera.yaml +++ b/camera.yaml @@ -8,3 +8,7 @@ - platform: ffmpeg name: Flower Tent input: -rtsp_transport tcp -i rtsp://mike:classic10@192.168.10.92/live + +- platform: ffmpeg + name: Mother Tent + input: -rtsp_transport tcp -i rtsp://mike:classic10@192.168.10.93/live diff --git a/climate.yaml b/climate.yaml new file mode 100644 index 0000000..c80f4f3 --- /dev/null +++ b/climate.yaml @@ -0,0 +1,9 @@ +# - platform: programmable_thermostat +# name: room +# heater: +# - switch.smart_plug_1 +# actual_temp_sensor: sensor.bedroom_temperature +# min_temp: 17 +# max_temp: 23 +# tolerance: 0.3 +# auto_mode: heating \ No newline at end of file diff --git a/configuration.yaml b/configuration.yaml index 17ddf91..4d7d11f 100644 --- a/configuration.yaml +++ b/configuration.yaml @@ -21,6 +21,9 @@ input_number: !include input_number.yaml timer: !include timer.yaml switch: !include switch.yaml cover: !include cover.yaml +climate: !include climate.yaml + +wake_on_lan: frontend: themes: !include_dir_merge_named themes diff --git a/esphome/sonoff-plug-2.yaml b/esphome/sonoff-plug-2.yaml new file mode 100644 index 0000000..e1fb303 --- /dev/null +++ b/esphome/sonoff-plug-2.yaml @@ -0,0 +1,42 @@ +esphome: + name: sonoff_switch_2 + platform: ESP8266 + board: esp01_1m + +wifi: + ssid: "LANofOZ" + password: "@a1b2c3d4e5!" + +# Enable logging +logger: + +# Enable Home Assistant API +api: + +ota: + + + +web_server: + port: 80 + +binary_sensor: + - platform: gpio + pin: + number: GPIO0 + mode: INPUT_PULLUP + inverted: True + name: "Sonoff_switch_1_button" + on_press: + - switch.toggle: relay + +switch: + - platform: gpio + name: "Sonoff_switch_1_relay" + pin: GPIO12 + id: relay + +status_led: + pin: + number: GPIO13 + inverted: yes \ No newline at end of file diff --git a/groups.yaml b/groups.yaml index 5eb7cd2..315033c 100644 --- a/groups.yaml +++ b/groups.yaml @@ -3,9 +3,25 @@ basement_lights: entities: - light.globe_bulb_2 - light.globe_bulb_1 + icon: mdi:lightbulb office_lights: name: Office Lights entities: - light.office_lamp - switch.smart_plug_2_relay + - light.desk_led + icon: mdi:lightbulb + +outside_lights: + name: Outside Lights + entities: + - light.driveway_light + - light.porch_light + icon: mdi:lightbulb + +bedroom_lights: + name: bedroom lights + entities: + - light.bedroom_lamp_left + - light.bedroom_lamp_right diff --git a/lights.yaml b/lights.yaml index 2802545..992f9b4 100644 --- a/lights.yaml +++ b/lights.yaml @@ -1,5 +1,5 @@ -- platform: flux_led - devices: - 192.168.10.94: - name: livingroom_tv_led - mode: "rgb" \ No newline at end of file +# - platform: flux_led +# devices: +# 192.168.10.94: +# name: livingroom_tv_led +# mode: "rgb" diff --git a/scenes.yaml b/scenes.yaml index 5a9a989..1d9f1c5 100644 --- a/scenes.yaml +++ b/scenes.yaml @@ -124,3 +124,10 @@ friendly_name: Upstairs Light supported_features: 41 state: 'off' + light.driveway_light: + supported_color_modes: + - brightness + off_brightness: + friendly_name: Driveway Light + supported_features: 41 + state: 'off' diff --git a/scripts.yaml b/scripts.yaml index a7c8fe7..05c05e7 100644 --- a/scripts.yaml +++ b/scripts.yaml @@ -15,14 +15,9 @@ bedtime_mode: icon: mdi:bed leaving_office: sequence: - - type: turn_off - device_id: 67db7ebde4a24eb779c2909e9b1c9ec8 - entity_id: light.office_lamp - domain: light - - type: turn_off - device_id: b149e6c97a3cc9602c389d6305911fc8 - entity_id: switch.smart_plug_2_relay - domain: switch + - service: homeassistant.turn_off + target: + entity_id: group.office_lights - type: toggle device_id: 90c3e29c66fd372625f532aa108d129f entity_id: switch.mikepc_sleep @@ -47,14 +42,16 @@ morning_routine: entity_id: light.upstairs_light domain: light brightness_pct: 15 - - type: turn_on - device_id: e6cbd7cd9a565f6e81ec1d7903d151f4 - entity_id: light.livingroom_light - domain: light - brightness_pct: 5 + - service: light.turn_on + data: + brightness_pct: 100 + target: + entity_id: light.livingroom_lamp - service: switch.turn_on target: - entity_id: switch.harmony_hub_shield_tv + entity_id: + - switch.harmony_hub_shield_tv + - switch.christmas_tree - delay: hours: 0 minutes: 0 @@ -67,14 +64,10 @@ morning_routine: - delay: hours: 0 minutes: 0 - seconds: 3 + seconds: 5 milliseconds: 0 - - wait_for_trigger: - - platform: numeric_state - entity_id: sun.sun - attribute: elevation - above: '1' - - service: light.turn_off - target: - entity_id: light.upstairs_light + - service: androidtv.adb_command + data: + entity_id: media_player.livingroom_tv_shield + command: input keyevent 8 mode: single diff --git a/switch.yaml b/switch.yaml index 4259234..7629d75 100644 --- a/switch.yaml +++ b/switch.yaml @@ -10,3 +10,11 @@ service: homeassistant.turn_off target: entity_id: group.basement_lights + +- platform: wake_on_lan + mac: 74:d4:35:eb:d8:06 + name: Wake MikePC + +- platform: wake_on_lan + mac: 1c:b7:2c:ab:dc:33 + name: Wake LivingroomPC diff --git a/timer.yaml b/timer.yaml index ec78211..cf1689d 100644 --- a/timer.yaml +++ b/timer.yaml @@ -1,3 +1,3 @@ sleep_timer: name: Sleep Timer - duration: "00:10:00" + duration: "00:15:00"