Skip to content

Commit

Permalink
Merge branch 'release/0.2.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
renemarc committed Feb 12, 2018
2 parents a76b41e + cc17198 commit 82fcc90
Show file tree
Hide file tree
Showing 84 changed files with 2,686 additions and 1,126 deletions.
21 changes: 13 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Configuration for Home Assistant running Hass.io on a Raspberry Pi for a one bed
- **Nanoleaf Aurora control**:
+ Manual theme selection.
+ Automatically rotate through device-based themes based on time of day (unless manually selected above).
- **LIFX Z ceiling wash lights control**:
- **LIFX Z under bed and ceiling wash lights control**:
+ Manual theme selection.
+ Automatically rotate through cloud-based themes based on time of day (unless manually selected above).
- **Automatically correlated color temperature (CCT)**, for [f.lux](https://justgetflux.com/)-like white temperature shift to gradually remove blue light based on a custom color and brightness curve and preset active hours, not simply based on the sun otherwise Canadian winters would be pretty yellow.
Expand Down Expand Up @@ -84,10 +84,12 @@ Configuration for Home Assistant running Hass.io on a Raspberry Pi for a one bed
### Task list

#### Work in progress
- Device: Kitchen under-cabinet CCT lighting
- Device: Flic button (kitchen)

#### Backlog
- UI: Text-only state cards (weather, quotes...)
- Component: fix unlimited bandwidth consumption bug
- Component: Fix unlimited bandwidth consumption bug
- Scene: Romantic
- Scene: Gaming/Party
- Automation: Away mode
Expand All @@ -98,16 +100,16 @@ Configuration for Home Assistant running Hass.io on a Raspberry Pi for a one bed
- Contribute back: HADashboard widget optimizations

#### Wishlist
- Dashboard: context-aware link widgets
- Dashboard: Context-aware link widgets
- Automation: Welcome home theme song front door trigger
- Automation: Door/Window sensor temper alert
- Component: Airthings BLE custom component
- Component: Monitor indoor air quality
- Component: UPS monitoring
- Component: Read rooftop weather station (Fine Offset WH1080)
- Network: use USB gigabit connection to test for above 80MB/s downspeeds
- Device: Use USB gigabit connection to test for above 80MB/s downspeeds
- Device: Replace Wifi plug-in outlets with Z-Wave for stability
- Device: Increase nightlight movement detection coverage
- Device: LIFX Z strips under bed with dedicated scenes. How romantic!
- Device: Kitchen under-cabinet CCT lighting
- Device: Flic button (kitchen)
- Device: Window binary sensors/state overview
- Device: Indoor air quality sensing and report
- Device: Exterior light
Expand Down Expand Up @@ -137,12 +139,15 @@ Configuration for Home Assistant running Hass.io on a Raspberry Pi for a one bed
- **[Aeotec Z-Stick Gen5](https://aeotec.com/z-wave-usb-stick)** Z-Wave USB dongle.
- **[NooElec NESDR SMArt](http://www.nooelec.com/store/nesdr-smart.html)** RTL-SDR (software-defined radio) USB dongle for reading AcuRite sensors.
- **[Plugable USB Bluetooth Adapter](https://plugable.com/products/usb-bt4le/)** for Bluetooth Low Energy connections.
- **[Milight iBox2 Wifi Bridge](https://www.futlight.com/productdetails.aspx?id=239&typeid=125)** for kitchen RF LED strip controllers, using [LimitlessLED](https://home-assistant.io/components/light.limitlessled/) integration.
- **[Acer Iconia One 10" tablet](https://www.acer.com/ac/en/CA/content/series/iconiaone10)** (1280x800 IPS screen) wallmounted as a kiosk.

### Devices and sensors
- **[Nanoleaf Aurora](https://nanoleaf.me/en-ca/)** light panels kit. Pretty!
- **[LIFX+](https://www.lifx.com/products/lifx-plus)** A19 RGB light bulb (x2).
- **[LIFX Z](https://www.lifx.com/products/lifx-z-starter-kit-without-homekit)** light strip without HomeKit as ceiling wash lights (x3).
- **[LIFX Z](https://www.lifx.com/products/lifx-z-starter-kit-without-homekit)** light strip without HomeKit as ceiling wash lights (x3) and bed underglow (x2)
- **[Milight CCT LED RF Controller](https://www.futlight.com/productdetails.aspx?id=293&typeid=146)** for white-adjustable undercabinet kitchen lights (x4), connected to appropriate Ul-listed power supplies.
- **[24V 3014 Warm White Cool White LED Strip](http://ledmontreal.com/en/led-strips-without-accessories/24v-led-strips-without-accessories/cct-adjustable-led-strip.html)** encased in custom cut and assembled [light-diffusing aluminum profiles](http://ledmontreal.com/en/led-bars-and-profiles-led-montreal/continuous-lighting-aluminum-profile.html), connected to above RF controllers.
- **[Flic](https://flic.io/)** bluetooth low energy button.
- **[Aeotec Door / Window Sensor Gen5](https://aeotec.com/z-wave-door-window-sensor)** for front door.
- **[Aeotec MultiSensor 6](https://aeotec.com/z-wave-sensor)** for temperature/humidity/presence detection.
Expand Down
44 changes: 42 additions & 2 deletions appdaemon/dashboards/Status.dash
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,46 @@ downspeed:
color: white
title2_style: "font-size: x-small;"

#
# Battery
#
front_door_sensor_battery:
widget_type: gauge
entity: sensor.front_door_sensor_battery
min: 0
max: 100
units: "%"
title: Front Door Sensor Battery
color: white
low_color: FF0000
med_color: FFFF00
high_color: 00FF00

bedroom_multisensor_battery:
widget_type: gauge
entity: sensor.bedroom_multisensor_battery
min: 0
max: 100
units: "%"
title: Bedroom Sensor Battery
color: white
low_color: FF0000
med_color: FFFF00
high_color: 00FF00

lounge_multisensor_battery:
widget_type: gauge
entity: sensor.lounge_multisensor_battery
min: 0
max: 100
units: "%"
title: Lounge Sensor Battery
color: white
low_color: FF0000
med_color: FFFF00
high_color: 00FF00


#
# Layout
#
Expand All @@ -169,5 +209,5 @@ layout:
- nav_switchboard, uptime, uptime_host, database_size, logfile_size
- nav_weather, cpu_temp, cpu_used, ram_used, disk_used, spacer(2x1), sensor.speedtest_ping, upspeed, downspeed
- nav_spacer(1x2)
- sensor.bedroom_temperature, sensor.bedroom_humidity
- nav_status, sensor.lounge_temperature, sensor.lounge_humidity
- sensor.bedroom_temperature, sensor.lounge_temperature, spacer(4x1), front_door_sensor_battery, bedroom_multisensor_battery, lounge_multisensor_battery
- nav_status, sensor.bedroom_humidity, sensor.lounge_humidity
63 changes: 42 additions & 21 deletions appdaemon/dashboards/Switchboard.dash
Original file line number Diff line number Diff line change
Expand Up @@ -150,20 +150,30 @@ label_kitchen:
title2_style: "font-size:175%;font-weight:400;"

light_countertop:
widget_type: label
widget_type: light
title: Countertop
entity: light.countertop
widget_style: "background-color:SADDLEBROWN;"

light_island:
widget_type: label
widget_type: light
title: Island
entity: light.island
widget_style: "background-color:SADDLEBROWN;"

light_cupboard:
widget_type: label
title: Cupboard
light_microwave:
widget_type: light
title: Microwave
entity: light.microwave
widget_style: "background-color:SADDLEBROWN;"

light_sink:
widget_type: light
title: Sink
entity: light.sink
widget_style: "background-color:SADDLEBROWN;"


#
# Washroom
#
Expand Down Expand Up @@ -201,6 +211,27 @@ label_bedroom:
widget_style: "background-color:INDIGO;"
title2_style: "font-size:175%;font-weight:400;"

light_bed_effect:
widget_type: input_select
title2: Bed Effect
entity: input_select.bed_effect
sub_entity: sensor.bed_effect_loaded
widget_style: "background-color:INDIGO;"
state_text_style: "background-color:PURPLE;"
select_style: "background-color:PURPLE;color:$white;"

light_headboard:
widget_type: light
title: Headboard
entity: light.headboard
widget_style: "background-color:INDIGO;"

light_underbed:
widget_type: light
title: Underbed
entity: light.underbed
widget_style: "background-color:INDIGO;"

light_bedside:
widget_type: switch
title: Bedside
Expand All @@ -213,16 +244,6 @@ light_nightstand:
entity: switch.nightstand_light
widget_style: "background-color:INDIGO;"

light_headboard:
widget_type: label
title: Headboard
widget_style: "background-color:INDIGO;"

light_underbed:
widget_type: label
title: Underbed
widget_style: "background-color:INDIGO;"

fan_bedroom:
widget_type: switch
title: Fan
Expand Down Expand Up @@ -270,9 +291,9 @@ light_spotlight:
entity: light.spotlight
widget_style: "background-color:DARKRED;"

light_torch:
light_lamp:
widget_type: label
title: Torch
title: Lamp
widget_style: "background-color:DARKRED;"

light_souvenirs:
Expand Down Expand Up @@ -320,7 +341,7 @@ layout:
- include: header
- nav_main, label(6x1), reload, temperature, clock
- nav_switchboard, spacer, label_exterior, light_front_door, spacer(2x1), label_ceiling, washlight_bedroom, washlight_middle, washlight_lounge
- nav_weather, label_kitchen, light_island, spacer, label_washroom, light_shower, spacer, label_climate, switch_air_filter
- nav_spacer(1x2), light_cupboard, light_countertop, spacer, light_lavatory, spacer(2x1), switch_dehumidifier, switch_humidifier
- label_bedroom, light_nightstand, light_bedside, spacer_tetris, label_lounge, light_tv_backlight, light_aurora, light_aurora_effect
- nav_status, fan_bedroom, light_headboard, light_underbed, spacer, light_spotlight, light_souvenirs, light_window, light_torch
- nav_weather, label_kitchen, light_microwave, spacer, label_washroom, light_shower, spacer, label_climate, switch_air_filter
- nav_spacer(1x2), light_island, light_sink, light_countertop, spacer, light_lavatory, spacer, switch_dehumidifier, switch_humidifier
- label_bedroom, light_bed_effect, light_headboard, light_underbed, spacer_tetris, label_lounge, light_aurora_effect, light_aurora, light_tv_backlight
- nav_status, light_nightstand, light_bedside, fan_bedroom, spacer(2x1), light_spotlight, light_souvenirs, light_window, light_lamp
2 changes: 1 addition & 1 deletion appdaemon/dashboards/Weather.dash
Original file line number Diff line number Diff line change
Expand Up @@ -273,4 +273,4 @@ layout:
- nav_weather, wind_icon, weekly_forecast(2x1)
- nav_spacer(1x2), spacer, temperature_today, weather_icon_today
- spacer, spacer(6x1), temperature_tomorrow, weather_icon_tomorrow
- nav_status, aqi, aqi_particles, aqi_ozone, aqi_carbon_monoxide, aqi_nitrogen_dioxide, uv, spacer, temperature_after_tomorrow, weather_icon_after_tomorrow
- nav_status, uv, aqi, aqi_particles, aqi_ozone, aqi_carbon_monoxide, aqi_nitrogen_dioxide, spacer, temperature_after_tomorrow, weather_icon_after_tomorrow
15 changes: 15 additions & 0 deletions automations/aurora_brightness.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#
# Change Nanoleaf Aurora's brightness.
#
- id: aurora_brightness
alias: Aurora BRIGHTNESS
trigger:
# When a brightness level is changed.
- platform: state
entity_id: variable.aurora_brightness

action:
- service: light.turn_on
data_template:
entity_id: light.aurora
brightness: "{{ states('variable.aurora_brightness') }}"
20 changes: 20 additions & 0 deletions automations/aurora_default.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#
# Return the Aurora to its default scheduled effect.
#
- id: aurora_default
alias: Aurora DEFAULT
trigger:
# If the default effect is selected.
- platform: state
entity_id: input_select.aurora_effect
to: Auto

action:
- service: notify.group
data:
title: 'Hass.io'
message: "aurora_select reset: {{ states('input_select.aurora_effect') }}"

# Remove the Aurora effect override.
- service: input_boolean.turn_off
entity_id: input_boolean.aurora_effect_override
50 changes: 6 additions & 44 deletions automations/aurora_effect.yaml
Original file line number Diff line number Diff line change
@@ -1,54 +1,16 @@
#
# Change Nanoleaf Aurora based on its loaded-in effects.
#
- id: aurora_effect
alias: Apply Aurora effect
alias: Aurora EFFECT
trigger:
# When an effect is received via MQTT.
# When an effect is changed.
- platform: state
entity_id: sensor.aurora_effect
entity_id: variable.aurora_effect

action:
- service: notify.group
data:
title: 'Hass.io'
message: "aurora_effect received: {{ states('sensor.aurora_effect') }}"

- service: light.turn_on
data_template:
entity_id:
- light.aurora
effect: "{{ states('sensor.aurora_effect') }}"

# - service: light.turn_on
# data:
# entity_id: light.aurora

# - service: rest_command.aurora_set_effect
# data_template:
# name: "{{ states('sensor.aurora_effect') }}"

# Change Nanoleaf Aurora's brightness.
- id: aurora_brightness
alias: Apply Nanoleaf Aurora brightness
trigger:
# When a brightness level is received via MQTT.
- platform: state
entity_id: sensor.aurora_brightness

action:
- service: notify.group
data:
title: 'Hass.io'
message: "aurora_brightness received: {{ states('sensor.aurora_brightness') }}"

- delay:
seconds: 5

- service: light.turn_on
data_template:
entity_id: light.aurora
brightness: "{{ states('sensor.aurora_brightness') }}"

# - service: rest_command.aurora_set_brightness
# data_template:
# brightness: "{{ states('sensor.aurora_brightness') }}"

effect: "{{ states('variable.aurora_effect') }}"
Loading

0 comments on commit 82fcc90

Please sign in to comment.