This is a mirror of the Openhab Mycroft skills repository, but holds private Armstrong mods.
This repository has been archived on 2023-11-27. You can view files and clone it, but cannot push or open issues/pull-requests.
Go to file
mortommy 6ed5b806ee
bugfix to v19 (#90)
* conversiont to python 3 Signed-off-by: Tommaso Morello tommaso.morello@gmail.com (github: mortommy)

* docs updating

* README.md changed to v18.08

* README.md changed to v18.08

* Fix multilanguage bugs 2 (#35)

* bright

bright command instead of brighten

* italian translation

added voc files for italian translation

Signed-off-by: mortommy <tommaso.morello@gmail.com>

* intensita instead of luminosita (#36)

Signed-off-by: Tommaso Morello <tommaso.morello@gmail.com> (github: mortommy)Signed-off-by: mortommy <tommaso.morello@gmail.com>

* conversiont to python 3 Signed-oof-by: Tommaso Morello tommaso.morello@gmail.com (github: mortommy)

Signed-off-by: mortommy <tommaso.morello@gmail.com>

* Update documentation links (#37)

Signed-off-by: Wouter Born <eclipse@maindrain.net>Signed-off-by: mortommy <tommaso.morello@gmail.com>

* docs updating

Signed-off-by: mortommy <tommaso.morello@gmail.com>

* add German (#46)

 added german translation

Signed-off-by: mortommy <tommaso.morello@gmail.com>

* German Translation (#42)


Signed-off-by: mortommy <tommaso.morello@gmail.com>

* Fixed typo (#48)

* Fixed typo

"Brigth -> Bright"

* Fixed typo

* Fixed typo

Signed-off-by: mortommy <tommaso.morello@gmail.com>

* Update dimmer_command.rx (#53)


Signed-off-by: mortommy <tommaso.morello@gmail.com>

* Update dimmer_command.rx (#52)

This spelling error was identified by user **LeBelle** who has been undertaking German translations on Mycroft Translate. 
Raising PR on LeBelle's behalf.
Signed-off-by: mortommy <tommaso.morello@gmail.com>

* README.md changed to v18.08

Signed-off-by: mortommy <tommaso.morello@gmail.com>

* README.md changed to v18.08

Signed-off-by: mortommy <tommaso.morello@gmail.com>

* added "turn x on/off" as a command (#56)

It feels more natural for me to say turn light on instead of turn on light x
Signed-off-by: mortommy <tommaso.morello@gmail.com>

* added spanish support. Signed-off-by: Tommaso Morello tommaso.morello@gmail.com (github: mortommy)

Signed-off-by: mortommy <tommaso.morello@gmail.com>

* Revert "Add spanish"

* added spanish support. Signed-off-by: Tommaso Morello tommaso.morello@gmail.com (github: mortommy)

* Revert "Add spanish"

* added spanish support. Signed-off-by: Tommaso Morello tommaso.morello@gmail.com (github: mortommy)

* added spanish support. Signed-off-by: Tommaso Morello tommaso.morello@gmail.com (github: mortommy)

* Fix supported languages list

Signed-off-by: Tommaso Morello <tommaso.morello@gmail.com>

* Revert "Fix supported languages list"

* Fix supported languages list

Signed-off-by: Tommaso Morello <tommaso.morello@gmail.com>

* Fix languages values

Signed-off-by: Tommaso Morello <tommaso.morello@gmail.com>

* tuning what status intent. switch to padatious

Signed-off-by: Tommaso Morello <tommaso.morello@gmail.com>

* Convert what_status intent to padatious. Apply review from Mycroft team. Add new files

Signed-off-by: Tommaso Morello <tommaso.morello@gmail.com>

* Bug fix

Signed-off-by: Tommaso Morello <tommaso.morello@gmail.com>

* Bug fix 2

Signed-off-by: Tommaso Morello <tommaso.morello@gmail.com>

* Bug fix 3

Signed-off-by: Tommaso Morello <tommaso.morello@gmail.com>

* Bug fix 4

Signed-off-by: Tommaso Morello <tommaso.morello@gmail.com>

* dimmer command regex fix

Signed-off-by: Tommaso Morello <tommaso.morello@gmail.com>

* Bug fix V19

Signed-off-by: mortommy <tommaso.morello@gmail.com>

Co-authored-by: Wouter Born <github@maindrain.net>
Co-authored-by: Andreas Reinle <gras64@web.de>
Co-authored-by: Sawyer McLane <samclane@gmail.com>
Co-authored-by: Kathy Reid <kathy@kathyreid.id.au>
Co-authored-by: Fabian Pflug <gumulka@users.noreply.github.com>
2020-04-07 16:09:14 +02:00
dialog v19 code review (#85) 2019-12-20 16:06:27 +01:00
regex v19 code review (#85) 2019-12-20 16:06:27 +01:00
test/intent Simple integration test (#84) 2019-12-19 09:22:14 +01:00
vocab bugfix to v19 (#90) 2020-04-07 16:09:14 +02:00
.gitignore Handle unconfigured state (#73) 2019-10-15 08:34:41 +02:00
CONTRIBUTING.md Initial codebase after move from https://github.com/mortommy/openhab-mycroft 2017-09-10 19:18:51 +02:00
LICENSE Update license to EPL-2.0 (#67) 2019-07-11 10:20:34 +02:00
NOTICE Update license to EPL-2.0 (#67) 2019-07-11 10:20:34 +02:00
README.md v19 code review (#85) 2019-12-20 16:06:27 +01:00
USAGE.md v19 code review (#85) 2019-12-20 16:06:27 +01:00
__init__.py bugfix to v19 (#90) 2020-04-07 16:09:14 +02:00
crowdin.yml Update Crowdin configuration file 2019-12-20 16:45:05 +01:00
requirements.txt Initial codebase after move from https://github.com/mortommy/openhab-mycroft 2017-09-10 19:18:51 +02:00
settingsmeta.yaml Handle unconfigured state (#73) 2019-10-15 08:34:41 +02:00

README.md

openHAB

This skill adds openHAB support to Mycroft.

About

This skill adds openHAB support to Mycroft. The skill takes advantage of the openHAB REST API, so it works both with the v1.x and v2.x of openHAB.

In order to make openHAB Items accessible to Mycroft, they need to be tagged. Device names recognized by Mycroft are matched against openHAB Item Labels.

The above examples would all work with the following set of openHAB Item definitons:

Color DiningroomLight "Diningroom Light" <light> (gKitchen) [ "Lighting" ] {channel="hue:0200:1:bloom1:color"}
Color KitchenLight "Kitchen Light" <light> (gKitchen) [ "Lighting" ] {channel="hue:0200:1:bloom1:color"}
Switch GoodNight "Good Night"	[ "Switchable" ]

Number MqttID1Temperature "Bedroom Temperature" <temperature> [ "CurrentTemperature" ] {mqtt="<[mosquitto:mysensors/SI/1/1/1/0/0:state:default]"}
Number MqttID1Humidity "Bedroom Humidity" [ "CurrentHumidity" ] {mqtt="<[mosquitto:mysensors/SI/1/0/1/0/1:state:default]"}

Group gThermostat "Main Thermostat" [ "gMainThermostat" ]
Number MainThermostatCurrentTemp "Main Thermostat Current Temperature" (gMainThermostat) [ "CurrentTemperature" ]
Number MainThermostatTargetTemperature "Main Thermostat Target Temperature" (gMainThermostat) [ "TargetTemperature" ]
String MainThermostatHeatingCoolingMode "Main Thermostat Heating/Cooling Mode" (gMainThermostat) [ "homekit:HeatingCoolingMode" ]

If items are modified in openHAB, a refresh in Mycroft is needed by the command:

  • "Hey Mycroft, refresh openhab items"

If you've forgotten what items have been identified, you can ask Mycroft:

  • "Hey Mycroft, list openhab items"

Versions Change Log

  • 1.5 addedd support to core v19
  • 1.4 added spanish translation
  • 1.3 added german translation
  • 1.2 addedd python 3 support
  • 1.1 added status request to Switchable items
  • 1.0 added support to item tagged as Thermostat, CurrentTemperature, CurrentHumidity
  • 0.9 added dimming command to item tagged as Lighting
  • 0.8 supports only Lighting and Switchable tags, commands ON and OFF

Installation

From 18.2.5b mycroft-core release it is possible to install the skill using the voice command:

  • "Hey Mycroft, install openhab"

or via the msm command:

msm install openhab

To manually install the skill: Clone this repository into your ~/.mycroft/skills directory. Then install the dependencies inside your mycroft virtual environment:

If on picroft just skip the workon part and the directory will be /opt/mycroft/skills

cd ~/.mycroft/skills
git clone https://github.com/openhab/openhab-mycroft.git skill-openhab
workon mycroft
cd skill-openhab
pip install -r requirements.txt

Examples

  • "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?"

Credits

@mortommy

Category

IoT

Tags

#openHAB #smarthome #IoT #Automation #opensource