SmartThings Community

[Release] New TP-Link/Kasa Plug, Switch, and Bulb Integration

dth_lighting
dth_pocketsocket
(Spencer Wagner) #207

Still nothing in the energy fields and only two lines in the Current States instead of seven.

(Richard222222) #208

I tried All of the following And still do not Have a resolution.

All of the switches on - off work fine but no information on energy monitoring

Again thank you for looking into this . Much appreciated

c5e85dde-6268-48cf-ab16-96bea478d84e 10:52:07 AM: error Under Cabinet Lights: Sending Command Exception: java.lang.NullPointerException. Communications error with device.

6f855187-c1c8-4b18-a583-63512599c34c 10:52:06 AM: error Work Room Heat: Sending Command Exception: java.lang.NullPointerException: Cannot get property ‘get_daystat’ on null object. Communications error with device.

5b9163cf-a0f1-4ef8-a117-d66f519ce968 10:52:06 AM: error Media Fan: Sending Command Exception: java.lang.NullPointerException. Communications error with device.

e05faf9f-ed20-4baa-b87f-d930b4be47be 10:52:06 AM: error Workroom Air Cleaner: Sending Command Exception: java.lang.NullPointerException. Communications error with device.

c5e85dde-6268-48cf-ab16-96bea478d84e 10:52:06 AM: error Under Cabinet Lights: Sending Command Exception: java.lang.NullPointerException: Cannot get property ‘get_daystat’ on null object. Communications error with device.

e05faf9f-ed20-4baa-b87f-d930b4be47be 10:52:05 AM: error Workroom Air Cleaner: Sending Command Exception: java.lang.NullPointerException: Cannot get property ‘get_daystat’ on null object. Communications error with device.

6b4f9b70-65e9-4959-9c1b-213df77a3fdd 10:52:05 AM: debug state.errorCount = 0

eabda411-c7b0-4a9a-aff6-e2d0b7dca3a2 10:52:05 AM: error TP-Link Plug Energy New: Sending Command Exception: java.lang.NullPointerException: Cannot get property ‘get_daystat’ on null object. Communications error with device.

5b9163cf-a0f1-4ef8-a117-d66f519ce968 10:52:05 AM: error Media Fan: Sending Command Exception: java.lang.NullPointerException: Cannot get property ‘get_daystat’ on null object. Communications error with device.

d98b893e-7194-462a-85b6-40a527ec28e7 10:52:05 AM: info Torch Light 1 Ex Rm Plug: Interface Error. See SmartApp and Device error message.

d98b893e-7194-462a-85b6-40a527ec28e7 10:52:05 AM: error Torch Light 1 Ex Rm Plug: Device is offline

6b4f9b70-65e9-4959-9c1b-213df77a3fdd 10:52:05 AM: error Error in sendDeviceCmd: [error_code:-20571, msg:Device is offline]

bb0f4a88-ba94-4b7d-8149-1be7818f3963 10:52:05 AM: info Happy Light: Interface Error. See SmartApp and Device error message.

bb0f4a88-ba94-4b7d-8149-1be7818f3963 10:52:05 AM: error Happy Light: Device is offline

6b4f9b70-65e9-4959-9c1b-213df77a3fdd 10:52:05 AM: error Error in sendDeviceCmd: [error_code:-20571, msg:Device is offline]

3e0aae71-75ed-417b-b2dc-beba8971d918 10:52:04 AM: debug description is catchall: 0104 0006 01 01 0540 00 419E 00 00 0000 01 01 000086

c5e85dde-6268-48cf-ab16-96bea478d84e 10:52:03 AM: error Under Cabinet Lights: Sending Command Exception: java.lang.NullPointerException. Communications error with device.

eabda411-c7b0-4a9a-aff6-e2d0b7dca3a2 10:52:02 AM: error TP-Link Plug Energy New: Sending Command Exception: java.lang.NullPointerException. Communications error with device.

6f855187-c1c8-4b18-a583-63512599c34c 10:52:02 AM: error Work Room Heat: Sending Command Exception: java.lang.NullPointerException. Communications error with device.

5b9163cf-a0f1-4ef8-a117-d66f519ce968 10:52:02 AM: error Media Fan: Sending Command Exception: java.lang.NullPointerException. Communications error with device.

6b4f9b70-65e9-4959-9c1b-213df77a3fdd 10:52:02 AM: debug state.errorCount = 0

c5e85dde-6268-48cf-ab16-96bea478d84e 10:52:02 AM: error Under Cabinet Lights: Sending Command Exception: java.lang.NullPointerException: Cannot get property ‘get_realtime’ on null object. Communications error with device.

6b4f9b70-65e9-4959-9c1b-213df77a3fdd 10:52:02 AM: debug state.errorCount = 0

e05faf9f-ed20-4baa-b87f-d930b4be47be 10:52:02 AM: error Workroom Air Cleaner: Sending Command Exception: java.lang.NullPointerException. Communications error with device.

d98b893e-7194-462a-85b6-40a527ec28e7 10:52:02 AM: info Torch Light 1 Ex Rm Plug: Interface Error. See SmartApp and Device error message.

d98b893e-7194-462a-85b6-40a527ec28e7 10:52:02 AM: error Torch Light 1 Ex Rm Plug: Device is offline

6b4f9b70-65e9-4959-9c1b-213df77a3fdd 10:52:02 AM: error Error in sendDeviceCmd: [error_code:-20571, msg:Device is offline]

bb0f4a88-ba94-4b7d-8149-1be7818f3963 10:52:02 AM: info Happy Light: Interface Error. See SmartApp and Device error message.

bb0f4a88-ba94-4b7d-8149-1be7818f3963 10:52:02 AM: error Happy Light: Device is offline

6b4f9b70-65e9-4959-9c1b-213df77a3fdd 10:52:02 AM: error Error in sendDeviceCmd: [error_code:-20571, msg:Device is offline]

5b9163cf-a0f1-4ef8-a117-d66f519ce968 10:52:01 AM: error Media Fan: Sending Command Exception: java.lang.NullPointerException: Cannot get property ‘get_realtime’ on null object. Communications error with device.

6b4f9b70-65e9-4959-9c1b-213df77a3fdd 10:52:01 AM: debug state.errorCount = 0

406cb9f8-262a-4738-b863-1b1614c4feef 10:52:01 AM: info Switch - Living Room Fireplace: Power: off

d98b893e-7194-462a-85b6-40a527ec28e7 10:52:01 AM: info Torch Light 1 Ex Rm Plug: Interface Error. See SmartApp and Device error message.

d98b893e-7194-462a-85b6-40a527ec28e7 10:52:01 AM: error Torch Light 1 Ex Rm Plug: Device is offline

6b4f9b70-65e9-4959-9c1b-213df77a3fdd 10:52:01 AM: error Error in sendDeviceCmd: [error_code:-20571, msg:Device is offline]

6f855187-c1c8-4b18-a583-63512599c34c 10:52:01 AM: error Work Room Heat: Sending Command Exception: java.lang.NullPointerException: Cannot get property ‘get_realtime’ on null object. Communications error with device.

c5e85dde-6268-48cf-ab16-96bea478d84e 10:51:59 AM: info Under Cabinet Lights: Power: on

cdc0e780-c132-4790-a773-e58c439e914d 10:51:58 AM: info Switch - Living Room Outer 2: Power: off

ea5c0e83-778f-4839-b21a-a98973959d86 10:51:58 AM: info Switch - Media Room Center: Power: on

a5db298e-ab54-491e-af61-71b7a3c73a6c 10:51:58 AM: info Switch - Media Room Main Lights: Power: on

689ddad0-5438-4fca-b8cb-ea6a8a7f107b 10:51:58 AM: info Storage Area Steep: Power: off

6b4f9b70-65e9-4959-9c1b-213df77a3fdd 10:51:58 AM: debug state.errorCount = 0

5f45586c-2c01-4088-a2c5-06975ab4c1dc 10:51:58 AM: info Switch - Stairs Basement: Power: off

6b4f9b70-65e9-4959-9c1b-213df77a3fdd 10:51:58 AM: debug state.errorCount = 0

0fa00672-d974-4288-8a41-71e596a005cc 10:51:58 AM: info Switch - Guest Room Center: Power: off

6b4f9b70-65e9-4959-9c1b-213df77a3fdd 10:51:58 AM: debug state.errorCount = 0

828510e5-a099-43af-a476-2a3414a89ac9 10:51:58 AM: info postEventToEndpoint: event successfully posted.

828510e5-a099-43af-a476-2a3414a89ac9 10:51:58 AM: debug Property Change Event activity: online (source: DEVICE)

e1ee262f-63b9-410c-9072-1fbb9965e69d 10:51:58 AM: info Torch Light 2 Ex Rm Plug: Power: off

6b4f9b70-65e9-4959-9c1b-213df77a3fdd 10:51:58 AM: debug state.errorCount = 0

828510e5-a099-43af-a476-2a3414a89ac9 10:51:58 AM: info postEventToEndpoint: event successfully posted.

828510e5-a099-43af-a476-2a3414a89ac9 10:51:58 AM: debug Marked offline by device health Sun Mar 10 17:50:43 UTC 2019; lastSeen Sun Mar 03 17:51:58 UTC 2019; uncertainty 604725694 ms

828510e5-a099-43af-a476-2a3414a89ac9 10:51:58 AM: debug Property Change Event switch: off (source: DEVICE)

e05faf9f-ed20-4baa-b87f-d930b4be47be 10:51:58 AM: info Workroom Air Cleaner: Power: on

af169d39-c888-4a6b-99f4-63837ecc6fa0 10:51:58 AM: info Switch - Living Room Center: Power: off

e4ceb1f6-6696-4c5b-9479-860ba76e1b00 10:51:58 AM: info Switch - Guest Bath: Power: on

bb0f4a88-ba94-4b7d-8149-1be7818f3963 10:51:58 AM: info Happy Light: Interface Error. See SmartApp and Device error message.

bb0f4a88-ba94-4b7d-8149-1be7818f3963 10:51:58 AM: error Happy Light: Device is offline

6b4f9b70-65e9-4959-9c1b-213df77a3fdd 10:51:58 AM: error Error in sendDeviceCmd: [error_code:-20571, msg:Device is offline]

d98b893e-7194-462a-85b6-40a527ec28e7 10:51:58 AM: info Torch Light 1 Ex Rm Plug: Interface Error. See SmartApp and Device error message.

d98b893e-7194-462a-85b6-40a527ec28e7 10:51:58 AM: error Torch Light 1 Ex Rm Plug: Device is offline

6b4f9b70-65e9-4959-9c1b-213df77a3fdd 10:51:58 AM: error Error in sendDeviceCmd: [error_code:-20571, msg:Device is offline]

c5e85dde-6268-48cf-ab16-96bea478d84e 10:51:55 AM: info Under Cabinet Lights: Refresh Scheduled for every 30 minutes.

c5e85dde-6268-48cf-ab16-96bea478d84e 10:51:55 AM: info Updating Under Cabinet Lights…

406cb9f8-262a-4738-b863-1b1614c4feef 10:51:56 AM: info Switch - Living Room Fireplace: Refresh Scheduled for every 30 minutes.

406cb9f8-262a-4738-b863-1b1614c4feef 10:51:56 AM: info Updating Switch - Living Room Fireplace…

0fa00672-d974-4288-8a41-71e596a005cc 10:51:55 AM: info Switch - Guest Room Center: Refresh Scheduled for every 30 minutes.

0fa00672-d974-4288-8a41-71e596a005cc 10:51:55 AM: info Updating Switch - Guest Room Center…

5f45586c-2c01-4088-a2c5-06975ab4c1dc 10:51:55 AM: info Switch - Stairs Basement: Refresh Scheduled for every 30 minutes.

5f45586c-2c01-4088-a2c5-06975ab4c1dc 10:51:55 AM: info Updating Switch - Stairs Basement…

6b4f9b70-65e9-4959-9c1b-213df77a3fdd 10:51:55 AM: debug state.errorCount = 0

5b9163cf-a0f1-4ef8-a117-d66f519ce968 10:51:55 AM: info Media Fan: Refresh Scheduled for every 30 minutes.

5b9163cf-a0f1-4ef8-a117-d66f519ce968 10:51:55 AM: info Updating Media Fan…

bb0f4a88-ba94-4b7d-8149-1be7818f3963 10:51:55 AM: info Happy Light: Interface Error. See SmartApp and Device error message.

bb0f4a88-ba94-4b7d-8149-1be7818f3963 10:51:55 AM: error Happy Light: Device is offline

6b4f9b70-65e9-4959-9c1b-213df77a3fdd 10:51:55 AM: error Error in sendDeviceCmd: [error_code:-20571, msg:Device is offline]

bb0f4a88-ba94-4b7d-8149-1be7818f3963 10:51:55 AM: info Happy Light: Refresh Scheduled for every 30 minutes.

bb0f4a88-ba94-4b7d-8149-1be7818f3963 10:51:55 AM: info Updating Happy Light…

6f855187-c1c8-4b18-a583-63512599c34c 10:51:55 AM: info Work Room Heat: Refresh Scheduled for every 30 minutes.

6f855187-c1c8-4b18-a583-63512599c34c 10:51:55 AM: info Updating Work Room Heat…

e05faf9f-ed20-4baa-b87f-d930b4be47be 10:51:55 AM: info Workroom Air Cleaner: Refresh Scheduled for every 30 minutes.

e05faf9f-ed20-4baa-b87f-d930b4be47be 10:51:55 AM: info Updating Workroom Air Cleaner…

eabda411-c7b0-4a9a-aff6-e2d0b7dca3a2 10:51:55 AM: info TP-Link Plug Energy New: Refresh Scheduled for every minute.

eabda411-c7b0-4a9a-aff6-e2d0b7dca3a2 10:51:55 AM: info Updating TP-Link Plug Energy New…

ea5c0e83-778f-4839-b21a-a98973959d86 10:51:55 AM: info Switch - Media Room Center: Refresh Scheduled for every 30 minutes.

ea5c0e83-778f-4839-b21a-a98973959d86 10:51:55 AM: info Updating Switch - Media Room Center…

689ddad0-5438-4fca-b8cb-ea6a8a7f107b 10:51:55 AM: info Updating Storage Area Steep…

ea5c0e83-778f-4839-b21a-a98973959d86 10:51:55 AM: info Updating Switch - Media Room Center…

d98b893e-7194-462a-85b6-40a527ec28e7 10:51:55 AM: info Torch Light 1 Ex Rm Plug: Interface Error. See SmartApp and Device error message.

d98b893e-7194-462a-85b6-40a527ec28e7 10:51:55 AM: error Torch Light 1 Ex Rm Plug: Device is offline

6b4f9b70-65e9-4959-9c1b-213df77a3fdd 10:51:55 AM: error Error in sendDeviceCmd: [error_code:-20571, msg:Device is offline]

d98b893e-7194-462a-85b6-40a527ec28e7 10:51:55 AM: info Torch Light 1 Ex Rm Plug: Refresh Scheduled for every 30 minutes.

d98b893e-7194-462a-85b6-40a527ec28e7 10:51:55 AM: info Updating Torch Light 1 Ex Rm Plug…

bb0f4a88-ba94-4b7d-8149-1be7818f3963 10:51:55 AM: info Updating Happy Light…

69c1e2e2-28db-4207-b2e2-1b989791dcd4 10:51:55 AM: info Exercise Room Fan: Refresh Scheduled for every 30 minutes.

69c1e2e2-28db-4207-b2e2-1b989791dcd4 10:51:55 AM: info Updating Exercise Room Fan…

e4ceb1f6-6696-4c5b-9479-860ba76e1b00 10:51:55 AM: info Switch - Guest Bath: Refresh Scheduled for every 30 minutes.

e4ceb1f6-6696-4c5b-9479-860ba76e1b00 10:51:55 AM: info Updating Switch - Guest Bath…

e1ee262f-63b9-410c-9072-1fbb9965e69d 10:51:55 AM: info Torch Light 2 Ex Rm Plug: Refresh Scheduled for every 30 minutes.

e1ee262f-63b9-410c-9072-1fbb9965e69d 10:51:55 AM: info Updating Torch Light 2 Ex Rm Plug…

af169d39-c888-4a6b-99f4-63837ecc6fa0 10:51:55 AM: info Switch - Living Room Center: Refresh Scheduled for every 30 minutes.

af169d39-c888-4a6b-99f4-63837ecc6fa0 10:51:55 AM: info Updating Switch - Living Room Center…

6b4f9b70-65e9-4959-9c1b-213df77a3fdd 10:51:52 AM: trace 4.0.01 updateInstallData

6b4f9b70-65e9-4959-9c1b-213df77a3fdd 10:51:52 AM: trace 4.0.01 flowDirector updateInstallData

6b4f9b70-65e9-4959-9c1b-213df77a3fdd 10:51:52 AM: trace 4.0.01 initialize updateInstallData

af169d39-c888-4a6b-99f4-63837ecc6fa0 10:51:52 AM: info Installing Switch - Living Room Center…

ea5c0e83-778f-4839-b21a-a98973959d86 10:51:52 AM: info Installing Switch - Media Room Center…

cdc0e780-c132-4790-a773-e58c439e914d 10:51:52 AM: info Installing Switch - Living Room Outer 2…

406cb9f8-262a-4738-b863-1b1614c4feef 10:51:52 AM: info Installing Switch - Living Room Fireplace…

a5db298e-ab54-491e-af61-71b7a3c73a6c 10:51:52 AM: info Installing Switch - Media Room Main Lights…

0fa00672-d974-4288-8a41-71e596a005cc 10:51:52 AM: info Installing Switch - Guest Room Center…

400e5f3b-ef32-4a3e-8d9b-a65857fa69c4 10:51:52 AM: info Installing Switch - Guest Room Main Lights…

e05faf9f-ed20-4baa-b87f-d930b4be47be 10:51:52 AM: info Installing Workroom Air Cleaner…

c5e85dde-6268-48cf-ab16-96bea478d84e 10:51:52 AM: info Installing Under Cabinet Lights…

eabda411-c7b0-4a9a-aff6-e2d0b7dca3a2 10:51:52 AM: info Installing TP-Link Plug Energy New…

5f45586c-2c01-4088-a2c5-06975ab4c1dc 10:51:52 AM: info Installing Switch - Stairs Basement…

e4ceb1f6-6696-4c5b-9479-860ba76e1b00 10:51:52 AM: info Installing Switch - Guest Bath…

e1ee262f-63b9-410c-9072-1fbb9965e69d 10:51:52 AM: info Installing Torch Light 2 Ex Rm Plug…

6f855187-c1c8-4b18-a583-63512599c34c 10:51:52 AM: info Installing Work Room Heat…

69c1e2e2-28db-4207-b2e2-1b989791dcd4 10:51:52 AM: info Installing Exercise Room Fan…

912d4ae5-8ac5-4a8a-9b1c-cada0e921767 10:51:52 AM: info Installing Workroom Fan…

5b9163cf-a0f1-4ef8-a117-d66f519ce968 10:51:52 AM: info Installing Media Fan…

d98b893e-7194-462a-85b6-40a527ec28e7 10:51:52 AM: info Installing Torch Light 1 Ex Rm Plug…

689ddad0-5438-4fca-b8cb-ea6a8a7f107b 10:51:52 AM: info Installing Storage Area Steep…

bb0f4a88-ba94-4b7d-8149-1be7818f3963 10:51:52 AM: info Installing Happy Light…

6b4f9b70-65e9-4959-9c1b-213df77a3fdd 10:51:45 AM: info Device Torch Light 1 Ex Rm Plug added to devices array

6b4f9b70-65e9-4959-9c1b-213df77a3fdd 10:51:45 AM: info Device Media Fan added to devices array

6b4f9b70-65e9-4959-9c1b-213df77a3fdd 10:51:45 AM: info Device Switch - Living Room Outer 2 added to devices array

6b4f9b70-65e9-4959-9c1b-213df77a3fdd 10:51:45 AM: info Device Work Room Heat added to devices array

6b4f9b70-65e9-4959-9c1b-213df77a3fdd 10:51:45 AM: info Device Workroom Air Cleaner added to devices array

6b4f9b70-65e9-4959-9c1b-213df77a3fdd 10:51:45 AM: info Device Switch - Media Room Center added to devices array

6b4f9b70-65e9-4959-9c1b-213df77a3fdd 10:51:45 AM: info Device Switch - Guest Bath added to devices array

6b4f9b70-65e9-4959-9c1b-213df77a3fdd 10:51:45 AM: info Device Torch Light 2 Ex Rm Plug added to devices array

6b4f9b70-65e9-4959-9c1b-213df77a3fdd 10:51:44 AM: info Device Happy Light added to devices array

6b4f9b70-65e9-4959-9c1b-213df77a3fdd 10:51:44 AM: trace 4.0.01 kasaGetDevices bc5cd72a-A3oW2dpAlj6DVd9VKoqqKrG

6b4f9b70-65e9-4959-9c1b-213df77a3fdd 10:51:44 AM: trace 4.0.01 welcomePage: installType = Kasa Account

(Rob Blaser) #209

Dave,
Here is the output from my live logging with the error (everything is copy and pasted, except I changed the email/password to fake ones:

1:54:33 AM: error java.lang.NullPointerException: Cannot get property ‘id’ on null object @line 502 (getToken)
1:54:33 AM: trace 4.0.01 getToken r.blazer@gmail.com, passw0rd
1:54:33 AM: trace 4.0.01 flowDirector updateKasaToken
1:54:33 AM: trace 4.0.01 initialize updateKasaToken
1:53:53 AM: trace 4.0.01 startPage: installType = Kasa Account

Also…I don’t actually have to have a Hub installed, do I? I’m using the Kasa Account method so I didn’t think the Hub was required (even though you have it listed in prerequisites)…

(Dave Gutheinz) #210

The HUB is required for this integration.

(Rob Blaser) #211

Hmmm… Is there no way to get it working without a hub?

I have one, just haven’t set it up yet. Guess I’ll have to dig it up and get it setup finally…

You think that a missing hub is the cause for my issue?

#212

After updating I get current power and usage today but nothing else is populated, even after power cycling.

(Dave Gutheinz) #213

Without a hub, this integration will not work.

(Dave Gutheinz) #214

Try saving your preferences. This will kick-start the em functions; including setting the current date and scheduling daily updates. Assure you are using driver version 4.0.02 (top part of file has a all to this number)

(Ricky Wong) #215

thanks for your great work and the instruction is very clear.
but when I add devices in smartthings, I checked my device HS200 and hit done,
when I try to save it, I got “An unexpected error occurred”
what did I do wrong?
Thanks!

(Dave Gutheinz) #216

Without logs it is hard to tell. Most likely you do not have the correct driver. See the insturctions.

(Daryl) #217

hi dave, do you support the repo method for keeping up to date with your amazing work?

Owner, name and branch?

(Rick) #218

I’m having this same problem. iOS, no “Save” button on the upper right. Just a “<” button on the upper left. Was there ever a fix for this? I’m not sure I have an android piece of hardware newer than 10 years old to attempt this on.

(Dave Gutheinz) #219

Have only seen three reports in two plus years. However, things change. I will modify the code to add a select area to update the password. Should be done tomorrow.

(Dave Gutheinz) #220

I use the SmartThings integration link. So

  • Owner: DaveGut
  • Name: SmartThingsPublic
  • Branch: Master
(Daryl) #221

thank you so much for everything you do. Just like to let you know that there are people out here that really really appreciate it.

1 Like
(Dave Gutheinz) #222

@ mekaneck

I have a test update complete. Need a volunteer (you?) to check if it works OK. If successful, I will update the gitHub documentation.

Link:
https://github.com/DaveGut/TP-Link-SmartThings/blob/master/Service%20Manager/TEST%20-%20TP-Link%20SmartThings%20Manager.groovy

PLEASE REPLY work or not.

(Rick) #223

@Gutheinz

Works! This is fantastic. Boggles my mind that someone doing something for free can be this helpful and responsive. If this was a commercial application I’d never get support like this.

Thank you very much for this.

(Dave Gutheinz) #224

Thanks. My efforts are based on my set of rules:

  • Put yourself in the shoes of people with a concern you are addressing.
  • Treat people as you would want to be treated in the same situation.
  • We are all here together and we should help each other bungle through the jungle.

Dave

1 Like
#225

@Gutheinz Thank you so much for your genius app. Now I get to have centralized hub for everything!

I did encounter one problem and hope someone can give me a pointer. The TP-link switch I added can be controlled by SmartThings, however, when I manually press the switch and turn it on/off, the signal is not broadcasted to SmartThings and the status remain unchanged (status on Kasa does change though). Controlling switch on Kasa app does not change the status on ST but controlling switch on ST does sync the status on Kasa. I wanted to add an automation to shut off lights after x minutes. Since ST can’t detect me turning on the switch at the moment, the automation cannot be kicked off.

I’m stuck here. Any ideas what I was doing wrong?

(Dave Gutheinz) #226

This is not uncommon. There is no automatic announcement from the Kasa site and no way in SmartThings to monitor if there was. The best I can offer is the Refresh Rate preference you can set to as low as every minute. This will give you one minute granularity (actually 30 second average).

Recommendations are reducing to one minute only those devices you want to automatically turn off. Others can be 5, 10, 15, or 30 minutes, the default.

Setting preferences. I know of two ways:
Classic phone app: In the classic phone app, you go to the device’s detail page and select preferences (gear it upper right). There you will find several preferences you can set; including refresh rate.
Application (service manager): In the Service Manager (application) is a section on updating preferences. You can change preferences there also (I put this in since the new app (at the time) did not have a way to set device preferences (that I could find).