Temperature control in Alexa

Hi everyone,

I wanted to control the temperature in my livingroom through Alexa (and Openhab). So in OpenHab I created the item “Livingroom temperature” added the Alexa metadata (called it temperature) and added temperature to the livingroom in Alexa…

but when I say, set Livingroom temperature … alexa responds with Livingroom doesnt support that…

any ideas?

(ps… when I named the “temperature setpoint” “AC”… it does work… “Alexa set livingroom AC 26 degrees”)

If you use something along these lines, you’ll get plenty of control with Alexa.

// Dec 4th 2021 - For use with openHAB3 onwards 

// slight edit to expire in button mimic
// Change g_Minute & g_Hour


	Group CabinGPO_Thermostat					"Cabin Thermostat"					<temperature>								{ga="Thermostat" [roomHint="Cabin", modes="off=SAFE,heat=DAY,eco=NIGHT,on=DAY"], alexa="Endpoint.Thermostat" }
	Number CabinGPO_CurrentTemperature 			"Cabin Current Temperature" 		<heating>	( CabinGPO_Thermostat ,WholeHouse_CurrentTemperature		)	{ channel="velbus:vmbgpod:VelbusNetworkBridge:05:input#CH33"								, 	ga="thermostatTemperatureAmbient" ,		alexa="TemperatureSensor.temperature" } // This is either CH9 or CH33
	Number CabinGPO_CurrentTargetTemperature 	"Cabin Current Target Temperature"	<heating>	( CabinGPO_Thermostat ,WholeHouse_CurrentTargetTemperature	)	{ channel="velbus:vmbgpod:VelbusNetworkBridge:05:thermostat#currentTemperatureSetpoint"		, 	ga="thermostatTemperatureSetpoint",		alexa="ThermostatController.targetSetpoint"}
	String CabinGPO_ThermostatMode 				"Cabin Thermostat mode"	  	 		<heating>	( CabinGPO_Thermostat, WholeHouse_ThermostatMode			)	{ channel="velbus:vmbgpod:VelbusNetworkBridge:05:thermostat#mode"							, 	ga="thermostatMode"  ,					alexa="ModeController.mode" [friendlyNames="@Setting.Preset", supportedModes="SAFE=Safe,NIGHT=Night,DAY=Day,COMFORT=Comfort"]}
	String CabinGPO_ThermostatOperatingMode 	"Cabin Thermostat operating mode"	<heating>	( CabinGPO_Thermostat, WholeHouse_ThermostatOperatingMode	)	{ channel="velbus:vmbgpod:VelbusNetworkBridge:05:thermostat#operatingMode" 					,											alexa="ThermostatController.thermostatMode" [COOL="COOLING",HEAT="HEATING"]	}
		
				  
	
	
		  
	Number CabinGPO_HeatingComfortTarget 	"Cabin Heating Comfort Target Temperature"	<temperature>	{channel="velbus:vmbgpod:VelbusNetworkBridge:05:thermostat#heatingModeComfortTemperatureSetpoint"	,		alexa="ThermostatController.lowerSetpoint#HEAT"		}
	Number CabinGPO_HeatingDayTarget 		"Cabin Heating Day Target Temperature"		<temperature>	{channel="velbus:vmbgpod:VelbusNetworkBridge:05:thermostat#heatingModeDayTemperatureSetpoint"		,		alexa="ThermostatController.lowerSetpoint#ECO"		}
	Number CabinGPO_HeatingNightTarget 		"Cabin Heating Night Target Temperature"	<temperature>	{channel="velbus:vmbgpod:VelbusNetworkBridge:05:thermostat#heatingModeNightTemperatureSetpoint"																	}
	Number CabinGPO_HeatingAntifrostTarget	"Cabin Heating Antifrost Target Temperature"<temperature>	{channel="velbus:vmbgpod:VelbusNetworkBridge:05:thermostat#heatingModeAntiFrostTemperatureSetpoint"	,		alexa="ThermostatController.lowerSetpoint#OFF"		}
	
	
	Number CabinGPO_CoolingComfortTarget	 "Cabin Cooling Comfort Target Temperature"	<temperature>	{channel="velbus:vmbgpod:VelbusNetworkBridge:05:thermostat#coolingModeComfortTemperatureSetpoint"	,		alexa="ThermostatController.upperSetpoint#COOL"		}
	Number CabinGPO_CoolingDayTarget		"Cabin Cooling Day Target Temperature"	  	<temperature>	{channel="velbus:vmbgpod:VelbusNetworkBridge:05:thermostat#coolingModeDayTemperatureSetpoint"		,		alexa="ThermostatController.upperSetpoint#ECO"		}
	Number CabinGPO_CoolingNightTarget 		"Cabin Cooling Night Target Temperature"	<temperature> 	{channel="velbus:vmbgpod:VelbusNetworkBridge:05:thermostat#coolingModeNightTemperatureSetpoint"																	}
	Number CabinGPO_CoolingSafeTarget		"Cabin Cooling Safe Target Temperature"		<temperature>	{channel="velbus:vmbgpod:VelbusNetworkBridge:05:thermostat#coolingModeSafeTemperatureSetpoint"		,		alexa="ThermostatController.upperSetpoint#OFF"		}
	  

// Edit the following to suit the relay channels in use	
	
	Switch CabinGPO_HeatingRelay  	"Cabin Heating Relay"	<radiator>	(WholeHouse_HeatingRelay_Count,WholeHouse_HeatingRelay)  {channel="velbus:vmb4ryld:VelbusNetworkBridge:02:CH4"}
 	Switch CabinGPO_CoolingRelay  	"Cabin Cooling Relay"	<climate>	(WholeHouse_CoolingRelay_Count,WholeHouse_CoolingRelay)  {channel="velbus:vmb1ryno:VelbusNetworkBridge:71:CH3"}

See this thread on the openHAB forum for more help