diff --git a/README.md b/README.md index f9d9ee0..1be45c1 100644 --- a/README.md +++ b/README.md @@ -66,22 +66,25 @@ pip install -r requirements.txt ``` ## Examples -* " Hey Mycroft, turn on Diningroom Light" +* "Hey Mycroft, turn on Diningroom Light" * "Hey Mycroft, switch off Kitchen Light" * "Hey Mycroft, put on Good Night" * "Hey Mycroft, what is Good Night status?" +* "Hey Mycroft, what is the status of Good Night?" * "Hey Mycroft, set Diningroom to 50 percent" * "Hey Mycroft, dim Kitchen" -* "Hey Mycroft, brighten Kitchen" +* "Hey Mycroft, bright Kitchen" * "Hey Mycroft, dim Kitchen by 20 percent" * "Hey Mycroft, what's Bedroom temperature?" -* "Hey Mycroft, what's Bedroom humidity?" +* "Hey Mycroft, tell me the temperature of Bedroom" +* "Hey Mycroft, what's the Bedroom humidity?" +* "Hey Mycroft, I'd like to know the humidity of Bedroom" * "Hey Mycroft, adjust Main Thermostat to 21 degrees" * "Hey Mycroft, regulate Main Thermostat to 20 degrees" * "Hey Mycroft, decrease Main Thermostat by 2 degrees" * "Hey Mycroft, increase Main Thermostat by 1 degrees" -* "Hey Mycroft, what is Main Thermostat regulated to?" -* "Hey Mycroft, what is Main Thermostat tuned to?" +* "Hey Mycroft, what is Main Thermostat is regulated to?" +* "Hey Mycroft, how the Main Thermostat tuned to?" ## Credits @mortommy diff --git a/USAGE.md b/USAGE.md index ae09c06..c7bd1f1 100644 --- a/USAGE.md +++ b/USAGE.md @@ -118,8 +118,8 @@ Each item tag supports different command, here is the summary: | | put | on, off | | | dim | | | | dim by | value in percentage | -| | brighten | | -| | brighten by | value in percentage | +| | bright | | +| | bright by | value in percentage | | | | | | `Thermostat` | adjust to | values in degrees | | | regulate to | values in degrees | @@ -136,22 +136,25 @@ Each item tag supports different command, here is the summary: With references to the above item definitions, here are an examples of working commands: -- *"Hey Mycroft, turn on Diningroom Light"* -- *"Hey Mycroft, switch off Kitchen Light"* -- *"Hey Mycroft, put on Good Night"* -- *"Hey Mycroft, what is Good Night status?"* -- *"Hey Mycroft, set Diningroom to 50 percent"* -- *"Hey Mycroft, dim Kitchen"* -- *"Hey Mycroft, brighten Kitchen"* -- *"Hey Mycroft, dim Kitchen by 20 percent"* -- *"Hey Mycroft, what's Bedroom temperature?"* -- *"Hey Mycroft, what's Bedroom humidity?"* -- *"Hey Mycroft, adjust Main Thermostat to 21 degrees"* -- *"Hey Mycroft, regulate Main Thermostat to 20 degrees"* -- *"Hey Mycroft, decrease Main Thermostat by 2 degrees"* -- *"Hey Mycroft, increase Main Thermostat by 1 degrees"* -- *"Hey Mycroft, what is Main Thermostat regulated to?"* -- *"Hey Mycroft, what is Main Thermostat tuned to?"* +- * "Hey Mycroft, turn on Diningroom Light" +- * "Hey Mycroft, switch off Kitchen Light" +- * "Hey Mycroft, put on Good Night" +- * "Hey Mycroft, what is Good Night status?" +- * "Hey Mycroft, what is the status of Good Night?" +- * "Hey Mycroft, set Diningroom to 50 percent" +- * "Hey Mycroft, dim Kitchen" +- * "Hey Mycroft, bright Kitchen" +- * "Hey Mycroft, dim Kitchen by 20 percent" +- * "Hey Mycroft, what's Bedroom temperature?" +- * "Hey Mycroft, tell me the temperature of Bedroom" +- * "Hey Mycroft, what's the Bedroom humidity?" +- * "Hey Mycroft, I'd like to know the humidity of Bedroom" +- * "Hey Mycroft, adjust Main Thermostat to 21 degrees" +- * "Hey Mycroft, regulate Main Thermostat to 20 degrees" +- * "Hey Mycroft, decrease Main Thermostat by 2 degrees" +- * "Hey Mycroft, increase Main Thermostat by 1 degrees" +- * "Hey Mycroft, what is Main Thermostat is regulated to?" +- * "Hey Mycroft, how the Main Thermostat tuned to?" ### Additional Comments diff --git a/__init__.py b/__init__.py index 98468b8..7b847ba 100644 --- a/__init__.py +++ b/__init__.py @@ -16,7 +16,7 @@ from os.path import dirname from adapt.intent import IntentBuilder -from mycroft.skills.core import MycroftSkill +from mycroft.skills.core import MycroftSkill, intent_handler from mycroft.util.log import getLogger from fuzzywuzzy import fuzz @@ -71,6 +71,7 @@ class openHABSkill(MycroftSkill): self.shutdown() self.handle_websettings_update() + if self.url is not None: self.getTaggedItems() else: @@ -85,8 +86,11 @@ class openHABSkill(MycroftSkill): dimmer_status_intent = IntentBuilder("Dimmer_StatusIntent").require("DimmerStatusKeyword").require("Item").optionally("BrightPercentage").build() self.register_intent(dimmer_status_intent, self.handle_dimmer_status_intent) - what_status_intent = IntentBuilder("What_StatusIntent").require("WhatStatusKeyword").require("Item").require("RequestType").build() - self.register_intent(what_status_intent, self.handle_what_status_intent) + #what_status_intent = IntentBuilder("What_StatusIntent").require("WhatStatusKeyword").require("Item").require("RequestType").build() + #self.register_intent(what_status_intent, self.handle_what_status_intent) + self.register_entity_file('item.entity') + self.register_entity_file('requesttype.entity') + self.register_intent_file('what.status.intent',self.handle_what_status_intent) setTemp_status_intent = IntentBuilder("SetTemp_StatusIntent").require("ThermostatStatusKeyword").require("Item").require("TempValue").build() self.register_intent(setTemp_status_intent, self.handle_setTemp_status_intent) @@ -231,8 +235,9 @@ class openHABSkill(MycroftSkill): ohItem = self.findItemName(self.lightingItemsDic, messageItem) if ohItem != None: - if ((command == "set") or (command == "imposta") or (command == "setze") or (command == "pone")): - if ((int(brightValue) < 0) or (int(brightValue) > 100)): + #if ((command == "set") or (command == "imposta") or (command == "setze") or (command == "pone")): + if self.voc_match(command, 'Set'): + if ((brightValue == None) or (int(brightValue) < 0) or (int(brightValue) > 100)): self.speak_dialog('ErrorDialog') else: statusCode = self.sendCommandToItem(ohItem, brightValue) @@ -247,7 +252,8 @@ class openHABSkill(MycroftSkill): if(brightValue == None): brightValue = "10" - if ((command == "dim") or (command == "abbassa") or (command == "dimme") or (command == "oscurece")): + #if ((command == "dim") or (command == "abbassa") or (command == "dimme") or (command == "oscurece")): + if self.voc_match(command, 'Dim'): newBrightValue = curBright-(int(brightValue)) else: newBrightValue = curBright+(int(brightValue)) @@ -277,51 +283,64 @@ class openHABSkill(MycroftSkill): LOGGER.error("Item not found!") self.speak_dialog('ItemNotFoundError') - def handle_what_status_intent(self, message): - messageItem = message.data.get('Item') - requestType = message.data.get('RequestType') + def handle_what_status_intent(self, message): - unitOfMeasure = "degree" - infoType = "temperature" - - if (self.lang == "it-it"): - unitOfMeasure = "gradi" - infoType = "temperatura" - - if (self.lang == "de-de"): - unitOfMeasure = "Grad" - infoType = "Temperatur" - - if (self.lang == "es-es"): - unitOfMeasure = "grados" - infoType = "temperatura" + messageItem = message.data.get('item') + LOGGER.debug("Item: %s" % (messageItem)) + requestType = message.data.get('requesttype') + LOGGER.debug("Request Type: %s" % (requestType)) + + unitOfMeasure = self.translate('Degree') + #unitOfMeasure = "degree" + infoType = self.translate('Temperature') + #infoType = "temperature" + + # if (self.lang == "it-it"): + # unitOfMeasure = "gradi" + # infoType = "temperatura" + + # if (self.lang == "de-de"): + # unitOfMeasure = "Grad" + # infoType = "Temperatur" + + # if (self.lang == "es-es"): + # unitOfMeasure = "grados" + # infoType = "temperatura" self.currStatusItemsDic = dict() - if((requestType == "temperature") or (requestType == "la temperatura") or (requestType == "temperatur") or (requestType == "temperatura")): + #if((requestType == "temperature") or (requestType == "la temperatura") or (requestType == "temperatur") or (requestType == "temperatura")): + if self.voc_match(requestType, 'Temperature'): self.currStatusItemsDic.update(self.currentTempItemsDic) - elif((requestType == "humidity") or (requestType == "l'umidità") or (requestType == "Feuchtigkeit") or (requestType == "humedad")): - unitOfMeasure = "percentage" - infoType = "humidity" - if (self.lang == "it-it"): - unitOfMeasure = "percento" - infoType = "umidità" - if (self.lang == "de-de"): - unitOfMeasure = "Prozentsatz" - infoType = "Feuchtigkeit" - if (self.lang == "es-es"): - unitOfMeasure = "porciento" - infoType = "humedad" + #elif((requestType == "humidity") or (requestType == "l'umidità") or (requestType == "Feuchtigkeit") or (requestType == "humedad")): + elif self.voc_match(requestType, 'Humidity'): + #unitOfMeasure = "percentage" + unitOfMeasure = self.translate('Percentage') + #infoType = "humidity" + infoType = self.translate('Humidity') + # if (self.lang == "it-it"): + # unitOfMeasure = "percento" + # infoType = "umidità" + # if (self.lang == "de-de"): + # unitOfMeasure = "Prozentsatz" + # infoType = "Feuchtigkeit" + # if (self.lang == "es-es"): + # unitOfMeasure = "porciento" + # infoType = "humedad" self.currStatusItemsDic.update(self.currentHumItemsDic) - elif((requestType == "status") or (requestType == "lo stato") or (requestType == "Status") or (requestType == "estado")): - infoType = "status" + #elif((requestType == "status") or (requestType == "lo stato") or (requestType == "Status") or (requestType == "estado")): + elif self.voc_match(requestType, 'Status'): + #infoType = "status" + infoType = self.translate('Status') unitOfMeasure = "" - if (self.lang == "it-it"): - unitOfMeasure = "stato" - if (self.lang == "de-de"): - unitOfMeasure = "Status" - if (self.lang == "es-es"): - unitOfMeasure = "estado" + # if (self.lang == "it-it"): + # unitOfMeasure = "stato" + + # if (self.lang == "de-de"): + # unitOfMeasure = "Status" + + # if (self.lang == "es-es"): + # unitOfMeasure = "estado" self.currStatusItemsDic.update(self.switchableItemsDic) else: self.currStatusItemsDic.update(self.targetTemperatureItemsDic) @@ -346,13 +365,15 @@ class openHABSkill(MycroftSkill): ohItem = self.findItemName(self.targetTemperatureItemsDic, messageItem) if ohItem != None: - if((command == "regulate") or (command == "adjust") or (command == "tune") or (command == "regola") or (command == "aggiusta") or (command == "metti") or (command == "reguliere") or (command == "stell") or (command == "pass") or (command == "regula") or (command == "ajusta") or (command == "afina")): + #if((command == "regulate") or (command == "adjust") or (command == "tune") or (command == "regola") or (command == "aggiusta") or (command == "metti") or (command == "reguliere") or (command == "stell") or (command == "pass") or (command == "regula") or (command == "ajusta") or (command == "afina")): + if self.voc_match(command, 'Regulate'): statusCode = self.sendCommandToItem(ohItem, tempVal) newTempValue = tempVal else: state = self.getCurrentItemStatus(ohItem) if ((state != None) and (state.isdigit())): - if ((command == "increase") or (command == "incrementa") or (command == "erhöhe") or (command == "aumenta")): + #if ((command == "increase") or (command == "incrementa") or (command == "erhöhe") or (command == "aumenta")): + if self.voc_match(command, 'Increase'): newTempValue = int(state)+(int(tempVal)) else: newTempValue = int(state)-(int(tempVal)) diff --git a/dialog/de-de/ConfigurationNeeded.dialog b/dialog/de-de/ConfigurationNeeded.dialog new file mode 100644 index 0000000..7811d59 --- /dev/null +++ b/dialog/de-de/ConfigurationNeeded.dialog @@ -0,0 +1 @@ +Fügen Sie Ihre Open Hab Systemkonfiguration auf der Konfigurationsseite hinzu home Punkt mycroft Punkt AI \ No newline at end of file diff --git a/dialog/de-de/Degree.dialog b/dialog/de-de/Degree.dialog new file mode 100644 index 0000000..5ca0f11 --- /dev/null +++ b/dialog/de-de/Degree.dialog @@ -0,0 +1 @@ +Grad \ No newline at end of file diff --git a/dialog/de-de/Humidity.dialog b/dialog/de-de/Humidity.dialog new file mode 100644 index 0000000..30f044d --- /dev/null +++ b/dialog/de-de/Humidity.dialog @@ -0,0 +1 @@ +Feuchtigkeit \ No newline at end of file diff --git a/dialog/de-de/Percentage.dialog b/dialog/de-de/Percentage.dialog new file mode 100644 index 0000000..86003a8 --- /dev/null +++ b/dialog/de-de/Percentage.dialog @@ -0,0 +1 @@ +Prozentsatz \ No newline at end of file diff --git a/dialog/de-de/Status.dialog b/dialog/de-de/Status.dialog new file mode 100644 index 0000000..3272fb3 --- /dev/null +++ b/dialog/de-de/Status.dialog @@ -0,0 +1 @@ +Status \ No newline at end of file diff --git a/dialog/de-de/Temperature.dialog b/dialog/de-de/Temperature.dialog new file mode 100644 index 0000000..37ac1d8 --- /dev/null +++ b/dialog/de-de/Temperature.dialog @@ -0,0 +1 @@ +temperatur \ No newline at end of file diff --git a/dialog/en-us/Degree.dialog b/dialog/en-us/Degree.dialog new file mode 100644 index 0000000..a425898 --- /dev/null +++ b/dialog/en-us/Degree.dialog @@ -0,0 +1 @@ +degree \ No newline at end of file diff --git a/dialog/en-us/Humidity.dialog b/dialog/en-us/Humidity.dialog new file mode 100644 index 0000000..6506bbd --- /dev/null +++ b/dialog/en-us/Humidity.dialog @@ -0,0 +1 @@ +humidity \ No newline at end of file diff --git a/dialog/en-us/Percentage.dialog b/dialog/en-us/Percentage.dialog new file mode 100644 index 0000000..b82f710 --- /dev/null +++ b/dialog/en-us/Percentage.dialog @@ -0,0 +1 @@ +percentage \ No newline at end of file diff --git a/dialog/en-us/Status.dialog b/dialog/en-us/Status.dialog new file mode 100644 index 0000000..962a7f7 --- /dev/null +++ b/dialog/en-us/Status.dialog @@ -0,0 +1 @@ +status \ No newline at end of file diff --git a/dialog/en-us/Temperature.dialog b/dialog/en-us/Temperature.dialog new file mode 100644 index 0000000..4d81bb0 --- /dev/null +++ b/dialog/en-us/Temperature.dialog @@ -0,0 +1 @@ +temperature \ No newline at end of file diff --git a/dialog/es-es/ConfigurationNeeded.dialog b/dialog/es-es/ConfigurationNeeded.dialog new file mode 100644 index 0000000..d1235d3 --- /dev/null +++ b/dialog/es-es/ConfigurationNeeded.dialog @@ -0,0 +1 @@ +agregue la configuración de su sistema open hab en la página de configuración a home punto mycroft punto AI \ No newline at end of file diff --git a/dialog/es-es/Degree.dialog b/dialog/es-es/Degree.dialog new file mode 100644 index 0000000..e7923db --- /dev/null +++ b/dialog/es-es/Degree.dialog @@ -0,0 +1 @@ +grados \ No newline at end of file diff --git a/dialog/es-es/Humidity.dialog b/dialog/es-es/Humidity.dialog new file mode 100644 index 0000000..214bdab --- /dev/null +++ b/dialog/es-es/Humidity.dialog @@ -0,0 +1 @@ +humedad \ No newline at end of file diff --git a/dialog/es-es/Percentage.dialog b/dialog/es-es/Percentage.dialog new file mode 100644 index 0000000..a31cd7b --- /dev/null +++ b/dialog/es-es/Percentage.dialog @@ -0,0 +1 @@ +porciento \ No newline at end of file diff --git a/dialog/es-es/Status.voc b/dialog/es-es/Status.voc new file mode 100644 index 0000000..9b0659c --- /dev/null +++ b/dialog/es-es/Status.voc @@ -0,0 +1 @@ +estado \ No newline at end of file diff --git a/dialog/es-es/Temperature.dialog b/dialog/es-es/Temperature.dialog new file mode 100644 index 0000000..e6301e6 --- /dev/null +++ b/dialog/es-es/Temperature.dialog @@ -0,0 +1 @@ +temperatura \ No newline at end of file diff --git a/dialog/it-it/ConfigurationNeeded.dialog b/dialog/it-it/ConfigurationNeeded.dialog new file mode 100644 index 0000000..af59be8 --- /dev/null +++ b/dialog/it-it/ConfigurationNeeded.dialog @@ -0,0 +1 @@ +aggiungi la configurazione del tuo server open hab nella pagina impostazioni su home punto mycroft punto AI \ No newline at end of file diff --git a/dialog/it-it/Degree.dialog b/dialog/it-it/Degree.dialog new file mode 100644 index 0000000..3289639 --- /dev/null +++ b/dialog/it-it/Degree.dialog @@ -0,0 +1 @@ +gradi \ No newline at end of file diff --git a/dialog/it-it/GetItemsListError.dialog b/dialog/it-it/GetItemsListError.dialog index e37518d..105a87e 100644 --- a/dialog/it-it/GetItemsListError.dialog +++ b/dialog/it-it/GetItemsListError.dialog @@ -1 +1 @@ -Mi spiace, non posso ottenere la lista delle cose. +Mi spiace, non posso ottenere la lista delle cose open hab. diff --git a/dialog/it-it/Humidity.dialog b/dialog/it-it/Humidity.dialog new file mode 100644 index 0000000..63227ed --- /dev/null +++ b/dialog/it-it/Humidity.dialog @@ -0,0 +1 @@ +umidità \ No newline at end of file diff --git a/dialog/it-it/Percentage.dialog b/dialog/it-it/Percentage.dialog new file mode 100644 index 0000000..1b464b1 --- /dev/null +++ b/dialog/it-it/Percentage.dialog @@ -0,0 +1 @@ +percento \ No newline at end of file diff --git a/dialog/it-it/Status.dialog b/dialog/it-it/Status.dialog new file mode 100644 index 0000000..a827e8c --- /dev/null +++ b/dialog/it-it/Status.dialog @@ -0,0 +1 @@ +stato \ No newline at end of file diff --git a/dialog/it-it/StatusOnOff.dialog b/dialog/it-it/StatusOnOff.dialog index 0f2cd33..599f2a0 100644 --- a/dialog/it-it/StatusOnOff.dialog +++ b/dialog/it-it/StatusOnOff.dialog @@ -1,3 +1,2 @@ -metti {{command}} {{item}} -accendi {{command}} {{item}} -imposta {{command}} {{item}} +messo {{command}} per {{item}} +impostato {{command}} per {{item}} diff --git a/dialog/it-it/Temperature.dialog b/dialog/it-it/Temperature.dialog new file mode 100644 index 0000000..e6301e6 --- /dev/null +++ b/dialog/it-it/Temperature.dialog @@ -0,0 +1 @@ +temperatura \ No newline at end of file diff --git a/regex/de-de/dimmer_command.rx b/regex/de-de/dimmer_command.rx index a480b52..e252b61 100644 --- a/regex/de-de/dimmer_command.rx +++ b/regex/de-de/dimmer_command.rx @@ -1,2 +1,2 @@ -(setz) (?P.*) (auf) (?P\d*)(?: Prozent)? +(setz) (?P.*)(?: auf )?(?P\d+)(?: Prozent)? (dimme|erhelle) (?P.*?)\s*(?: um )?(?P\d*)?(?: Prozent)?$ diff --git a/regex/en-us/dimmer_command.rx b/regex/en-us/dimmer_command.rx index d1d8158..c94f266 100644 --- a/regex/en-us/dimmer_command.rx +++ b/regex/en-us/dimmer_command.rx @@ -1,2 +1,2 @@ -(set) (?P.*) (to) (?P\d*)(?: percent)? -(dim|bright) (?P.*?)\s*(?: by )?(?P\d*)?(?: percent)?$ +(set) (?P.*)(?: to )?(?P\d+)(?: percent)? +(dim|bright) (?P.*?)(?: by )?(?P\d*)?(?: percent)?$ diff --git a/regex/es-es/dimmer_command.rx b/regex/es-es/dimmer_command.rx index 02d75eb..0e05a75 100644 --- a/regex/es-es/dimmer_command.rx +++ b/regex/es-es/dimmer_command.rx @@ -1,2 +1,2 @@ -(pone) (?P.*) (to) (?P\d*)(?: porciento)? +(pone) (?P.*)(?: al )?(?P\d+)(?: porciento)? (oscurece|ilumina) (?P.*?)\s*(?: al )?(?P\d*)?(?: porciento)?$ diff --git a/regex/it-it/dimmer_command.rx b/regex/it-it/dimmer_command.rx index 19631a7..996f864 100644 --- a/regex/it-it/dimmer_command.rx +++ b/regex/it-it/dimmer_command.rx @@ -1,2 +1,2 @@ -(imposta) (?P.*) (al) (?P\d*)(?: percento)? +(imposta) (?P.*)(?: al )?(?P\d+)(?: percento)? (abbassa|alza) (?P.*?)\s*(?: del )?(?P\d*)?(?: percento)?$ diff --git a/vocab/de-de/Dim.voc b/vocab/de-de/Dim.voc new file mode 100644 index 0000000..4d709bd --- /dev/null +++ b/vocab/de-de/Dim.voc @@ -0,0 +1 @@ +dimme \ No newline at end of file diff --git a/vocab/de-de/Humidity.voc b/vocab/de-de/Humidity.voc new file mode 100644 index 0000000..30f044d --- /dev/null +++ b/vocab/de-de/Humidity.voc @@ -0,0 +1 @@ +Feuchtigkeit \ No newline at end of file diff --git a/vocab/de-de/Increase.voc b/vocab/de-de/Increase.voc new file mode 100644 index 0000000..e39c39a --- /dev/null +++ b/vocab/de-de/Increase.voc @@ -0,0 +1 @@ +erhöhe \ No newline at end of file diff --git a/vocab/de-de/Regulate.voc b/vocab/de-de/Regulate.voc new file mode 100644 index 0000000..81e8144 --- /dev/null +++ b/vocab/de-de/Regulate.voc @@ -0,0 +1,3 @@ +reguliere +stell +pass \ No newline at end of file diff --git a/vocab/de-de/Set.voc b/vocab/de-de/Set.voc new file mode 100644 index 0000000..ea5419c --- /dev/null +++ b/vocab/de-de/Set.voc @@ -0,0 +1 @@ +setze \ No newline at end of file diff --git a/vocab/de-de/Status.voc b/vocab/de-de/Status.voc new file mode 100644 index 0000000..3272fb3 --- /dev/null +++ b/vocab/de-de/Status.voc @@ -0,0 +1 @@ +Status \ No newline at end of file diff --git a/vocab/de-de/Temperature.voc b/vocab/de-de/Temperature.voc new file mode 100644 index 0000000..37ac1d8 --- /dev/null +++ b/vocab/de-de/Temperature.voc @@ -0,0 +1 @@ +temperatur \ No newline at end of file diff --git a/vocab/de-de/item.entity b/vocab/de-de/item.entity new file mode 100644 index 0000000..129d379 --- /dev/null +++ b/vocab/de-de/item.entity @@ -0,0 +1 @@ +:0 \ No newline at end of file diff --git a/vocab/de-de/requesttype.entity b/vocab/de-de/requesttype.entity new file mode 100644 index 0000000..7ab47c9 --- /dev/null +++ b/vocab/de-de/requesttype.entity @@ -0,0 +1,6 @@ +Status +Temperatur +Feuchtigkeit +eingestellt +reguliert +angepasst diff --git a/vocab/de-de/what.status.intent b/vocab/de-de/what.status.intent new file mode 100644 index 0000000..1446a13 --- /dev/null +++ b/vocab/de-de/what.status.intent @@ -0,0 +1,8 @@ +(was ist|wie ist|worauf ist) (der|die|) {item} {requesttype} +(was ist|wie ist|worauf ist) (der|die|) {requesttype} des {item} +Sag mir (der|die|) {item} {requesttype} +Sag mir (der|die|) {requesttype} des {item} +Sag mir wie ist (der|die|) {item} {requesttype} +Ich möchte wissen (der|die|) {item} {requesttype} +Ich möchte wissen (der|die|) {requesttype} des {item} +Ich möchte wissen wie ist (der|die|) {item} {requesttype} \ No newline at end of file diff --git a/vocab/en-us/Dim.voc b/vocab/en-us/Dim.voc new file mode 100644 index 0000000..1ec5977 --- /dev/null +++ b/vocab/en-us/Dim.voc @@ -0,0 +1 @@ +dim \ No newline at end of file diff --git a/vocab/en-us/Humidity.voc b/vocab/en-us/Humidity.voc new file mode 100644 index 0000000..6506bbd --- /dev/null +++ b/vocab/en-us/Humidity.voc @@ -0,0 +1 @@ +humidity \ No newline at end of file diff --git a/vocab/en-us/Increase.voc b/vocab/en-us/Increase.voc new file mode 100644 index 0000000..6892f5f --- /dev/null +++ b/vocab/en-us/Increase.voc @@ -0,0 +1 @@ +increase \ No newline at end of file diff --git a/vocab/en-us/Regulate.voc b/vocab/en-us/Regulate.voc new file mode 100644 index 0000000..88b64d3 --- /dev/null +++ b/vocab/en-us/Regulate.voc @@ -0,0 +1,3 @@ +regulate +adjust +tune \ No newline at end of file diff --git a/vocab/en-us/Set.voc b/vocab/en-us/Set.voc new file mode 100644 index 0000000..c2c88d0 --- /dev/null +++ b/vocab/en-us/Set.voc @@ -0,0 +1 @@ +set \ No newline at end of file diff --git a/vocab/en-us/Status.voc b/vocab/en-us/Status.voc new file mode 100644 index 0000000..962a7f7 --- /dev/null +++ b/vocab/en-us/Status.voc @@ -0,0 +1 @@ +status \ No newline at end of file diff --git a/vocab/en-us/Temperature.voc b/vocab/en-us/Temperature.voc new file mode 100644 index 0000000..4d81bb0 --- /dev/null +++ b/vocab/en-us/Temperature.voc @@ -0,0 +1 @@ +temperature \ No newline at end of file diff --git a/vocab/en-us/item.entity b/vocab/en-us/item.entity new file mode 100644 index 0000000..129d379 --- /dev/null +++ b/vocab/en-us/item.entity @@ -0,0 +1 @@ +:0 \ No newline at end of file diff --git a/vocab/en-us/requesttype.entity b/vocab/en-us/requesttype.entity new file mode 100644 index 0000000..7fea8ef --- /dev/null +++ b/vocab/en-us/requesttype.entity @@ -0,0 +1,6 @@ +status +temperature +humidity +adjusted to +regulated to +tuned to \ No newline at end of file diff --git a/vocab/en-us/what.status.intent b/vocab/en-us/what.status.intent new file mode 100644 index 0000000..e002b2a --- /dev/null +++ b/vocab/en-us/what.status.intent @@ -0,0 +1,9 @@ +(what's|what is) (the|) {item} {requesttype} +(what's|what is) (the|) {requesttype} of {item} +how (the| ) {item} is {requesttype} +tell me (the|) {item} {requesttype} +tell me (the|) {requesttype} of {item} +tell me how (the|) {item} is {requesttype} +I'd like to know {item} {requesttype} +I'd like to know (the|) {requesttype} of {item} +I'd like to know how (the|) {item} is {requesttype} \ No newline at end of file diff --git a/vocab/es-es/Dim.voc b/vocab/es-es/Dim.voc new file mode 100644 index 0000000..3e938e4 --- /dev/null +++ b/vocab/es-es/Dim.voc @@ -0,0 +1 @@ +oscurece \ No newline at end of file diff --git a/vocab/es-es/Humidity.voc b/vocab/es-es/Humidity.voc new file mode 100644 index 0000000..214bdab --- /dev/null +++ b/vocab/es-es/Humidity.voc @@ -0,0 +1 @@ +humedad \ No newline at end of file diff --git a/vocab/es-es/Increase.voc b/vocab/es-es/Increase.voc new file mode 100644 index 0000000..fc3f147 --- /dev/null +++ b/vocab/es-es/Increase.voc @@ -0,0 +1 @@ +aumenta \ No newline at end of file diff --git a/vocab/es-es/Regulate.voc b/vocab/es-es/Regulate.voc new file mode 100644 index 0000000..9997baa --- /dev/null +++ b/vocab/es-es/Regulate.voc @@ -0,0 +1,3 @@ +regula +ajusta +afina \ No newline at end of file diff --git a/vocab/es-es/Set.voc b/vocab/es-es/Set.voc new file mode 100644 index 0000000..d5f73dc --- /dev/null +++ b/vocab/es-es/Set.voc @@ -0,0 +1 @@ +pone \ No newline at end of file diff --git a/vocab/es-es/Status.voc b/vocab/es-es/Status.voc new file mode 100644 index 0000000..9b0659c --- /dev/null +++ b/vocab/es-es/Status.voc @@ -0,0 +1 @@ +estado \ No newline at end of file diff --git a/vocab/es-es/Temperature.voc b/vocab/es-es/Temperature.voc new file mode 100644 index 0000000..e6301e6 --- /dev/null +++ b/vocab/es-es/Temperature.voc @@ -0,0 +1 @@ +temperatura \ No newline at end of file diff --git a/vocab/es-es/item.entity b/vocab/es-es/item.entity new file mode 100644 index 0000000..129d379 --- /dev/null +++ b/vocab/es-es/item.entity @@ -0,0 +1 @@ +:0 \ No newline at end of file diff --git a/vocab/es-es/requesttype.entity b/vocab/es-es/requesttype.entity new file mode 100644 index 0000000..586f56a --- /dev/null +++ b/vocab/es-es/requesttype.entity @@ -0,0 +1,4 @@ +estado +temperatura +humedad +ajustes diff --git a/vocab/es-es/what.status.intent b/vocab/es-es/what.status.intent new file mode 100644 index 0000000..6b2d140 --- /dev/null +++ b/vocab/es-es/what.status.intent @@ -0,0 +1,3 @@ +(el elemento|) {item} (qué|cuál) {requesttype} tiene +Quiero saber (qué|cuál|cómo|) (el elemento|) {item} {requesttype} tiene +dime (qué|cuál|cómo|) (el elemento|) {item} {requesttype} (tiene|) \ No newline at end of file diff --git a/vocab/it-it/Dim.voc b/vocab/it-it/Dim.voc new file mode 100644 index 0000000..ac6838d --- /dev/null +++ b/vocab/it-it/Dim.voc @@ -0,0 +1 @@ +abbassa \ No newline at end of file diff --git a/vocab/it-it/Humidity.voc b/vocab/it-it/Humidity.voc new file mode 100644 index 0000000..4d7fa08 --- /dev/null +++ b/vocab/it-it/Humidity.voc @@ -0,0 +1 @@ +l'umidità \ No newline at end of file diff --git a/vocab/it-it/Increase.voc b/vocab/it-it/Increase.voc new file mode 100644 index 0000000..7f622c7 --- /dev/null +++ b/vocab/it-it/Increase.voc @@ -0,0 +1 @@ +incrementa \ No newline at end of file diff --git a/vocab/it-it/RefreshTaggedItemsKeyword.voc b/vocab/it-it/RefreshTaggedItemsKeyword.voc index ca7fcc0..f2a22fb 100644 --- a/vocab/it-it/RefreshTaggedItemsKeyword.voc +++ b/vocab/it-it/RefreshTaggedItemsKeyword.voc @@ -1,2 +1,4 @@ aggiorna elementi openhab -aggiorna elementi open hab \ No newline at end of file +aggiorna elementi open hab +aggiorna gli elementi di openhab +aggiorna gli elementi di open hab \ No newline at end of file diff --git a/vocab/it-it/Regulate.voc b/vocab/it-it/Regulate.voc new file mode 100644 index 0000000..afc8723 --- /dev/null +++ b/vocab/it-it/Regulate.voc @@ -0,0 +1,3 @@ +regola +aggiusta +metti \ No newline at end of file diff --git a/vocab/it-it/Set.voc b/vocab/it-it/Set.voc new file mode 100644 index 0000000..86559b4 --- /dev/null +++ b/vocab/it-it/Set.voc @@ -0,0 +1 @@ +imposta \ No newline at end of file diff --git a/vocab/it-it/Status.voc b/vocab/it-it/Status.voc new file mode 100644 index 0000000..a21debe --- /dev/null +++ b/vocab/it-it/Status.voc @@ -0,0 +1 @@ +lo stato \ No newline at end of file diff --git a/vocab/it-it/Temperature.voc b/vocab/it-it/Temperature.voc new file mode 100644 index 0000000..a320f27 --- /dev/null +++ b/vocab/it-it/Temperature.voc @@ -0,0 +1 @@ +la temperatura \ No newline at end of file diff --git a/vocab/it-it/item.entity b/vocab/it-it/item.entity new file mode 100644 index 0000000..129d379 --- /dev/null +++ b/vocab/it-it/item.entity @@ -0,0 +1 @@ +:0 \ No newline at end of file diff --git a/vocab/it-it/requesttype.entity b/vocab/it-it/requesttype.entity new file mode 100644 index 0000000..d236e99 --- /dev/null +++ b/vocab/it-it/requesttype.entity @@ -0,0 +1,6 @@ +lo stato +la temperatura +l'umidità +messo +regolato +impostato \ No newline at end of file diff --git a/vocab/it-it/what.status.intent b/vocab/it-it/what.status.intent new file mode 100644 index 0000000..e961949 --- /dev/null +++ b/vocab/it-it/what.status.intent @@ -0,0 +1,3 @@ +(quale è|qual'è|com'è|come è) {requesttype} {item} +vorrei sapere (quale è|qual'è|com'è|come è|) {requesttype} {item} +dimmmi (quale è|qual'è|com'è|come è|) {requesttype} {item} \ No newline at end of file