how to setup communication between the alexa skill and openhab2 without IFTTT or any other app
Hue EMULATION in the Addins MISC category NOT the Hue from Bindings.
is it possible to communicate alexa smart home skill to openhab without alexa app
You need the Alexa app/webpage to âdiscoverâ the items that you have tagged in openHAB. Once you have done this then you donât need the app again.
You even can do that without the app: tell Alexa to âSearch for devicesâ
thank you for suggesting meâŠthe things are working for meâŠfinally alexa can communicate with openhabâŠits so easyâŠthanks.
if I say âalexa turn on office lightsâ then she respond it correctly
but when I say âalexa, decrease bedroom temperature by 5 degreesâ then she is saying bed room is not respondingâŠ
Code in items file â
Number BedroomTemperature âBedroom Temperatureâ (gBedroom) [ âCurrentTemperatureâ ]
Code in sitemap fileâ
Text item=BedroomTemperature
where I am wrong.
Make sure you have all four items including the group correctly set.
Temperature is not supported in all languages as far as I know âŠ
Thermostat control is currently limited until we have a more complete ontology for tagging. There are a few caveats to keep in mind. First is that we assume temperatures are in Celsius unless the thermostat tagged group also contains the tag âFahrenheitâ (shown above). This is a temporary configuration and will hopefully change in the future. Second is that the Alexa skill expects the thermostat mode item (âhomekit:HeatingCoolingModeâ) to conform exactly to the strings âOFF, HEAT, COOL, AUTO, heat-coolâ or â0,1,2,3â. Again this is a temporary restriction until a more complete solution is developed.
I have defined all those 4 items now my updated item file is
Group gDownstairsThermostat âDownstairs Thermostatâ (gFF) [âThermostatâ,âFahrenheitâ]
Number DownstairsThermostatCurrentTemp âDownstairs Thermostat Current Temperatureâ (gDownstairsThermostat) [ âCurrentTemperatureâ ]
Number DownstairsThermostatTargetTemperature âDownstairs Thermostat Target Temperatureâ (gDownstairsThermostat) [ âTargetTemperatureâ ]
String DownstairsThermostatHeatingCoolingMode âDownstairs Thermostat Heating/Cooling Modeâ (gDownstairsThermostat) [ âhomekit:HeatingCoolingModeâ ]
when I say âalexa set thermostat by 2 degreesâ (as mentioned in official alexa smart home post) then she respond âthis command is not supported for this deviceââŠ
thanks in advanceâŠ
If you set your label to "Downstairs Thermostatâ
you need to tell Alexa to change the "Downstairs Thermostatâ temperature, not the
thanks this is workingâŠ
You need to create a âmyopenhab.orgâ account. In OPH2 you need to define which items you will let myopenhab.org âseeâ Then you have to use the Openhab2 skill on Alexa. This skill make a connection to your myopenhab.org account. Now you can say âturn on my living room lightâ and it will turn on, if you have named the concerned item the same name in your item file.
No, you donât have to expose your items to myopenhab, just do the correct tagging.
@hmerk is correct.
i define the tag in things.xml like thisâŠ
String Temperature CurrentTemperatureand when i talk to Alexa then she responds with the correct value of temperatureâŠ
but when i define two items with the same tag like thisâ
String Temperature CurrentTemperature String Pressure CurrentTemperaturewhen i ask alexa that âwhat is temperature set toâ she responds âthere is more than one thermostat device with the same tagâ.
and she not responds with any value neither for temperature nor for pressure.
so my question is how can she determine the same tag (CurrentTemperature) but for different smart home devices(Temperature, Pressure).
Define a different label (= Alexa tag) for each device, for example âThermostat Floor
â, âThermostat Kitchen
â, âŠ
Hello Sir,
i did it in the same way as you mentioned above but sir the problem is not solvedâŠ
this is my things-type.xml file from openhab bindingâŠ
<channel-type id="sample-pressure">
<item-type>String</item-type>
<label>Thermostat Pressure</label>
<description>The Pressure of ST Board</description>
<tags>
<tag>CurrentTemperature</tag>
</tags>
<state readOnly="true" pattern="%s">
</state>
</channel-type>
<channel-type id="sample-temperature">
<item-type>String</item-type>
<label>Thermostat Temperature</label>
<description>The Temperature of ST Board</description>
<tags>
<tag>CurrentTemperature</tag>
</tags>
<state readOnly="true" pattern="%s">
</state>
</channel-type>
i have 2 channels with the same tag(âCurrentTemperatureâ), when alexa searches for SMARTHOME DEVICE she finds 2 Smart Home devices.
when i ask âALEXA WHAT IS TEMPERATURE IS SET TO?â SHE RESPONDS âI FOUND MORE THAN ONE THERMOSTAT DEVICE, WHICH DEVICE YOU WANTâ
then i said âThermostat pressureâ then she respond âSORRY I DONT KNOW THISâ
so basically my problem is "how can she determine 3 channels i.e. âTemperature and Pressureâ with the same tag âCurrent Temperatureâ
If it does not work with different labels I have no idea, sorry.