Device not showing in Automations

Hi @nayelyz

The device is listed in the ‘Devices’ in the assigned room but not in the Automation>Add Automation>If (Device Status)> the device is not visible

If I use Webcore I’m able to add it as a device then I’m able to make automations but why can’t I add the device so I can make Automations within the Smartthings App?

Are there additional steps I need to do in order for the device to be selectable/visible in the Automations sections in the new app?

Here’s my dth:
OneApp Flume Water Flow DH (smartthings.com)

Here’s my config:

{
“mnmn”: “SmartThingsCommunity”,
“vid”: “19aac36b-fcd5-3221-90a8-d497c440e59a”,
“type”: “dth”,
“iconUrl”: null,
“dashboard”: {
“states”: [
{
“component”: “main”,
“capability”: “mediapepper07880.watermeterflow”,
“version”: 1,
“values”: ,
“patch”: ,
“visibleCondition”: null
}
],
“actions”: [
{
“component”: “main”,
“capability”: “mediapepper07880.watermetermonitorstatus”,
“version”: 1,
“values”: ,
“patch”: ,
“visibleCondition”: null
}
]
},
“detailView”: [
{
“component”: “main”,
“capability”: “waterSensor”,
“version”: 1,
“values”: ,
“patch”: ,
“visibleCondition”: null
},
{
“component”: “main”,
“capability”: “refresh”,
“version”: 1,
“values”: ,
“patch”: ,
“visibleCondition”: null
},
{
“component”: “main”,
“capability”: “sensor”,
“version”: 1,
“values”: ,
“patch”: ,
“visibleCondition”: null
},
{
“component”: “main”,
“capability”: “healthCheck”,
“version”: 1,
“values”: ,
“patch”: ,
“visibleCondition”: null
},
{
“component”: “main”,
“capability”: “mediapepper07880.watermetermonitorstatus”,
“version”: 1,
“values”: ,
“patch”: ,
“visibleCondition”: null
},
{
“component”: “main”,
“capability”: “mediapepper07880.watermeterflow”,
“version”: 1,
“values”: ,
“patch”: ,
“visibleCondition”: null
}
],
“automation”: {
“conditions”: [
{
“component”: “main”,
“capability”: “waterSensor”,
“version”: 1,
“values”: ,
“patch”: ,
“visibleCondition”: null
},
{
“component”: “main”,
“capability”: “refresh”,
“version”: 1,
“values”: ,
“patch”: ,
“visibleCondition”: null
},
{
“component”: “main”,
“capability”: “sensor”,
“version”: 1,
“values”: ,
“patch”: ,
“visibleCondition”: null
},
{
“component”: “main”,
“capability”: “healthCheck”,
“version”: 1,
“values”: ,
“patch”: ,
“visibleCondition”: null
},
{
“component”: “main”,
“capability”: “mediapepper07880.watermetermonitorstatus”,
“version”: 1,
“values”: ,
“patch”: ,
“visibleCondition”: null
},
{
“component”: “main”,
“capability”: “mediapepper07880.watermeterflow”,
“version”: 1,
“values”: ,
“patch”: ,
“visibleCondition”: null
}
],
“actions”: [
{
“component”: “main”,
“capability”: “waterSensor”,
“version”: 1,
“values”: ,
“patch”: ,
“visibleCondition”: null
},
{
“component”: “main”,
“capability”: “refresh”,
“version”: 1,
“values”: ,
“patch”: ,
“visibleCondition”: null
},
{
“component”: “main”,
“capability”: “sensor”,
“version”: 1,
“values”: ,
“patch”: ,
“visibleCondition”: null
},
{
“component”: “main”,
“capability”: “healthCheck”,
“version”: 1,
“values”: ,
“patch”: ,
“visibleCondition”: null
},
{
“component”: “main”,
“capability”: “mediapepper07880.watermetermonitorstatus”,
“version”: 1,
“values”: ,
“patch”: ,
“visibleCondition”: null
},
{
“component”: “main”,
“capability”: “mediapepper07880.watermeterflow”,
“version”: 1,
“values”: ,
“patch”: ,
“visibleCondition”: null
}
]
}
}

Hi!
I checked the DTH below and I noticed that only the Water Sensor capability has the Automation view configured (as this is a Standard capability).
mediapepper07880.watermetermonitorstatus and mediapepper07880.watermeterflow don’t include this view in their presentations, they only have the Dashboard and Detail Views.
I installed the DTH and I can see the device but the only option is Water Sensor:

Hi, not sure if the dth you linked was by accident but that dth is legacy/older code. Oops, I realized I provided the graph ide dth link earlier which I thought Smartthings would have backend access.

@nayelyz The dth that is being used by users, integrated with smartthings+github, and its water sensor is not showing in automation views is linked below:

FlumeWaterMeter/oneapp-flume-water-flow-dh.groovy at master · getterdone/FlumeWaterMeter · GitHub-FlumeWaterMeter/blob/master/devicetypes

For the corresponding updated smartapp:
FlumeWaterMeter/oneapp-flume-water-flow-sm.groovy at master · getterdone/FlumeWaterMeter · GitHub-FlumeWaterMeter/blob/master/smartapps

Please let me know if the water sensor is listed for Automation view using the updated link . If it does that’s good enough for now, I’ll work on the other capabilities later.

This is related to the Device Presentation (which is composed of each capability’s presentation). See the content of the presentation used in the DTH d665a967-eccd-3ac7-bb72-b3d4c626f4dd (19aac36b-fcd5-3221-90a8-d497c440e59a doesn’t exist). It only includes Water Sensor in the Automation conditions because others don’t have this view configured.

{
    "manufacturerName": "SmartThingsCommunity",
    "presentationId": "d665a967-eccd-3ac7-bb72-b3d4c626f4dd",
    "mnmn": "SmartThingsCommunity",
    "vid": "d665a967-eccd-3ac7-bb72-b3d4c626f4dd",
    "version": "0.0.1",
    "dashboard": {
        "states": [/*...*/],
        "actions": [/*..*/],
        "basicPlus": []
    },
    "detailView": [ /*...*/],
    "automation": {
        "conditions": [
            {
                "capability": "waterSensor",
                "version": 1,
                "label": "___PO_CODE_SMARTTHINGS_DREAM_SAC_TMBODY_WATER_SENSOR",
                "displayType": "list",
                "list": {
                    "alternatives": [
                        {
                            "key": "wet",
                            "value": "___PO_CODE_SMARTTHINGS_DREAM_SAC_SBODY_WET",
                            "type": "active"
                        },
                        {
                            "key": "dry",
                            "value": "___PO_CODE_SMARTTHINGS_DREAM_SAC_SBODY_DRY",
                            "type": "inactive"
                        }
                    ],
                    "value": "water.value"
                },
                "exclusion": [],
                "component": "main"
            }
        ],
        "actions": [
            {
                "capability": "refresh",
                "version": 1,
                "label": "___PO_CODE_SMARTTHINGS_DREAM_SAC_BUTTON_REFRESH_8",
                "displayType": "list",
                "list": {
                    "alternatives": [
                        {
                            "key": "refresh",
                            "value": "___PO_CODE_SMARTTHINGS_DREAM_SAC_BUTTON_REFRESH_8",
                            "type": "active"
                        }
                    ]
                },
                "component": "main",
                "exclusion": []
            }
        ]
    }
}

For example, this is mediapepper07880.watermeterflow presentation:

{
    "dashboard": {
        "states": [{
                "label": "{{listElement.value}}"
        }],
        "actions": []
    },
    "detailView": [
        {
            "label": "Water Usage",
            "displayType": "list",
            "list": {
                "command": {
                    "name": "setListElement",
                    "alternatives": [...]
                },
                "state": {
                    "value": "listElement.value",
                    "alternatives": [...]
                }
            }
        }
    ],
    /*<<<<<<Here the Automation View config is missing>>>>>>*/
    "id": "mediapepper07880.watermeterflow",
    "version": 1
}

So what you are saying is that for the water sensor to display in Automation within the Smartthings app I need to also add automation views to the other capabilities?

The capabilities are not independent of each other from what Im understanding, please correct me if Im wrong .

So exactly what is the fix to get the device to show in Automation?

A. Add automation views to the other capabilities
B. Something else

No, you should be able to see it in the Automations tool of the SmartThings App at least for Water Sensor.
You don’t need to configure all the capabilities in this view if you don’t need to, I thought you mentioned you couldn’t make automations using those custom capabilities, sorry for the confusion.

I installed the DTH you shared directly and I can’t still replicate the issue. Were you able to do so, or it only happens to @Brainsalad?

I can successfully save an automation using the device:

If you still cannot see the device, you can try:

  • Deleting the SmartThings app cache from your mobile device (Android devices)
  • Using a new DTH with a different name (remember to modify it in the SmartApp) - This is to avoid caching issues.

Im not able to select even the water sensor because is not visible in any of the rooms. In fact i created another room Basement to isolate it but I can’t see the Basement in the grouped list.

I then moved a device previously showing but in Living Room


and that device disappeared since Basement room is not in the list.



.

Is there something i need for basement room to show in the Automation list.

Ok the Water heater and basement room is now showing, needed to wait a few minutes. Flume water sensor is not showing

I renamed DH, reinstalled the Flume SM App. The Flume device was initially assigned to ‘No room assigned’ moved again to ‘Basement’

Automations section still doesn’t show the Flume water sensor device :confused:
@nayelyz is there something else I can try? I have ios device.

At the very bottom of the Automations it says ‘Devices without available conditions aren’t shown’ . What’s the process to add a condition? Maybe that’s the issue??

It seems it only happens on iOS devices, I’m making further tests. As soon as I have more information, I’ll share it with you.

Update:
@Smartphi, this is caused because you’re using the deprecated capability Sensor. It’s highly recommended to avoid using this kind of capabilities, you can check the status of a capability using the SmartThings CLI:

$ smartthings capabilities sensor -j

//sample output
{
    "id": "sensor",
    "version": 1,
    "status": "deprecated",
    "name": "Sensor",
    "attributes": {},
    "commands": {}
}

So i renamed the DH and commented out deprecated “sensor”

But no luck. The flume water sensor capability still not showing in automation.


iOS 14.4.2

Is this the correct process to remove deprecated capabilities? What’s the proper way?

Remember that DTH configuration is cached after a while, to force the refresh in the app, you need to:

  1. Create a new device presentation with the correct capabilities. If you use the command below, you’ll see how the capability “sensor” is included in the source device-configuration of the current VID:
smartthings presentation:device-config d665a967-eccd-3ac7-bb72-b3d4c626f4dd -j -o=newDevConfigPres.json
  1. Create a new DTH, not only rename it. You can copy the configuration and change the name when you save it (here you need to assign the new VID).
  2. I suggest you also change the name assigned to the device when it’s created (the configuration from addChildDevice())