====== Ficheros ====== ===== configuration.yaml ===== # Configure a default setup of Home Assistant (frontend, api, etc) default_config: # Text to speech tts: - platform: google_translate group: !include groups.yaml automation: !include automations.yaml script: !include scripts.yaml scene: !include scenes.yaml spotify: client_id: e1d17a6a35744a9f93e27664d6870154 client_secret: c6d823fca78646d1a0a73a30000240ed rest_command: example_request: url: "http://192.168.1.200/home_assistant" media_source: homeassistant: latitude: 40.39579 longitude: -3.72919 elevation: 430 unit_system: metric time_zone: Europe/Madrid media_dirs: local: /media recording: /mnt/recordings # Example configuration.yaml entry media_player: # Use the Python ADB implementation - platform: androidtv name: Fire TV host: 192.168.1.93 # Example configuration.yaml entry for the Telegram Bot telegram_bot: - platform: polling # api_key: 932550130:AAEM4gmfzDbQSpTuyby2MIeaIVir6SP1N8E api_key: 932550130:AAEM4gmfzDbQSpTuyby2MIeaIVir6SP1N8E allowed_chat_ids: - 4982505 #iwanttobefreakbot - 159469667 - -6787132 #flapa # Example configuration.yaml entry for the notifier notify: - platform: telegram name: flapa chat_id: -6787132 notify: - platform: telegram name: iwanttobefreakbot chat_id: 4982505 spotcast: sp_dc: AQAjymyUv070OWOyv5u-HyplwYcs6xh2DQu5mZc6icKg3lE1hTc2X_AbcbV5DnlpZHrh6K-wKdn2q5BfTv9590383vOsMBr337s763IVx0s sp_key: 412dd508-76d6-488b-a6e9-b04763146713 camera: - platform: xiaomi name: Camera host: "192.168.1.69" model: "yi" password: josejose # Example configuration.yaml entry sensor: - platform: miflora mac: "C4:7C:8D:6C:32:14" name: Flower1 force_update: true # median: 3 monitored_conditions: - moisture - light - temperature - conductivity - battery scan_interval: 60 - platform: miflora mac: "C4:7C:8D:6C:13:75" name: Flower2 force_update: true # median: 3 monitored_conditions: - moisture - light - temperature - conductivity - battery scan_interval: 60 - platform: miflora mac: "C4:7C:8D:6C:0A:98" name: Flower3 force_update: true # median: 3 monitored_conditions: - moisture - light - temperature - conductivity - battery scan_interval: 60 - platform: miflora mac: "C4:7C:8D:6C:16:60" name: Flower4 force_update: true # median: 3 monitored_conditions: - moisture - light - temperature - conductivity - battery scan_interval: 60 plant: # Orchidaceae, Phalaenopsis huerto: sensors: moisture: sensor.flower1_moisture battery: sensor.flower1_battery temperature: sensor.flower1_temperature conductivity: sensor.flower1_conductivity brightness: sensor.flower1_light_intensity min_moisture: 15 max_moisture: 65 min_battery: 20 min_conductivity: 350 max_conductivity: 2000 min_temperature: 15 max_temperature: 32 min_brightness: 2000 max_brightness: 30000 # check_days: 3 # Orchidaceae, Phalaenopsis semillero: sensors: moisture: sensor.flower2_moisture battery: sensor.flower2_battery temperature: sensor.flower2_temperature conductivity: sensor.flower2_conductivity brightness: sensor.flower2_light_intensity min_moisture: 15 max_moisture: 65 min_battery: 20 min_conductivity: 350 max_conductivity: 2000 min_temperature: 15 max_temperature: 32 min_brightness: 2000 max_brightness: 30000 # check_days: 3 ===== automations.yaml ===== - id: '1613307688481' alias: ENTER 6 description: '' trigger: - device_id: 1f4a20a645122541a7a8d01f45bcd285 domain: deconz platform: device type: remote_double_tap subtype: side_6 condition: [] action: - service: androidtv.adb_command data: entity_id: media_player.fire_tv command: ENTER - delay: hours: 0 minutes: 0 seconds: 2 milliseconds: 0 - service: androidtv.adb_command data: entity_id: media_player.fire_tv command: ENTER mode: single - id: '1613312665653' alias: Xevi description: '' trigger: - device_id: 1f4a20a645122541a7a8d01f45bcd285 domain: deconz platform: device type: remote_double_tap subtype: side_5 condition: [] action: - service: media_player.select_source data: entity_id: media_player.fire_tv source: com.amazon.bueller.photos entity_id: media_player.fire_tv - service: androidtv.adb_command data: entity_id: media_player.fire_tv command: ENTER - service: androidtv.adb_command data: entity_id: media_player.fire_tv command: UP - service: androidtv.adb_command data: entity_id: media_player.fire_tv command: UP - service: androidtv.adb_command data: entity_id: media_player.fire_tv command: ENTER - delay: hours: 0 minutes: 0 seconds: 2 milliseconds: 0 - service: androidtv.adb_command data: entity_id: media_player.fire_tv command: ENTER mode: single - id: '1613312746739' alias: ENTER 1 description: '' trigger: - device_id: 1f4a20a645122541a7a8d01f45bcd285 domain: deconz platform: device type: remote_double_tap subtype: side_1 condition: [] action: - service: androidtv.adb_command data: entity_id: media_player.fire_tv command: ENTER - delay: hours: 0 minutes: 0 seconds: 2 milliseconds: 0 - service: androidtv.adb_command data: entity_id: media_player.fire_tv command: ENTER mode: single - id: '1613312758462' alias: ENTER 2 description: '' trigger: - device_id: 1f4a20a645122541a7a8d01f45bcd285 domain: deconz platform: device type: remote_double_tap subtype: side_2 condition: [] action: - service: androidtv.adb_command data: entity_id: media_player.fire_tv command: ENTER - delay: hours: 0 minutes: 0 seconds: 2 milliseconds: 0 - service: androidtv.adb_command data: entity_id: media_player.fire_tv command: ENTER mode: single - id: '1613312769387' alias: ENTER 3 description: '' trigger: - device_id: 1f4a20a645122541a7a8d01f45bcd285 domain: deconz platform: device type: remote_double_tap subtype: side_3 condition: [] action: - service: androidtv.adb_command data: entity_id: media_player.fire_tv command: ENTER - delay: hours: 0 minutes: 0 seconds: 2 milliseconds: 0 - service: androidtv.adb_command data: entity_id: media_player.fire_tv command: ENTER mode: single - id: '1613312786726' alias: ENTER 4 description: '' trigger: - device_id: 1f4a20a645122541a7a8d01f45bcd285 domain: deconz platform: device type: remote_double_tap subtype: side_4 condition: [] action: - service: androidtv.adb_command data: entity_id: media_player.fire_tv command: ENTER - delay: hours: 0 minutes: 0 seconds: 2 milliseconds: 0 - service: androidtv.adb_command data: entity_id: media_player.fire_tv command: ENTER mode: single - id: '1613314696572' alias: Spotify Shake description: '' trigger: - device_id: 1f4a20a645122541a7a8d01f45bcd285 domain: deconz platform: device type: remote_gyro_activated subtype: '' condition: [] action: - service: media_player.play_media data: entity_id: media_player.spotify_joselegido media_content_id: https://open.spotify.com/track/4xT7m4RMRecUXjB8yMQCSc?si=IV844V-8SueimOVtI6btTg media_content_type: track entity_id: media_player.spotify_joselegido mode: single - id: '1613319958790' alias: Roberto description: '' trigger: - device_id: 10904919fd7ec38683f3a7adf4ee823b domain: deconz platform: device type: remote_double_tap subtype: side_1 condition: [] action: - service: androidtv.adb_command data: entity_id: media_player.fire_tv command: BACK - service: androidtv.adb_command data: entity_id: media_player.fire_tv command: BACK - service: androidtv.adb_command data: entity_id: media_player.fire_tv command: BACK - service: androidtv.adb_command data: entity_id: media_player.fire_tv command: BACK - service: media_player.select_source data: entity_id: media_player.fire_tv source: com.amazon.bueller.photos entity_id: media_player.fire_tv - service: androidtv.adb_command data: entity_id: media_player.fire_tv command: RIGHT - service: androidtv.adb_command data: entity_id: media_player.fire_tv command: RIGHT - service: androidtv.adb_command data: entity_id: media_player.fire_tv command: RIGHT - service: androidtv.adb_command data: entity_id: media_player.fire_tv command: RIGHT - service: androidtv.adb_command data: entity_id: media_player.fire_tv command: CENTER - service: androidtv.adb_command data: entity_id: media_player.fire_tv command: RIGHT - service: androidtv.adb_command data: entity_id: media_player.fire_tv command: RIGHT - service: androidtv.adb_command data: entity_id: media_player.fire_tv command: CENTER - service: androidtv.adb_command data: entity_id: media_player.fire_tv command: CENTER - service: androidtv.adb_command data: entity_id: media_player.fire_tv command: CENTER - service: androidtv.adb_command data: entity_id: media_player.fire_tv command: MOVE_HOME mode: single - id: '1613323308372' alias: Saja description: '' trigger: - device_id: 10904919fd7ec38683f3a7adf4ee823b domain: deconz platform: device type: remote_double_tap subtype: side_6 condition: [] action: - service: androidtv.adb_command data: entity_id: media_player.fire_tv command: BACK - service: androidtv.adb_command data: entity_id: media_player.fire_tv command: BACK - service: androidtv.adb_command data: entity_id: media_player.fire_tv command: BACK - service: androidtv.adb_command data: entity_id: media_player.fire_tv command: BACK - service: androidtv.adb_command data: entity_id: media_player.fire_tv command: CENTER - service: androidtv.adb_command data: entity_id: media_player.fire_tv command: RIGHT - service: androidtv.adb_command data: entity_id: media_player.fire_tv command: RIGHT - service: androidtv.adb_command data: entity_id: media_player.fire_tv command: RIGHT - service: androidtv.adb_command data: entity_id: media_player.fire_tv command: RIGHT - service: androidtv.adb_command data: entity_id: media_player.fire_tv command: RIGHT - service: androidtv.adb_command data: entity_id: media_player.fire_tv command: RIGHT - service: androidtv.adb_command data: entity_id: media_player.fire_tv command: RIGHT - service: androidtv.adb_command data: entity_id: media_player.fire_tv command: RIGHT - service: androidtv.adb_command data: entity_id: media_player.fire_tv command: RIGHT - service: androidtv.adb_command data: entity_id: media_player.fire_tv command: CENTER - service: androidtv.adb_command data: entity_id: media_player.fire_tv command: CENTER - service: androidtv.adb_command data: entity_id: media_player.fire_tv command: CENTER mode: single - id: '1613323419567' alias: Gorka description: '' trigger: - device_id: 10904919fd7ec38683f3a7adf4ee823b domain: deconz platform: device type: remote_double_tap subtype: side_4 condition: [] action: - service: androidtv.adb_command data: entity_id: media_player.fire_tv command: BACK - service: androidtv.adb_command data: entity_id: media_player.fire_tv command: BACK - service: androidtv.adb_command data: entity_id: media_player.fire_tv command: BACK - service: androidtv.adb_command data: entity_id: media_player.fire_tv command: BACK - service: androidtv.adb_command data: entity_id: media_player.fire_tv command: CENTER - service: androidtv.adb_command data: entity_id: media_player.fire_tv command: RIGHT - service: androidtv.adb_command data: entity_id: media_player.fire_tv command: RIGHT - service: androidtv.adb_command data: entity_id: media_player.fire_tv command: RIGHT - service: androidtv.adb_command data: entity_id: media_player.fire_tv command: CENTER - service: androidtv.adb_command data: entity_id: media_player.fire_tv command: CENTER - service: androidtv.adb_command data: entity_id: media_player.fire_tv command: CENTER mode: single - id: '1613323649158' alias: Shake Spotify description: '' trigger: - device_id: 10904919fd7ec38683f3a7adf4ee823b domain: deconz platform: device type: remote_gyro_activated subtype: '' condition: [] action: - service: media_player.play_media data: entity_id: media_player.spotify_joselegido media_content_id: https://open.spotify.com/track/4xT7m4RMRecUXjB8yMQCSc?si=IV844V-8SueimOVtI6btTg media_content_type: track entity_id: media_player.spotify_joselegido mode: single - id: '1613325327561' alias: New Automation description: '' trigger: - device_id: 10904919fd7ec38683f3a7adf4ee823b domain: deconz platform: device type: remote_falling subtype: '' condition: [] action: - service: media_player.play_media data: entity_id: media_player.google_home media_content_id: http://192.168.1.200/gang.mp3 media_content_type: music entity_id: media_player.google_home mode: single - id: flower1_moisture_unavailable_check alias: "Flower 1 sensors available" trigger: - entity_id: sensor.flower_1_moisture below: '10' platform: numeric_state action: - data: message: "Humedad por debajo de 50" service: notify.iwanttobefreakbot ====== Enlaces ====== https://www.youtube.com/watch?v=LeuHpBdwmag