question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

New availableModes for google home thermostat

See original GitHub issue

Hello, I am trying to build an app for controlling a thermostat using google home. The problem that I have is that this thermostat has some custom functions (healing/cooling) and custom modes ( automatic, manual, protection, boost), and I will need some custom availableModes in order to achieve this. Here you can find my sync response in order to see better how I intend you map this custom modes:

{
  "requestId": "ff36a3cc-ec34-11e6-b1a0-64510650abcf",
  "payload": {
    "agentUserId": "1836.15267389",
    "devices": [{
      "id": "123",
      "type": "action.devices.types.THERMOSTAT",
      "traits": [
        "action.devices.traits.TemperatureSetting","action.devices.traits.Modes"
      ],
      "name": {
        "defaultNames": ["Honeywell Thermostat T-1000"],
        "name": "Homer Simpson Thermostat",
        "nicknames": ["living room thermostat"]
      },
      "willReportState": false,
      "attributes": {
        "availableThermostatModes": "off,heat,cool,on",
        "thermostatTemperatureUnit": "F", 
	"availableModes": [{
          "name": "function",
          "name_values": [{
            "name_synonym": ["function"]
            "lang": "en"
          },{
            "name_synonym": ["fonction"]
            "lang": "fr"
          },{
            "name_synonym": ["funzione"]
            "lang": "it"
          }],
          "settings": [{
            "setting_name": "heating",
            "setting_values": [{
              "setting_synonym": ["heating","heat"]
              "lang": "en"
            },{
              "setting_synonym": ["chauffage","chaleur"]
              "lang": "fr"
            },{
              "setting_synonym": ["riscaldamento","calore"]
              "lang": "it"
            }]
          }, {
            "setting_name": "cooling",
            "setting_values": [{
              "setting_synonym": ["cooling", "cool"],
              "lang": "en"
            },{
              "setting_synonym": ["refroidissement", "rafraîchir"],
              "lang": "fr"
            },{
              "setting_synonym": ["raffreddamento", "freddo"],
              "lang": "it"
            }]
          }],
          "ordered": true
        },
	{
          "name": "mode",
          "name_values": [{
            "name_synonym": ["mode"]
            "lang": "en"
          },{
            "name_synonym": ["modalità"]
            "lang": "it"
          },{
            "name_synonym": ["mode"]
            "lang": "fr"
          }],
          "settings": [{
            "setting_name": "automatic",
            "setting_values": [{
              "setting_synonym": ["automatic"]
              "lang": "en"
            },{
              "setting_synonym": ["automatico"]
              "lang": "it"
            },{
              "setting_synonym": ["automatique"]
              "lang": "fr"
            }]
          }, {
            "setting_name": "manual",
            "setting_values": [{
              "setting_synonym": ["manual"]
              "lang": "en"
            },{
              "setting_synonym": ["manuale"]
              "lang": "it"
            },{
              "setting_synonym": ["manual"]
              "lang": "fr"
            }]
          },
	 {
            "setting_name": "protection",
            "setting_values": [{
              "setting_synonym": ["protection"]
              "lang": "en"
            },{
              "setting_synonym": ["protezione"]
              "lang": "it"
            },{
              "setting_synonym": ["protection"]
              "lang": "fr"
            }]
          },
	{
            "setting_name": "boost",
            "setting_values": [{
              "setting_synonym": ["boost"]
              "lang": "en"
            },{
              "setting_synonym": ["impulso"]
              "lang": "it"
            },{
              "setting_synonym": ["renforcer"]
              "lang": "fr"
            }]
          }],
          "ordered": true
        }]

      },
      "deviceInfo": {
        "manufacturer": "hrxhgfst",
        "model": "t-1000",
        "hwVersion": "3.2",
        "swVersion": "11.4"
      },
      "customData": {
        "fooValue": 74,
        "barValue": true,
        "bazValue": "lambtwirl"
      }
    }]
  }
}

Let me know you can help me to achieve this.

Thank you

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
vasidcommented, May 17, 2018

Ok, so maybe you can help us with this until the custom modes are ready. thank you

1reaction
OlimpiaMMcommented, May 14, 2018

Thanks for your answer. Is it possible, for now, to add requested modes manually? How can we work with this until the custom modes will be available?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Nest thermostat temperature modes - Google Support
Depending on your system type and thermostat model, your Google Nest thermostat can have up to 5 available modes: Heat, Cool, Heat •...
Read more >
How to adjust the temperature and change modes on your ...
Depending on your system type, your Google Nest thermostat can have up to five available modes : Heat, Cool, Heat•Cool, Off and Eco....
Read more >
Nest Thermostat, Fine-tune your comfort - Google Store
Easy and breezy. In the summer, your thermostat can turn itself down when you leave so you don't waste energy cooling an empty...
Read more >
Thermostat | Device Access - Google Developers
All Google Nest Thermostat models are supported in the Smart Device Management (SDM) API. These devices return the THERMOSTAT device type:.
Read more >
Nest Learning Thermostat - Smart Wi-Fi Thermostat - Copper
Google Nest Learning Thermostat - Smart Wi-Fi Thermostat - Copper ... generation Nest Learning Thermostat, Nest Thermostat E, or the newest Nest Thermostat...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found