google_maps_username: email@domain.com
google_maps_password: password
-google_calendar_id: id
-google_calendar_secret: password
-
proxmox_host: host
proxmox_user: user
proxmox_password: password
mb_vin: vin
-netatmo_client_id: client_id
-netatmo_client_secret: password
-
telegram_bot_name: "name_bot"
telegram_bot_username: "telegram_bot"
telegram_bot_access_token: token
* LG webOS Smart TV
* Mercedes Me
* MQTT
+ * Netatmo
* Shelly Devices (with the exception of Shelly Bulb)
* Sony Bravia
* SpeedTest
-######################################################################\r
-# Update Notification: Home Assistant\r
-######################################################################\r
-\r
-- alias: "Update Notification: Home Assistant"\r
-\r
- trigger:\r
- - platform: state\r
- entity_id: binary_sensor.updater\r
- to: 'on'\r
-\r
- - platform: homeassistant\r
- event: start\r
-\r
- condition:\r
- condition: state\r
- entity_id: binary_sensor.updater\r
- state: 'on'\r
-\r
- action:\r
- - delay: '00:00:5'\r
- - service: script.notify_text\r
- data_template:\r
- title: "Home Assistant - Aggiornamento"\r
- message: "E' disponibile un aggiornamento per Home Assistant {{ state_attr('binary_sensor.updater', 'newest_version') }}. {{now().strftime('%Y-%m-%d %I:%M %p')}}"\r
- notification_id: "update"\r
- enable_persistent: true\r
-\r
- - service: input_boolean.turn_on\r
- entity_id: input_boolean.update_homeassistant\r
-\r
######################################################################\r
# Update Notification: Shelly\r
######################################################################\r
+++ /dev/null
-######################################################################
-# Component: Google Calendar Integration
-######################################################################
-
-client_id: !secret google_calendar_id
-client_secret: !secret google_calendar_secret
+++ /dev/null
-######################################################################
-# Component: Netatmo
-######################################################################
-
-client_id: !secret netatmo_client_id
-client_secret: !secret netatmo_client_secret
unit_system: metric
# Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
time_zone: Europe/Rome
+ # Pick your currency code from the column Code of Wikipedia’s list of ISO 4217 active codes
+ currency: EUR
# URL
- internal_url: !secret base_url
external_url: !secret base_url
+ internal_url: !secret base_url
# Customization folder
customize: !include_dir_merge_named customizations/
+ media_dirs:
+ media: "media"
# Packages:
packages: !include_dir_named packages/
map:
# Media Source
-#media_source:
+media_source:
# Mobile App Support
mobile_app:
# Timer
timer:
-# Checks for available updates
-# Note: This component will send some information about your system to
-# the developers to assist with development of Home Assistant.
-# For more information, please see:
-# https://home-assistant.io/blog/2016/10/25/explaining-the-updater/
-updater:
- # Optional, allows Home Assistant developers to focus on popular components.
- # include_used_components: true
-
# Webhooks
webhook:
# Google Assistant
google_assistant: !include components/google_assistant.yaml
-# Google Calendar
-google: !include components/google_calendar.yaml
-
-# Proxmox
-proxmoxve: !include components/proxmox.yaml
-
# Homekit
homekit: !include components/homekit.yaml
-# Netatmo
-netatmo: !include components/netatmo.yaml
+# MQTT
+mqtt:
+ light: !include_dir_merge_list mqtt/light/
+
+# Proxmox
+proxmoxve: !include components/proxmox.yaml
# Telegram
telegram_bot: !include components/telegram.yaml
-######################################################################
-# Living Room Couch Light (Color)
-######################################################################
-
-- platform: mqtt
- name: Luce Divano
- schema: template
- command_topic: "shellies/shellybulb-BC8610/color/0/set"
- state_topic: "shellies/shellybulb-BC8610/color/0/status"
- command_on_template: >
- {
- "turn": "on",
- "mode": "color",
- {%- if red is defined and green is defined and blue is defined -%}
- "red": {{ red }},
- "green": {{ green }},
- "blue": {{ blue }},
- {%- endif -%}
- {%- if white_value is defined -%}
- "white": {{ white_value }},
- {%- endif -%}
- {%- if brightness is defined -%}
- "gain": {{ (brightness/255*100) | int }},
- {%- endif -%}
- {%- if effect is defined -%}
- {%- if effect == 'Pioggia di Meteore' -%}
- "effect": 1
- {%- elif effect == 'Cambio Graduale' -%}
- "effect": 2
- {%- elif effect == 'Respiro' -%}
- "effect": 3
- {%- elif effect == 'Flash' -%}
- "effect": 4
- {%- elif effect == 'On/Off Graduale' -%}
- "effect": 5
- {%- elif effect == 'Rosso/Verde' -%}
- "effect": 6
- {%- else -%}
- "effect": 0
- {%- endif -%}
- {%- else -%}
- "effect": 0
- {%- endif -%}
- }
- command_off_template: >
- {
- "turn": "off",
- "mode": "color"
- }
- state_template: >
- {% if value_json.ison == true and value_json.mode == "color" %}
- on
- {% else %}
- off
- {% endif %}
- brightness_template: '{{ (value_json.gain/100*255) | int }}'
- red_template: '{{ value_json.red }}'
- green_template: '{{ value_json.green }}'
- blue_template: '{{ value_json.blue }}'
- white_value_template: '{{ value_json.white }}'
- effect_template: >
- {%- if value_json.effect == 1 -%}
- Pioggia di Meteore
- {%- elif value_json.effect == 2 -%}
- Cambio Graduale
- {%- elif value_json.effect == 3 -%}
- Respiro
- {%- elif value_json.effect == 4 -%}
- Flash
- {%- elif value_json.effect == 5 -%}
- On/Off Graduale
- {%- elif value_json.effect == 6 -%}
- Rosso/Verde
- {%- else -%}
- Off
- {%- endif -%}
- effect_list:
- - "Off"
- - Pioggia di Meteore
- - Cambio Graduale
- - Respiro
- - Flash
- - On/Off Graduale
- - Rosso/Verde
- retain: false
- qos: 0
- optimistic: false
-
-######################################################################
-# Living Room Couch Light (White)
-######################################################################
-
-#- platform: mqtt
-# name: Luce Divano Bianca
-# schema: template
-# command_topic: "shellies/shellybulb-BC8610/color/0/set"
-# state_topic: "shellies/shellybulb-BC8610/color/0/status"
-# command_on_template: >
-# {
-# "turn": "on",
-# "mode": "white",
-# {%- if color_temp is defined -%}
-# "temp": {{ (1000000/(((float(color_temp)-153)/354*180)+153)-35) | int }},
-# {%- endif -%}
-# {%- if brightness is defined -%}
-# "brightness": {{ (brightness/255*100) | int }},
-# {%- endif -%}
-# "effect": 0
-# }
-# command_off_template: >
-# {
-# "turn": "off",
-# "mode": "white",
-# "effect": 0
-# }
-# state_template: >
-# {% if value_json.ison == true and value_json.mode == "white" %}
-# on
-# {% else %}
-# off
-# {% endif %}
-# brightness_template: '{{ (value_json.brightness/100*255)|int }}'
-# color_temp_template: "{{ (1000000/(((float(value_json.temp)-3000)/3500*4500)+2000)) | int }}"
-# retain: false
-# qos: 0
-# optimistic: false
-
######################################################################
# Living Room Global
######################################################################
--- /dev/null
+######################################################################
+# Living Room Couch Light (Color)
+######################################################################
+
+- name: Luce Divano
+ schema: template
+ command_topic: "shellies/shellybulb-BC8610/color/0/set"
+ state_topic: "shellies/shellybulb-BC8610/color/0/status"
+ command_on_template: >
+ {
+ "turn": "on",
+ "mode": "color",
+ {%- if red is defined and green is defined and blue is defined -%}
+ "red": {{ red }},
+ "green": {{ green }},
+ "blue": {{ blue }},
+ {%- endif -%}
+ {%- if white_value is defined -%}
+ "white": {{ white_value }},
+ {%- endif -%}
+ {%- if brightness is defined -%}
+ "gain": {{ (brightness/255*100) | int }},
+ {%- endif -%}
+ {%- if effect is defined -%}
+ {%- if effect == 'Pioggia di Meteore' -%}
+ "effect": 1
+ {%- elif effect == 'Cambio Graduale' -%}
+ "effect": 2
+ {%- elif effect == 'Respiro' -%}
+ "effect": 3
+ {%- elif effect == 'Flash' -%}
+ "effect": 4
+ {%- elif effect == 'On/Off Graduale' -%}
+ "effect": 5
+ {%- elif effect == 'Rosso/Verde' -%}
+ "effect": 6
+ {%- else -%}
+ "effect": 0
+ {%- endif -%}
+ {%- else -%}
+ "effect": 0
+ {%- endif -%}
+ }
+ command_off_template: >
+ {
+ "turn": "off",
+ "mode": "color"
+ }
+ state_template: >
+ {% if value_json.ison == true and value_json.mode == "color" %}
+ on
+ {% else %}
+ off
+ {% endif %}
+ brightness_template: '{{ (value_json.gain/100*255) | int }}'
+ red_template: '{{ value_json.red }}'
+ green_template: '{{ value_json.green }}'
+ blue_template: '{{ value_json.blue }}'
+ white_value_template: '{{ value_json.white }}'
+ effect_template: >
+ {%- if value_json.effect == 1 -%}
+ Pioggia di Meteore
+ {%- elif value_json.effect == 2 -%}
+ Cambio Graduale
+ {%- elif value_json.effect == 3 -%}
+ Respiro
+ {%- elif value_json.effect == 4 -%}
+ Flash
+ {%- elif value_json.effect == 5 -%}
+ On/Off Graduale
+ {%- elif value_json.effect == 6 -%}
+ Rosso/Verde
+ {%- else -%}
+ Off
+ {%- endif -%}
+ effect_list:
+ - "Off"
+ - Pioggia di Meteore
+ - Cambio Graduale
+ - Respiro
+ - Flash
+ - On/Off Graduale
+ - Rosso/Verde
+ retain: false
+ qos: 0
+ optimistic: false
+
+######################################################################
+# Living Room Couch Light (White)
+######################################################################
+
+#- name: Luce Divano Bianca
+# schema: template
+# command_topic: "shellies/shellybulb-BC8610/color/0/set"
+# state_topic: "shellies/shellybulb-BC8610/color/0/status"
+# command_on_template: >
+# {
+# "turn": "on",
+# "mode": "white",
+# {%- if color_temp is defined -%}
+# "temp": {{ (1000000/(((float(color_temp)-153)/354*180)+153)-35) | int }},
+# {%- endif -%}
+# {%- if brightness is defined -%}
+# "brightness": {{ (brightness/255*100) | int }},
+# {%- endif -%}
+# "effect": 0
+# }
+# command_off_template: >
+# {
+# "turn": "off",
+# "mode": "white",
+# "effect": 0
+# }
+# state_template: >
+# {% if value_json.ison == true and value_json.mode == "white" %}
+# on
+# {% else %}
+# off
+# {% endif %}
+# brightness_template: '{{ (value_json.brightness/100*255)|int }}'
+# color_temp_template: "{{ (1000000/(((float(value_json.temp)-3000)/3500*4500)+2000)) | int }}"
+# retain: false
+# qos: 0
+# optimistic: false