Hi,
I wanted to share with the community the mycroft skill I developed to integrate this project with openhab. The idea is based on alexa skill so items in OH will need to be tagged in order to be visible by the skill. I released the version 1.0 that support all the tags, just the tag Fahrenheit used together with the tag Thermostat has not been tested. The skill takes advantage of Openhab REST API so no any installation in OH is needed.
I couldn’t run many test so any feedback is appreciated together with any help to bug fixing or new developments.
Some sample commands are:.
- Hey Mycroft, turn on Diningroom Light
- Hey Mycroft, switch off Kitchen Light
- Hey Mycroft, put on Good Night
- Hey Mycroft, set Diningroom to 50
- Hey Mycroft, dim Kitchen
- Hey Mycroft, brighten Kitchen
- Hey Mycroft, dim Kitchen by 20
- 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?
The items are searched by label, so the items for the above examples could be:
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 the openhab items
Please find here the resources.