I'm trying to find a Hubitat Device that allows decimal value setting that can also be shared with Google Home and be manipulated there. It looks like a thermostat would be a suitable device but the Hubitat built-in Virtual Thermostat and the third-party Advanced vThermostat don't appear in Google Home (as at Nov 2026, and contradictory to Advanced vThermostat claims of being compatible).
I also tried the Power/Energy Meter and that didn't appear in Google Home either.
A thermostat that meets my criteria would be perfect because I want to be able to set a temperature for my heat pump via automation using the Sensibo integration because the Sensibo integration from Hubitat to Google Home cannot handle "Auto" mode; only "Heat" and "Cool" modes for setting values. The decimal type is required because 1 degree C is a big step-change in temperature vs 1 degree F.
Can anyone recommend a Hubitat Device that suits the criteria of decimal number entry and compatibility with Google Home to read-write a value?
Have you tried the Google Home Community integration? It can connect some devices that the built-in integration can't. I use it for some devices including my Lennox thermostat. I don't remember exactly why, but if I used the community integration (I run both side-by side) there must have been an issue with using the built-in.
I do have the Google Home Community infrastructure set up. I haven't used it I quite some time... Thanks for reminding me of it! I am a bit cautious about it's longevity with all the changes Google is making but perhaps it is my best way forward, at least for now.
If you are open to trying AI code, Gemini gave me this virtual device.
100% AI -> Prompt: "Write a virtual device driver for Hubitat that has commands to change a decimal attribute that can be seen and changed by Google home"
/**
* Virtual Google Home Decimal Link
*
* Description: A minimal virtual driver that implements the Thermostat capability to force
* Google Home to accept and pass decimal attributes back and forth to Hubitat.
*/
metadata {
definition (name: "Virtual Google Home Decimal Link", namespace: "custom", author: "AI Assistant") {
capability "Thermostat"
capability "Sensor"
capability "Actuator"
// This is your actual exposed decimal value
attribute "decimalValue", "NUMBER"
// Custom command allowing you to set it directly within Hubitat rules
command "setDecimalValue", [[name:"value*", type: "NUMBER", description: "Enter a decimal value"]]
}
}
// Automatically populates mandatory fields for Google Home upon creation
def installed() {
log.info "Virtual Decimal Link installed."
initializeDeviceStates()
}
def updated() {
log.info "Virtual Decimal Link updated."
initializeDeviceStates()
}
// Ensures Google Home doesn't throw validation errors due to missing baseline states
def initializeDeviceStates() {
sendEvent(name: "supportedThermostatModes", value: JSON.parse('["heat", "off"]'))
sendEvent(name: "thermostatMode", value: "heat")
sendEvent(name: "thermostatOperatingState", value: "idle")
if (device.currentValue("decimalValue") == null) {
updateValue(50.0) // Fallback default starting value
}
}
// Catches updates made via Hubitat
def setDecimalValue(BigDecimal value) {
updateValue(value)
}
// Intercepts the mandatory Google Home Thermostat setpoint adjustments
def setHeatingSetpoint(BigDecimal temperature) {
updateValue(temperature)
}
def setCoolingSetpoint(BigDecimal temperature) {
updateValue(temperature)
}
def setThermostatSetpoint(BigDecimal temperature) {
updateValue(temperature)
}
// Internal logic to sync all related states smoothly
private updateValue(BigDecimal targetValue) {
log.info "Decimal value updating to: ${targetValue}"
// Syncs your target custom decimal attribute
sendEvent(name: "decimalValue", value: targetValue)
// Echoes it back to the thermostat fields so the Google Home UI updates perfectly
sendEvent(name: "temperature", value: targetValue)
sendEvent(name: "thermostatSetpoint", value: targetValue)
sendEvent(name: "heatingSetpoint", value: targetValue)
sendEvent(name: "coolingSetpoint", value: targetValue)
}
// Unused capability commands required to avoid compiler errors
def auto() {}
def cool() {}
def emergencyHeat() {}
def heat() {}
def off() {}
def setThermostatMode(String mode) {}
def setThermostatFanMode(String fanMode) {}
def fanAuto() {}
def fanOn() {}
def fanCirculate() {}
No, I don't use Google Home, but I would have tested it if I did. I did install the driver to test it updating the values. Since it was Google that wrote it, I would hope it knows what works with Google Home.
It does appear in google home but it's not fully functional. The thermostat dial remains "off" even when the mode is "heat," "cool," or "heat - cool" and this means you can't change the dial off of the default value of 22.
I don't want to be the AI meat proxy here, but since I had the session page open, I literally just pasted your comment into the session.
Gemini AI Response:
Google Home requires an internal Hubitat metadata parameter called lastRunningMode to unlock the interactive dial interface. Without this backend variable explicitly defined, Google forces the device into a dead "Off" state, fixing the temperature display to a baseline value. [1, 2, 3]
Replacing your driver code with this updated snippet injects the required parameter and configures the standard operational hooks to ensure the dial unlocks immediately. [1, 2]
/**
* Virtual Google Home Decimal Link (V2 - Unlocked Dial)
*
* Description: A minimal virtual driver that implements the Thermostat capability to force
* Google Home to accept and pass decimal attributes back and forth to Hubitat.
* Includes fix for the "lastRunningMode" variable required by Google's API.
*/
metadata {
definition (name: "Virtual Google Home Decimal Link", namespace: "custom", author: "AI Assistant") {
capability "Thermostat"
capability "Sensor"
capability "Actuator"
attribute "decimalValue", "NUMBER"
command "setDecimalValue", [[name:"value*", type: "NUMBER", description: "Enter a decimal value"]]
}
}
def installed() {
log.info "Virtual Decimal Link installed."
initializeDeviceStates()
}
def updated() {
log.info "Virtual Decimal Link updated."
initializeDeviceStates()
}
def initializeDeviceStates() {
// CRITICAL: Google Home requires lastRunningMode to unlock the interface
updateDataValue("lastRunningMode", "heat")
sendEvent(name: "supportedThermostatModes", value: JSON.parse('["heat", "off"]'))
sendEvent(name: "thermostatMode", value: "heat")
sendEvent(name: "thermostatOperatingState", value: "idle")
if (device.currentValue("decimalValue") == null) {
updateValue(22.5)
}
}
def setDecimalValue(BigDecimal value) {
updateValue(value)
}
def setHeatingSetpoint(BigDecimal temperature) {
updateValue(temperature)
}
def setCoolingSetpoint(BigDecimal temperature) {
updateValue(temperature)
}
def setThermostatSetpoint(BigDecimal temperature) {
updateValue(temperature)
}
private updateValue(BigDecimal targetValue) {
log.info "Decimal value updating to: ${targetValue}"
sendEvent(name: "decimalValue", value: targetValue)
sendEvent(name: "temperature", value: targetValue)
sendEvent(name: "thermostatSetpoint", value: targetValue)
sendEvent(name: "heatingSetpoint", value: targetValue)
sendEvent(name: "coolingSetpoint", value: targetValue)
}
// Ensure driver intercepts mode commands from Google Home to stay in "heat" state
def heat() { sendEvent(name: "thermostatMode", value: "heat") }
def auto() { sendEvent(name: "thermostatMode", value: "heat") }
def cool() { sendEvent(name: "thermostatMode", value: "heat") }
def off() { sendEvent(name: "thermostatMode", value: "heat") }
def emergencyHeat() {}
def setThermostatMode(String mode) { sendEvent(name: "thermostatMode", value: "heat") }
def setThermostatFanMode(String fanMode) {}
def fanAuto() {}
def fanOn() {}
def fanCirculate() {}
Update: I've tried creating a device using the v2 sample you provided and it no longer appears when in Google Home when I link it to Hubitat via Works With Google. So, there's some weird thing that's blowing up the integration. I'll have to do a bit of research and see if I can find what's blowing it up.
This is why untested AI-generated code (the most polite way I can think of to describe AI slop) is so often just a way to waste time and effort, especially when it comes from a general chatbot and not from a specific coding tool like Claude Code, Codex, etc.
In my personal experience, Gemini has been one of the worst. I've had it say it checked a web site for information and it cited the source. When I checked the provided link and found that it said the opposite, Gemini admitted that it had lied when it said it had checked the site. Code-specific tools are much better than the general chatbots.
As a developer of 35 years I have a similar opinion of AI coding. My previous boss insisted I use it for firmware development and it produced code that can be best described as a (euphemism alert) "work of art." I've since decided retirement is my best strategy to get away from it. That said, I am grateful for the pasted code as a starting point and though it was worth trying because this kind of development is far from my specialty.
I agree Google Gemini has been the worst for me, but with this being about Google Home, it seemed like the right choice.
Another agent says the current issue is Google Home just needs the temperature measurement capability added to the driver.
capability "Temperature Measurement"
This is a simple little nothing driver, it is hard to say it is "AI Slop" in that there is nothing complex here enough to be slopped in my opinion. AI is not first time right, first try may be slop-like but that is why you test and feedback to get it working.
I've actually been impressed with using DeepSeek for Hubitat Code. It has done a great job recently co-piloting my Roborock Room Sequence scheduler app. That was mostly written by me and basically working before I involved AI. I was having trouble finding the time to finish it up myself and add all the features I wanted, so I brought in AI, or I probably never would have finished the app and have it do everything I needed.
I posted the code in the Roborock Vacuum thread, with absolutely no interest, and I am sure that is partly because I used AI, but it was not vide-coded, it was co-piloted development with AI and I know exactly what it is doing.