#401 - Giving Neato a Voice in this house. Joanna, meet Neato.

This commit is contained in:
ccostan 2020-05-29 16:45:24 -04:00
parent 7c9517fafe
commit 2a7cab9e0d
7 changed files with 156 additions and 11 deletions

View File

@ -80,6 +80,9 @@
"upgrade_all": "Hierdurch werden all diese Repositories aktualisiert. Stelle sicher, dass du die Versionshinweise vorher gelesen hast.", "upgrade_all": "Hierdurch werden all diese Repositories aktualisiert. Stelle sicher, dass du die Versionshinweise vorher gelesen hast.",
"yes": "Ja" "yes": "Ja"
}, },
"menu": {
"dismiss": "Alle neuen Repositories ausblenden"
},
"options": { "options": {
"step": { "step": {
"user": { "user": {
@ -107,6 +110,9 @@
"restart": "Du musst Home Assistant neu starten.", "restart": "Du musst Home Assistant neu starten.",
"restart_pending": "Neustart ausstehend" "restart_pending": "Neustart ausstehend"
}, },
"repository_card": {
"dismiss": "Ausblenden"
},
"repository": { "repository": {
"add_to_lovelace": "Zu Lovelace hinzufügen", "add_to_lovelace": "Zu Lovelace hinzufügen",
"authors": "Autoren", "authors": "Autoren",
@ -191,6 +197,7 @@
"last_updated": "Zuletzt aktualisiert", "last_updated": "Zuletzt aktualisiert",
"name": "Name", "name": "Name",
"new_repositories": "Neue Repositories", "new_repositories": "Neue Repositories",
"new_repositories_note": "Hier werden über 10 neue Repositorys angezeigt. Wenn Sie alle als gelesen markieren möchten, klicken Sie auf die 3 Punkte in der oberen rechten Ecke und blenden sie alle aus.",
"pending_upgrades": "Ausstehende Upgrades", "pending_upgrades": "Ausstehende Upgrades",
"placeholder_search": "Suchbegriff eingeben…", "placeholder_search": "Suchbegriff eingeben…",
"sort": "Sortieren", "sort": "Sortieren",

View File

@ -24,9 +24,9 @@
"netdaemon": "NetDaemon", "netdaemon": "NetDaemon",
"netdaemon_apps": "NetDaemon Apps", "netdaemon_apps": "NetDaemon Apps",
"netdaemon_plural": "NetDaemon Apps", "netdaemon_plural": "NetDaemon Apps",
"plugin": "Plugin", "plugin": "Lovelace",
"plugin_plural": "Lovelace elements", "plugin_plural": "Lovelace elements",
"plugins": "Plugins", "plugins": "Lovelace elements",
"python_script": "Python Script", "python_script": "Python Script",
"python_script_plural": "Python Scripts", "python_script_plural": "Python Scripts",
"python_scripts": "Python Scripts", "python_scripts": "Python Scripts",
@ -94,6 +94,7 @@
"dialog_add_repo": { "dialog_add_repo": {
"limit": "Only the first 100 repositories are shown, use the search to filter what you need", "limit": "Only the first 100 repositories are shown, use the search to filter what you need",
"no_match": "No repositories found matching your filter", "no_match": "No repositories found matching your filter",
"sort_by": "Sort by",
"title": "Add repository" "title": "Add repository"
}, },
"dialog_custom_repositories": { "dialog_custom_repositories": {
@ -115,6 +116,7 @@
"version_installed": "Version installed" "version_installed": "Version installed"
}, },
"dialog_install": { "dialog_install": {
"restart": "Remember that you need to restart Home Assistant before changes to integrations (custom_components) are applied.",
"select_version": "Select version", "select_version": "Select version",
"show_beta": "Show beta versions", "show_beta": "Show beta versions",
"type": "Type", "type": "Type",
@ -149,6 +151,7 @@
"about": "About HACS", "about": "About HACS",
"clear": "Clear all new", "clear": "Clear all new",
"custom_repositories": "Custom repositories", "custom_repositories": "Custom repositories",
"dismiss": "Dismiss all new repositories",
"documentation": "Documentation", "documentation": "Documentation",
"open_issue": "Open issue", "open_issue": "Open issue",
"reload": "Reload window" "reload": "Reload window"
@ -181,6 +184,7 @@
"restart_pending": "Restart pending" "restart_pending": "Restart pending"
}, },
"repository_card": { "repository_card": {
"dismiss": "dismiss",
"hide": "Hide", "hide": "Hide",
"information": "Information", "information": "Information",
"new_repository": "New repository", "new_repository": "New repository",
@ -216,7 +220,7 @@
"note_plugin": "you still need to add it to your lovelace configuration ('ui-lovelace.yaml' or the raw UI config editor)", "note_plugin": "you still need to add it to your lovelace configuration ('ui-lovelace.yaml' or the raw UI config editor)",
"note_plugin_post_107": "you still need to add it to your lovelace configuration ('configuration.yaml' or the resource editor '\/config\/lovelace\/resources')", "note_plugin_post_107": "you still need to add it to your lovelace configuration ('configuration.yaml' or the resource editor '\/config\/lovelace\/resources')",
"open_issue": "Open issue", "open_issue": "Open issue",
"open_plugin": "Open plugin", "open_plugin": "Open element",
"reinstall": "Reinstall", "reinstall": "Reinstall",
"repository": "Repository", "repository": "Repository",
"restart_home_assistant": "Restart Home Assistant", "restart_home_assistant": "Restart Home Assistant",
@ -278,6 +282,7 @@
"last_updated": "Last updated", "last_updated": "Last updated",
"name": "Name", "name": "Name",
"new_repositories": "New Repositories", "new_repositories": "New Repositories",
"new_repositories_note": "You have over 10 new repositories showing here, if you want to clear them all click the 3 dots in the top right corner and dismiss all of them.",
"no_repositories": "No repositories", "no_repositories": "No repositories",
"no_repositories_desc1": "It seems like you don't have any repositories installed in this section yet.", "no_repositories_desc1": "It seems like you don't have any repositories installed in this section yet.",
"no_repositories_desc2": "Click on the + in the bottom corner to add your first!", "no_repositories_desc2": "Click on the + in the bottom corner to add your first!",

View File

@ -1,6 +1,7 @@
{ {
"common": { "common": {
"about": "Névjegy", "about": "Névjegy",
"add": "hozzáadás",
"appdaemon": "AppDaemon", "appdaemon": "AppDaemon",
"appdaemon_apps": "AppDaemon Appok", "appdaemon_apps": "AppDaemon Appok",
"appdaemon_plural": "AppDaemon appok", "appdaemon_plural": "AppDaemon appok",
@ -11,6 +12,7 @@
"documentation": "Dokumentáció", "documentation": "Dokumentáció",
"element": "bővítmény", "element": "bővítmény",
"hacs_is_disabled": "A HACS le van tiltva", "hacs_is_disabled": "A HACS le van tiltva",
"install": "Telepítés",
"installed": "Telepített", "installed": "Telepített",
"integration": "Integráció", "integration": "Integráció",
"integration_plural": "Integrációk", "integration_plural": "Integrációk",
@ -29,10 +31,13 @@
"python_script_plural": "Python szkriptek", "python_script_plural": "Python szkriptek",
"python_scripts": "Python Szkriptek", "python_scripts": "Python Szkriptek",
"repositories": "Tárolók", "repositories": "Tárolók",
"repository": "Tároló",
"settings": "beállítások", "settings": "beállítások",
"theme": "Téma", "theme": "Téma",
"theme_plural": "Témák", "theme_plural": "Témák",
"themes": "Témák", "themes": "Témák",
"uninstall": "Eltávolítás",
"update": "Frissítés",
"version": "Verzió" "version": "Verzió"
}, },
"config": { "config": {
@ -80,6 +85,71 @@
"upgrade_all": "Ez frissíteni fogja az összes tárolót. Győzödj meg róla, hogy elolvastad az összes kiadási megjegyzést, mielőtt továbblépnél.", "upgrade_all": "Ez frissíteni fogja az összes tárolót. Győzödj meg róla, hogy elolvastad az összes kiadási megjegyzést, mielőtt továbblépnél.",
"yes": "Igen" "yes": "Igen"
}, },
"dialog_about": {
"frontend_version": "Frontend verzió",
"installed_repositories": "Telepített tárolók",
"integration_version": "Integráció verzió",
"useful_links": "Hasznos linkek"
},
"dialog_add_repo": {
"limit": "Csak az első 100 tároló jelenik meg, használd a keresőt a találatok szűkítéséhez",
"no_match": "Nincs a szűrőnek megfelelő tároló",
"title": "Tároló hozzáadása"
},
"dialog_custom_repositories": {
"category": "Kategória",
"no_category": "Hiányzó kategória",
"no_repository": "Hiányzó tároló",
"title": "Egyéni tárolók",
"url_placeholder": "Egyéni tároló URL címének hozzáadása"
},
"dialog_info": {
"author": "Szerző",
"downloads": "Letöltések",
"install": "Tároló telepítése HACS-ben",
"loading": "Információ betöltése...",
"no_info": "A fejlesztő nem adott meg több információt ehhez a tárolóhoz",
"open_repo": "Tároló megnyitása",
"stars": "Csillagok",
"version_installed": "Telepített verzió"
},
"dialog_install": {
"select_version": "Verzió kiválasztása",
"show_beta": "Béta verziók megjelenítése",
"type": "Típus",
"url": "URL"
},
"dialog_update": {
"available_version": "Elérhető verzió",
"changelog": "Változási napló",
"installed_version": "Telepített verzió",
"title": "Frissítés függőben"
},
"entry": {
"information": "Információ",
"messages": {
"disabled": {
"content": "További részletek a naplófájlban",
"title": "A HACS le van tiltva"
},
"has_pending_tasks": {
"title": "Függőben lévő háttérfeladatok"
},
"startup": {
"content": "A HACS éppen indul, ezidő alatt egyes információk hiányozhatnak vagy helytelenek lehetnek",
"title": "A HACS indul"
}
},
"pending_updates": "Függő frissítések"
},
"menu": {
"about": "HACS névjegye",
"clear": "Új jelölések törlése",
"custom_repositories": "Egyéni tárolók",
"documentation": "Dokumentáció",
"open_issue": "Probléma jelentése",
"reload": "Ablak újratöltése"
},
"options": { "options": {
"step": { "step": {
"user": { "user": {
@ -107,6 +177,17 @@
"restart": "Indítsd újra a Home Assistant programot.", "restart": "Indítsd újra a Home Assistant programot.",
"restart_pending": "Újraindítás függőben" "restart_pending": "Újraindítás függőben"
}, },
"repository_card": {
"hide": "Elrejtés",
"information": "Információ",
"new_repository": "Új tároló",
"open_issue": "Probléma jelentése",
"open_source": "Forrás megnyitása",
"pending_update": "Függő frissítés",
"reinstall": "Újratelepítés",
"report": "Jelentés eltávolításra",
"update_information": "Frissítési információk"
},
"repository": { "repository": {
"add_to_lovelace": "Hozzáadás a Lovelace-hez", "add_to_lovelace": "Hozzáadás a Lovelace-hez",
"authors": "Szerzők", "authors": "Szerzők",
@ -141,6 +222,9 @@
"update_information": "Frissítési információk", "update_information": "Frissítési információk",
"upgrade": "Frissítés" "upgrade": "Frissítés"
}, },
"search": {
"placeholder": "Tároló keresése"
},
"sections": { "sections": {
"about": { "about": {
"description": "Információk megjelenítése a HACS-ről", "description": "Információk megjelenítése a HACS-ről",
@ -191,6 +275,8 @@
"last_updated": "Utolsó frissítés", "last_updated": "Utolsó frissítés",
"name": "Név", "name": "Név",
"new_repositories": "Új tárolók", "new_repositories": "Új tárolók",
"no_repositories": "Nincs tároló",
"no_repositories_desc1": "Úgy tűnik, még nincsenek telepítve tárolók ebben a részben.",
"pending_upgrades": "Függőben lévő frissítések", "pending_upgrades": "Függőben lévő frissítések",
"placeholder_search": "Kérlek adj meg egy keresési kifejezést...", "placeholder_search": "Kérlek adj meg egy keresési kifejezést...",
"sort": "rendezés", "sort": "rendezés",

View File

@ -198,11 +198,12 @@ async def async_remove_entry(hass, config_entry):
hacs.logger.info("Removing recuring tasks") hacs.logger.info("Removing recuring tasks")
for task in hacs.recuring_tasks: for task in hacs.recuring_tasks:
task() task()
hacs.logger.info("Removing sensor") if config_entry.state == "loaded":
try: hacs.logger.info("Removing sensor")
await hass.config_entries.async_forward_entry_unload(config_entry, "sensor") try:
except ValueError: await hass.config_entries.async_forward_entry_unload(config_entry, "sensor")
pass except ValueError:
pass
hacs.logger.info("Removing sidepanel") hacs.logger.info("Removing sidepanel")
try: try:
hass.components.frontend.async_remove_panel("hacs") hass.components.frontend.async_remove_panel("hacs")

View File

@ -1,7 +1,7 @@
"""Constants for HACS""" """Constants for HACS"""
NAME_LONG = "HACS (Home Assistant Community Store)" NAME_LONG = "HACS (Home Assistant Community Store)"
NAME_SHORT = "HACS" NAME_SHORT = "HACS"
VERSION = "1.0.1" VERSION = "1.0.3"
DOMAIN = "hacs" DOMAIN = "hacs"
PROJECT_URL = "https://github.com/hacs/integration/" PROJECT_URL = "https://github.com/hacs/integration/"
CUSTOM_UPDATER_LOCATIONS = [ CUSTOM_UPDATER_LOCATIONS = [

View File

@ -14,7 +14,7 @@
"aiofiles==0.5.0", "aiofiles==0.5.0",
"aiogithubapi==1.0.4", "aiogithubapi==1.0.4",
"backoff==1.10.0", "backoff==1.10.0",
"hacs_frontend==20200522122100", "hacs_frontend==202005242033",
"integrationhelper==0.2.2", "integrationhelper==0.2.2",
"semantic_version==2.8.5", "semantic_version==2.8.5",
"queueman==0.5" "queueman==0.5"

View File

@ -5,7 +5,7 @@
#------------------------------------------- #-------------------------------------------
############################################################################## ##############################################################################
### Automations - Detect when things are not right. Like any Good Watchdog. ### Automations - Tweet out When neato is heading back to his Dock for recharging.
############################################################################## ##############################################################################
automation: automation:
- alias: 'Vacuum -Tweet' - alias: 'Vacuum -Tweet'
@ -40,3 +40,49 @@ automation:
{{ [ {{ [
"/config/www/custom_ui/floorplan/images/branding/neato.png" "/config/www/custom_ui/floorplan/images/branding/neato.png"
] | random }} ] | random }}
##############################################################################
### Automations - Help Neato!
##############################################################################
- alias: 'Help Neato'
trigger:
- platform: state
entity_id: vacuum.carlo_neato
to: 'error'
- platform: event
event_type: event_did_someone_help
condition:
- condition: state
entity_id: vacuum.carlo_neato
state: 'error'
action:
- wait_template: >-
{{ states.group.family.state == 'home' }}
- service: script.speech_engine
data_template:
value1: >
{{ [
"Neato is asking for help. The error reported is {{ trigger.to_state.attributes.status }}. Please find him and help him.",
"Please be nice and help Neato. He is complaining about {{ trigger.to_state.attributes.status }}",
"If you don't want to vacuum, you need to help Neato. He is complaining about {{ trigger.to_state.attributes.status }} and needs help.",
"Something is wrong with Neato. Please find him and help him. I have detected a {{ trigger.to_state.attributes.status }} error."
] | random }}
- service: vacuum.locate
entity_id: vacuum.carlo_neato
- service: script.notify_engine
data_template:
title: 'Help Neato'
value1: '{{ trigger.to_state.attributes.status }}'
who: 'family'
ios_category: 'camera'
camera_entity: 'camera.carlo_neato_cleaning_map'
content_type: 'jpeg'
- delay: 00:20:00
- event: event_did_someone_help