]> git.giorgioravera.it Git - homeassistant.git/commitdiff
Added Amazon Alexa support
authorGiorgio Ravera <giorgio.ravera@gmail.com>
Fri, 8 Jul 2022 10:33:03 +0000 (12:33 +0200)
committerGiorgio Ravera <giorgio.ravera@gmail.com>
Fri, 8 Jul 2022 10:33:03 +0000 (12:33 +0200)
.secrets_travis.yaml
README.md
components/amazon_alexa.yaml [new file with mode: 0644]
components/amazon_alexa/covers.yaml [new file with mode: 0644]
components/amazon_alexa/home_assistant.yaml [new file with mode: 0644]
components/amazon_alexa/lights.yaml [new file with mode: 0644]
components/amazon_alexa/sensors.yaml [new file with mode: 0644]
components/google_assistant/light.yaml [deleted file]
components/google_assistant/lights.yaml [new file with mode: 0644]
configuration.yaml

index 81d05cdf6da695b65f439c8956bd9909a2b8eeeb..819b02613d9ee5e9ed2f79568e5b911a2c339942 100644 (file)
@@ -32,6 +32,9 @@ google_pin: "0000"
 google_maps_username: email@domain.com
 google_maps_password: password
 
+alexa_client_id: user
+alexa_client_secret: password
+
 proxmox_host: host
 proxmox_user: user
 proxmox_password: password
index 37da661db676f40ebf96ca7cde6a231e489c8403..0f23c41b2f11a6bb84fdbc8a1c2156fbeff7eee6 100644 (file)
--- a/README.md
+++ b/README.md
@@ -12,6 +12,7 @@ Docker is running in a Virtual Machine based on [Linux Debian](https://www.debia
 My server is an Intel NUC (NUC10i5FNH) with [Proxmox Virtual Environment](https://www.proxmox.com/en/).
 
 ## Component Used
+* Amazon Alexa
 * Canon Printer (TR8550)
 * CO2 Signal
 * Google (Chromecast, Google Home Mini)
diff --git a/components/amazon_alexa.yaml b/components/amazon_alexa.yaml
new file mode 100644 (file)
index 0000000..a33bb2a
--- /dev/null
@@ -0,0 +1,10 @@
+smart_home:
+  locale: it-IT
+  endpoint: https://api.eu.amazonalexa.com/v3/events
+  client_id: !secret alexa_client_id
+  client_secret: !secret alexa_client_secret
+  filter:
+    include_entities: !include_dir_merge_list amazon_alexa/
+  entity_config:
+    input_boolean.home_mode_away:
+      name: "Modalità Vacanza"
diff --git a/components/amazon_alexa/covers.yaml b/components/amazon_alexa/covers.yaml
new file mode 100644 (file)
index 0000000..07d679e
--- /dev/null
@@ -0,0 +1,8 @@
+######################################################################
+# Amazon Alexa: Covers
+######################################################################
+
+- cover.tapparella_cucina
+- cover.tapparella_sala
+- cover.tapparella_studio
+- cover.tapparella_camera
diff --git a/components/amazon_alexa/home_assistant.yaml b/components/amazon_alexa/home_assistant.yaml
new file mode 100644 (file)
index 0000000..04e91a1
--- /dev/null
@@ -0,0 +1,6 @@
+######################################################################
+# Amazon Alexa: Home Assistant
+######################################################################
+
+- input_boolean.home_mode_away
+- script.homeassistant_restart
diff --git a/components/amazon_alexa/lights.yaml b/components/amazon_alexa/lights.yaml
new file mode 100644 (file)
index 0000000..8290c8f
--- /dev/null
@@ -0,0 +1,13 @@
+######################################################################
+# Amazon Alexa: Lights
+######################################################################
+
+- light.luce_corridoio
+- light.luce_cucina
+- light.luce_sala
+- light.luce_divano
+- light.luce_bagno
+- light.luce_specchio
+- light.luce_studio
+- light.luce_camera
+- light.luce_balcone
diff --git a/components/amazon_alexa/sensors.yaml b/components/amazon_alexa/sensors.yaml
new file mode 100644 (file)
index 0000000..2dac17c
--- /dev/null
@@ -0,0 +1,6 @@
+######################################################################
+# Amazon Alexa: Sensors
+######################################################################
+
+#- sensor.temperatura_balcone_temperature
+#- sensor.temperatura_veranda_temperature
\ No newline at end of file
diff --git a/components/google_assistant/light.yaml b/components/google_assistant/light.yaml
deleted file mode 100644 (file)
index 2017a3e..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-######################################################################
-# Google Assistant: Lights
-######################################################################
-
-light.luce_corridoio:
-  expose: true
-  room: Corridoio
-light.luce_cucina:
-  expose: true
-  room: Cucina
-light.luce_sala:
-  expose: true
-  room: Sala
-light.luce_divano:
-  expose: true
-  room: Sala
-light.luce_bagno:
-  expose: true
-  room: Bagno
-light.luce_specchio:
-  expose: true
-  room: Bagno
-light.luce_studio:
-  expose: true
-  room: Studio
-light.luce_camera:
-  expose: true
-  room: Camera
-light.luce_balcone:
-  expose: true
-  room: Balcone
diff --git a/components/google_assistant/lights.yaml b/components/google_assistant/lights.yaml
new file mode 100644 (file)
index 0000000..2017a3e
--- /dev/null
@@ -0,0 +1,31 @@
+######################################################################
+# Google Assistant: Lights
+######################################################################
+
+light.luce_corridoio:
+  expose: true
+  room: Corridoio
+light.luce_cucina:
+  expose: true
+  room: Cucina
+light.luce_sala:
+  expose: true
+  room: Sala
+light.luce_divano:
+  expose: true
+  room: Sala
+light.luce_bagno:
+  expose: true
+  room: Bagno
+light.luce_specchio:
+  expose: true
+  room: Bagno
+light.luce_studio:
+  expose: true
+  room: Studio
+light.luce_camera:
+  expose: true
+  room: Camera
+light.luce_balcone:
+  expose: true
+  room: Balcone
index 237dac750ffd35404b7c15ddd2ec2917d28349b0..cef7c457c5642703a491a0f9f6f6295ec4a304e5 100644 (file)
@@ -178,7 +178,7 @@ sensor: !include_dir_merge_list sensor/
 shell_command: !include_dir_merge_named shell_command/
 
 # Switches
-#switch: !include_dir_merge_list switch/
+switch: !include_dir_merge_list switch/
 
 # Utility Meter
 utility_meter: !include_dir_merge_named utility_meter/
@@ -196,6 +196,9 @@ weather: !include components/weather.yaml
 # Integrations
 ######################################################################
 
+# Amazon Alexa
+alexa: !include components/amazon_alexa.yaml
+
 # Google Assistant
 google_assistant: !include components/google_assistant.yaml