Change What Multi-Sensor Displays?

Hey All!

I would like for the weather to display…current temp and my Ecobee remote sensors to display their current temperature. As it is, weather is showing lux and Ecobee is showing motion.

I did try the search tab but nothing really came up that’s current.

Thanks!

I believe the driver would have to be modified to change the presentation and/or allow for it to be a configurable setting.

1 Like

I believe so as well but how?

What’s presented in the dashboard for the device is defined in the presentation. For the Ecobee sensors, here is the definition.

"dashboard": {
    "states": [
      {
        "label": "{{motion.value}}",
        "alternatives": [
          {
            "key": "active",
            "value": "___PO_CODE_CAPABILITY.SMARTTHINGS.MOTIONSENSOR_DEFAULT_ATTRIBUTES_MOTION_ACTIVE",
            "type": "active"
          },
          {
            "key": "inactive",
            "value": "___PO_CODE_CAPABILITY.SMARTTHINGS.MOTIONSENSOR_DEFAULT_ATTRIBUTES_MOTION_INACTIVE",
            "type": "inactive"
          }
        ],
        "capability": "motionSensor",
        "version": 1,
        "component": "main",
        "composite": false,
        "group": "main",
        "transient": false
      }
    ],
    "actions": [],
    "basicPlus": []

So you could download the driver code from the ST Github repo and create your own custom version of the driver to display temperature (temperatureMeasurement) instead of motion or both. I’m not skilled enough to know how you would make it a configurable setting, if that is possible at all.

Dawned on me a little later, that I could include the dashboard presentation for an Ecobee thermostat as an example for what it would look like for temperature.

  "dashboard": {
    "states": [
      {
        "label": "{{temperature.value}} {{temperature.unit}}",
        "alternatives": [
          {
            "key": "C",
            "value": "°C",
            "type": "active"
          },
          {
            "key": "K",
            "value": "°K",
            "type": "active"
          },
          {
            "key": "F",
            "value": "°F",
            "type": "active"
          }
        ],
        "capability": "temperatureMeasurement",
        "version": 1,
        "component": "main",
        "composite": false,
        "group": "main",
        "transient": false
      }
    ],
    "actions": [],
    "basicPlus": []
  }