Yivey_unraid Posted December 5, 2023 Share Posted December 5, 2023 Thanks a lot! Using this with a Tasmota flashed Shelly Plug S. Is there any possibility to add time active field to “Total”? Total is quite useless unless you know when it was reset last. I haven’t seen this on the Tasmota UI either, so perhaps it’s not possible to do. Quote Link to comment
DarthRidar Posted January 3 Share Posted January 3 (edited) Hello Flippo This is how it appears for me Is that correct? I would like to see it displayed like they do. Best regards Edited January 3 by DarthRidar Quote Link to comment
planetwilson Posted February 21 Share Posted February 21 Any chance we can get the power in watts to display on the bottom status bar like I have my CPU temp? 3 Quote Link to comment
DataCollector Posted March 10 Share Posted March 10 Any chance to use this Plugin for multiple tasmota devices? 1 Quote Link to comment
Vitek Posted March 23 Share Posted March 23 What total field refers to? It is from the start of the plugin or monthly? Quote Link to comment
Vr2Io Posted March 23 Share Posted March 23 (edited) 47 minutes ago, maTTi said: What total field refers to? It is from the start of the plugin or monthly? The reading come from tasmota device. It is accumulated energy usage from last reset, you can reset it under device web console anytime. Edited March 23 by Vr2Io 1 Quote Link to comment
DeeBop Posted May 5 Share Posted May 5 Great Plugin. Is it possible to monitor more than one tasmota devices in the same network? Quote Link to comment
SimonF Posted May 6 Share Posted May 6 22 hours ago, DeeBop said: Great Plugin. Is it possible to monitor more than one tasmota devices in the same network? Not without development. @DataCollector I have other projects I am working on but happy to have people raise PRs Quote Link to comment
ElVit Posted June 27 Share Posted June 27 (edited) On 3/23/2021 at 12:04 AM, Flippo said: Hi guys, I want to introduce you to my Tasmota Power Monitor. With this UnRaid plugin you can turn a Tasmota device into an energy monitor for your server. I got the idea from corsairpsu-unraid, but since I don't have a suitable Corsair PSU, I found an alternative in a Tasmota Power Plug. It shows the most common measured values and offers the option of costing for electricity consumption. Dashboard: Settings: The password is saved in plain text. Introduction Before you start, be sure that you protect your Tasmota device against incorrect operation. So that you don't accidentally turn off your server. I solved this for myself with the command: PowerOnState 4 This sets the on / off switch in the WebUI and on the device to always on. Therefore, check what would be best for your device before using it. Have a look at the Tasmota Documentation. Use the plugin and device at your own risk. I will not be responsible for any damage. I use an Aisirer Power Monitoring Plug (AWP07L) with Tasmota firmware 8.5.1 and this template. {"NAME":"AWP07L","GPIO":[56,255,255,255,255,134,255,255,131,17,132,21,255],"FLAG":0,"BASE":18} Created and tested with Unraid 6.9.1. Installation as usual... https://raw.githubusercontent.com/Flippo24/tasmotapm-unraid/main/tasmotapm.plg Thank you for this nice plugin @Flippo. I saw that you have also created a plugin for espurna. I use home assistant and my energy meter plug is flashed with esphome. Would be great I you could also write an unraid plugin for esphome 😃 Edited June 27 by ElVit Quote Link to comment
ElVit Posted June 27 Share Posted June 27 I have no experience with unraid plugin development. But I think the file "status.php" should look something like this for EspHome: <?php $esphomepm_cfg = parse_ini_file( "/boot/config/plugins/esphomepm/esphomepm.cfg" ); $esphomepm_device_ip = isset($esphomepm_cfg['DEVICE_IP']) ? $esphomepm_cfg['DEVICE_IP'] : ""; $esphomepm_device_user = isset($esphomepm_cfg['DEVICE_USER']) ? $esphomepm_cfg['DEVICE_USER'] : ""; $esphomepm_device_pass = isset($esphomepm_cfg['DEVICE_PASS']) ? $esphomepm_cfg['DEVICE_PASS'] : ""; $esphomepm_costs_price = isset($esphomepm_cfg['COSTS_PRICE']) ? $esphomepm_cfg['COSTS_PRICE'] : "0.0"; $esphomepm_costs_unit = isset($esphomepm_cfg['COSTS_UNIT']) ? $esphomepm_cfg['COSTS_UNIT'] : "USD"; if ($esphomepm_device_ip == "") { die("esphome Device IP missing!"); } if ($esphomepm_device_user == "") { die("esphome username missing!"); } if ($esphomepm_device_pass == "") { die("esphome password missing!"); } $json = array( 'Power' => getvalue($esphomepm_device_ip,"power",$esphomepm_device_user, $esphomepm_device_pass), 'Voltage' => getvalue($esphomepm_device_ip,"voltage",$esphomepm_device_user, $esphomepm_device_pass), 'Current' => getvalue($esphomepm_device_ip,"current",$esphomepm_device_user, $esphomepm_device_pass), 'Factor' => getvalue($esphomepm_device_ip,"factor",$esphomepm_device_user, $esphomepm_device_pass), 'Energy' => getvalue($esphomepm_device_ip,"energy",$esphomepm_device_user, $esphomepm_device_pass), 'ApparentPower' => getvalue($esphomepm_device_ip,"apparent",$esphomepm_device_user, $esphomepm_device_pass), 'ReactivePower' => getvalue($esphomepm_device_ip,"reactive",$esphomepm_device_user, $esphomepm_device_pass), 'Costs_Price' => $esphomepm_costs_price, 'Costs_Unit' => $esphomepm_costs_unit ); //header('Content-Type: application/json'); echo json_encode($json); function getvalue($ip, $param, $username, $password) { $Url = "http://" . $ip . "/sensor/" . $param; $curl = curl_init($Url); curl_setopt($curl, CURLOPT_FAILONERROR, true); curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true); curl_setopt($curl, CURLOPT_HTTPGET, true); curl_setopt($curl, CURLOPT_HTTPAUTH, CURLAUTH_BASIC); curl_setopt($curl, CURLOPT_USERPWD, $username . ":" . $password); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); $resultJson = curl_exec($curl); curl_close($curl); $resultObj = json_decode($resultJson, true); $value = $resultObj->{'value'}; $value = isset($value) ? $value : "0"; return $value; } ?> Quote Link to comment
Fozzuk Posted July 18 Share Posted July 18 (edited) Has anyone had any luck using this plugin with a plug flashed with OpenBK? After a bit of tweaking I've managed to pull live power usage from the plug, but I can't get Unraid to pull energy history even though it's reported via the plug GUI: (the 1.5W is probably accurate - the plug is currently not supplying my server, there's just a USB thingy plugged into it) Just to clarify: I have no idea what I'm doing here. Tasmota and its forks seem to be a massive and technical black hole. Edited July 18 by Fozzuk Quote Link to comment
ElVit Posted July 19 Share Posted July 19 (edited) On 7/18/2024 at 12:56 PM, Fozzuk said: Has anyone had any luck using this plugin with a plug flashed with OpenBK? After a bit of tweaking I've managed to pull live power usage from the plug, but I can't get Unraid to pull energy history even though it's reported via the plug GUI: (the 1.5W is probably accurate - the plug is currently not supplying my server, there's just a USB thingy plugged into it) Just to clarify: I have no idea what I'm doing here. Tasmota and its forks seem to be a massive and technical black hole. I have 2 Smart Plugs lying around here, 1 Tasmota and 1 OpenBeken flashed on. Here are the outputs if put http://IP_OF_YOUR_DEVICE/cm?cmnd=Status%208 in the browser: OpenBeken: { "StatusSNS": { "Time": "2024-07-19T14:33:13", "ENERGY": { "Power": 12.699999, "ApparentPower": 12607.089843, "ReactivePower": 12607.083984, "Factor": 0.001007, "Voltage": 233.464630, "Current": 54.000000, "ConsumptionTotal": 483.106109, "Yesterday": 482.320281, "ConsumptionLastHour": 0.004588 } } } Tasmota: { "StatusSNS": { "Time": "2024-07-19T15:32:08", "ENERGY": { "TotalStartTime": "2024-07-19T14:34:49", "Total": 0.001, "Yesterday": 0.000, "Today": 0.001, "Power": 13, "ApparentPower": 13, "ReactivePower": 0, "Factor": 1.00, "Voltage": 233, "Current": 0.054 } } } As you can see some values are not matching. For me the OpenBeken Plug does not work at all with this Unraid Plugin... But the Tasmota Plug is working 😃 Edited July 19 by ElVit Quote Link to comment
Holyasgard Posted July 31 Share Posted July 31 Hello, I have an electricity tariff that changes every hour. Is it possible to integrate a function to store an API from e.g. Tibber or Awattar to use the hourly electricity price instead of a fixed contribution? Quote Link to comment
KrisAusEU Posted August 11 Share Posted August 11 Hi, I have not read the whole thread and also find nothing to this in the internet. Can I change the description of the block in the dashboard and could I display a second device/box there? For example instead of "Tasmota Power Monitor" , "Starlink" or network. And can I translate the measurements description to German anywhere? Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.