This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################### | |
## Customize | |
################################### | |
homeassistant: | |
customize: | |
switch.family_room_fan: | |
hidden: False | |
icon: mdi:fan | |
light: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################### | |
## Customize | |
################################### | |
homeassistant: | |
customize: | |
switch.kodi: | |
hidden: false | |
icon: mdi:movie-roll | |
switch.magic_tv: | |
hidden: false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
script: | |
speak_garage_status: | |
alias: 'Ask Google for Garage Status' | |
sequence: | |
- delay: | |
seconds: 2 | |
- service: tts.google_say | |
entity_id: | |
- media_player.kitchen_home | |
- media_player.insignia_speaker |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sensor: | |
- platform: template | |
sensors: | |
total_power_usage: | |
value_template: '{{ ((states.sensor.xiaomi_tv_power.state | float) + | |
(states.sensor.xiaomi_office_power.state | float) + | |
(states.sensor.xiaomi_server_power.state | float) + | |
(states.sensor.pool_pump_power.state | float) + | |
(states.sensor.cupboard_light_power.state | float) + | |
(states.sensor.stairs_shelly_power.state | float) + |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* I figured out you can fit a Shelly 1 inside the case of many outdoor motion sensors. | |
* Coupled with that fact that recently, Shelly added a feature to de-couple the switch from the relay | |
* so they act independently, makes this a great combo! Simply wire the output of the PIR motion sensor | |
* (the wire that normally goes to your outdoor light) to the switch input of the Shelly and wire | |
* the lightbulb to the L output of the Shelly. Then, in the Shelly app or directly via the devices webpage, | |
* select the button type as 'Detached Switch' and use the code below to make it work normally. | |
* Don't forget to adjust the daylight sensitivity to full daylight if you want the motion detection to work 24/7. | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fan: | |
- platform: template | |
fans: | |
template_bedroom_fan: | |
friendly_name: "Master Bedroom Fan" | |
# Measures the power use from a Shelly1 PM and if over 3W, marks the fan as on | |
value_template: "{% if states('sensor.bedroom_fan_shelly_power') | float > 3 %}on{% else %}off{% endif %}" | |
# Uses the Shelly1 PM sensor value to determine what speed the fan is going at. Only set to measure 1, 2 & 3 | |
speed_template: "{{ states('sensor.template_fan_speed_master') }}" | |
# Uses a fake switch from an input_boolean as the fan has no way of reporting direction back to HA |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Light is now picked up using setoption 19 1 (discovery) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
input_number: | |
### Solar Pump Hysteresis Offsets ## | |
pump_off_offset: | |
name: Pump OFF offset | |
initial: 0.1 | |
min: 0 | |
max: 2 | |
step: 0.1 | |
pump_on_offset: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ghm_tts: | |
alias: 'Google Home Notifier' | |
sequence: | |
- service: media_player.volume_set | |
data_template: | |
entity_id: >- | |
{%- set players = ['media_player.kitchen_home', 'media_player.lounge_home', 'media_player.bathroom_speaker', 'media_player.ensuite_speaker'] %} | |
{{ states.media_player | selectattr('state','!=','playing') | selectattr('entity_id', 'in', players) | map(attribute='entity_id') | join(', ') }} | |
volume_level: '{{volume}}' | |
- service: tts.google_say |
OlderNewer