Exploring SmartThings Integration with Tasmota Devices

I’ve recently been diving into the world of smart home automation, and I must say, it’s been an exciting journey! One of the projects I’ve been working on involves integrating my Tasmota Smart Meter Reader with SmartThings. While I’ve managed to get the basic functionality up and running, I’ve encountered a couple of challenges that I’m hoping the community can help me with.

First off, I’ve set up a custom driver to communicate with my Tasmota device using HTTP requests. The driver seems to be working as intended, but I’m facing an issue with automatic updates. Right now, I can only manually refresh the power consumption readings, which isn’t ideal for creating routines or generating detailed usage graphs. I’m wondering if there’s a way to automate these updates so that the data is refreshed at regular intervals without manual intervention.

Another challenge I’m facing is with the granularity of the data visualization. Currently, the graph only shows data broken down into hours and days, but I’d love to see a more detailed view, specifically at the minute level. This would allow me to get a better understanding of my energy usage patterns throughout the day. I’ve noticed that some other sensors, like the Aeotec Motion Sensor, offer this level of detail, so I’m curious if it’s something that can be implemented for my Tasmota device as well.

If anyone has experience with SmartThings drivers or has successfully integrated Tasmota devices with similar functionality, I’d greatly appreciate any insights or tips you might have. I’m still quite new to this, so even a nudge in the right direction would be incredibly helpful!

Here’s a snippet of my current driver setup for reference:

lua
local capabilities = require “st.capabilities”
local Driver = require “st.driver”
local log = require “log”

– Custom command handlers and discovery logic here

local smi_driver = Driver(“smart_meter”, {
discovery = discovery.handle_discovery,
lifecycle_handlers = {
added = device_added,
init = device_init,
removed = device_removed
},
capability_handlers = {
[capabilities.refresh.ID] = {
[capabilities.refresh.commands.refresh.NAME] = command_handlers.refresh,
}
}
})

smi_driver:run()

Any guidance on how to implement automatic updates and more granular data visualization would be fantastic. Thanks in advance for your help! :rocket: