HappyXD
HappyXD

Reputation: 61

Actions on Google - Smart Home App. How do I query custom information about the device (eg. energy consumption)

I recently made a basic Google Smart Home app for one of my devices. I was wondering if there was a way to query my device for information such as energy consumption. For example, if I asked "How much has energy has my heater used today?", would it be possible to get a real-time value for this (from my fulfillment)?

Upvotes: 2

Views: 285

Answers (1)

Nick Felker
Nick Felker

Reputation: 11978

The answer to your question specifically is no. Traits that are not supported in the Smart Home documentation will not be available to query in the Home Graph.

However, you can use the Actions on Google platform to build a separate fulfillment which can provide some of these custom user queries. The two can be developed as separate projects but using the same backend.

You: "OK Google, turn up the heater to 80 degrees"

Google Assistant: "Okay"

You: "OK Google, ask My Heater how much energy you've used today"

Google Assistant: "Getting your heater."

Heater: "Today you have used 10 energy units. That's 5% more than yesterday."

Upvotes: 1

Related Questions