16 ms·
Analyzing my electricity consumption
- CharlesW 2y agoQuestion for experts: I'm on SDG&E (North County San Diego) and apparently have a smart meter that supports HAN at 900 MHz, but at the end of last year SDG&E declared "no new devices [HAN devices] can be connected". Does this mean that if I want to monitor my electricity use that I’m out of luck?
- minitoar 2y agoThat was just for local real-time monitoring iirc, using eg an Emporia Vue. I think you can still get the data from their website.
- CharlesW 2y agoSDG&E supports "Green Button" downloads, but I wonder how long that will last — the links in the "Apps" section of https://www.energy.gov/data/green-button https://www.energy.gov/data/green-button are dead, the official GitHub repo and Green Button Alliance repo appear to have gone into a coma around 2015, and Wikipedia doesn't have an entry for it.
- caf 2y agoA lot of smart meters also have a simple LED pulse output, that you can read with a light sensor.
- etherael 2y agoHow is this sustainable as the gap between self generated and stored energy and the grid price continues to diverge? If present trends hold it won't be long before a few years worth of energy bills even in Europe finance a full off grid deployment. There doesn't seem to be much room to cut on the energy companies pricing which remains variable and pointlessly complicated vs "I bought this off grid system and now I never think about energy anymore". Just people in high density housing, people in a lease, and those who can't afford the up front cost will constitute the majority of residential grid energy usage and purchasing?
- antonkochubey 2y agoOther than southern Spain, France, Italy and Greece, you're not going to run off-grid anywhere in Europe. Too little sun in the winter for heating needs. Unless you're considering small-scale wind power installations, but I cannot imagine what costs those could incur in installation alone.
- stoneman24 2y agoUp in Orkney on vacation, the pretty constant wind all year (according to relatives) with a little solar, battery storage and heat pumps, I reckon off-grid might be possible. Add in starlink for internet and I might just stay here. Not sure of the cost (need to do the research) but all of the above are getting cheaper. A small wind turbine can’t be that costly, surely.
- infecto 2y agoWind turbines in my research are pretty terrible unless run at scale (massive). YMMV but when I last looked into it, small turbines tended to be 1) noise polluters, 2) not very large power generators and 3) poor build quality.
- perlgeek 2y agoThe dilemma with wind turbines is that the small ones tend to be inefficient (and still much more expensive than solar), and large ones require huge up-front investments. I'd love to be proven wrong about this though, if anybody has links to affordable wind turbines / generators, I'd be interested.
- eldaisfish 2y agosmall wind turbines have a terrible reliability and maintenance track record. They are not worth the investment.
- mcsniff 2y agoOff-grid does not mean renewable-only. You can run a generator to charge batteries or provide additional capacity when needed. It would be ideal to have full coverage with "renewables" (isn't oil and gas a renewable just on a longer timeline?) but don't let perfect be the enemy of good if you want to move off-grid.
- Scoundreller 2y ago> the organization managing the national French power grid (Enedis) has been in the process of replacing the legacy “dumb” electricity meters by “smart” meters, known under the brand name “Linky” My jurisdiction, Ontario Canada, mass implemented these and found that people didn’t really shift their peak demand use much and it’s debatable if the amount spent was worth it. Costs just as much to implement for light users but they’re diminishing returns for any habit changes. https://www.auditor.on.ca/en/content/annualreports/arreports/en16/v2_111en16.pdf https://www.auditor.on.ca/en/content/annualreports/arreports... Also went all-in on submetering small units like condominiums+apartments where there’s not much tenant/occupant ability to control their usage/equipment. If anything, just further encourages owners/builders to install the poorest efficiency stuff since they’re not paying the usage bill. Not surprising that other tactics are more effective (dirt cheap LEDs, renovation programs, improving appliance efficiency… my TV and computers use a fraction of what they used to, wall warts are all SMPS now). Still can’t find a “smart fridge” that runs in ultra-chill mode when rates are cheap and backs off when they’re high. Kinda antithetical to use more electricity to save but it’s true. I really wish they could push the telecoms to focus on CPE efficiency since I’m forced to use their equipment.
- 01HNNWZ0MV43FF 2y ago> Still can’t find a “smart fridge” that runs in ultra-chill mode when rates are cheap and backs off when they’re high. Kinda antithetical to use more electricity to save but it’s true. It makes sense if you think of the thermal mass as a battery. Technology connections says he does that with his air conditioner, runs it hard overnight so it stays cold longer with less effort during the day
- bcrosby95 2y agoIt being cold also tends to help with better sleep. We set our AC to 76 during most of the day, 80 during on-peak pricing, and 72 overnight.
- marcosdumay 2y ago> runs it hard overnight so it stays cold longer with less effort during the day Shouldn't it be the other way around? The days when electricity was cheaper at night are long gone.
- bloopernova 2y agoWouldn't it be cool if every wall and ceiling socket could report its electrical usage? I wonder if that's possible via powerline networks, or if it would work over something like Zigbee?
- belval 2y agoZigBee could definitely do it but as someone with a lot of smart wall plugs (I have a total of ~40 ZigBee devices in my house) that data is just not really useful because it's just a drop in the bucket compared to cooling/heating/hot water. One thing that would be more useful and that I really want to get is one of those amp meter for the distribution panel to see my power consumption in realtime: https://www.aliexpress.com/item/1005007038134809.html https://www.aliexpress.com/item/1005007038134809.html but I didn't get around to it yet.
- alias_neo 2y agoThis is what I've done; I use a Z-Wave power meter on my electricity meter for whole-home, then some individual ones for my desk/3dp/rack, the ~50 ZigBee devices I have are mostly bulbs or sensors (I also have another ~40-50 Z-Wave devices) and the majority are things that use very little power; the usage stats from those things is a rounding error. For bulbs and sensors, the power usage isn't useful for automation either, you can use other data they provide (turn off lights when no one is around, do stuff when doors open/close). For whole-home though, it can be useful to see if the power is higher than you'd expect; if it's not dinner time and we're using 2kW+ for more than a few minutes, send a notification in case someone left an electric heater or an iron or something on.
- TeMPOraL 2y agoI'd appreciate smart plugs with bidirectional communication, as real-time power use report + ability to switch the plug = poor man's way to turn most devices into IoT devices for local control. It would help in particular with ones operated by IR remotes, which deliver commands but don't get feedback on their state; you could observe device's power consumption to infer the current mode of operation, providing a bidirectional control abstraction in e.g. Home Assistant.
- skywal_l 2y agoSo you have to go to a third-party to get your data from a public service. Absurdity is the word that defined our era it seems. > "Depuis le passage à l'OAuth2.0, il vous faut obligatoirement avoir une entité juridique afin de signer un contrat avec Enedis. Pour avoir une entité juridique, il faut obligatoirement être une société ou une association." > "Since the transition to OAuth2.0, you must have a legal entity in order to sign a contract with Enedis. To have a legal entity, you must be a company or association"
- deleted 2y ago[deleted]
- zdimension 2y agoYep, that's unfortunately the case for a lot of public entities. Open Banking is similar: at first you may think it means your banking data is open, so you can access it, as a consumer, through an open API... But Open Banking only makes banking data open for licensed data processors under very strict conditions and with quite stringent limitations.
- Mathnerd314 2y agoWhat about requesting it under GPDR?
- LelouBil 2y agoIt's useful as information, but imagine having to wait a month for each API call !
- Mathnerd314 2y agoI think waiting a month is fine? I get reports monthly anyway.
- actionfromafar 2y agoI wonder if a situation similar to Letsencrypt could be setup in the Open Banking space. A non-profit (or something) entity with easy integration for consumers requesting data on their behalf.
- jeffbee 2y agoNot sure I really agree with all these design choices. The color scale on the hour/day grid initially seemed backwards to me. The daily total takes up so much space that it would be better as a normal line or point graph with scaled axes, instead of trying to guess the correspondence with the color. Aside from that I am curious about the discontinuity at 22h. How many and what kinds of loads automatically respond to these price signals? Just heaters and water heaters?
- schiffern 2y agoWhile trying to skim the data, I kept wishing for a 3D or pseudo-3D "skyscraper" visualization, where height represents consumption.
- zdimension 2y ago> Aside from that I am curious about the discontinuity at 22h. My water heater turns on during off-peak hours (so, at 22h). I have no other equipment that responds to the off-peak signal, so the discontinuity is entirely attributable to the water heater. > The color scale on the hour/day grid initially seemed backwards to me. I think it was one of the default color scales in Plotly. Maybe I got used to it, it doesn't strike me as reversed, but I think I see how it would feel that way for you. > The daily total takes up so much space That is true, though it didn't disturb me enough to bother changing its size.
- vzaliva 2y agoI have a very nice Graphana-based UI showing electric consumption data from Tesla power wall: https://github.com/jasonacox/Powerwall-Dashboard https://github.com/jasonacox/Powerwall-Dashboard Together with temperatures in the rooms and AC activity: https://github.com/cdzombak/ecobee_influx_connector https://github.com/cdzombak/ecobee_influx_connector I plan to add a vehicle charging date to it (via Chargepoint Home). I think Graphhana+Influx is a way to go for this type of projects.
- grecy 2y agoI would love a way to turn off my electric hot water heater between the hours of about 10pm and 7am. I see no reason to keep the water hot during the time absolutely nobody needs it, and we know it will take less energy to heat it back up again rather than keep it at temperature. Also, yes, I have turned the temperature down as low as it will go.
- saagarjha 2y agoAre you sure this is true? The thermal mass of water is a lot, and in theory your tank should be well insulated?
- marcosdumay 2y agoIt's always true, for any tank on any environment.
- tinodb 2y agoAre you saying insulation is worthless?
- grecy 2y agoInsulation is worthwhile, but has nothing to do with what you are asking. If you are heating a house, or a water tank, or anything, it requires much more energy to keep it at a constant temp 24x7 than it does to let it cool down when you don't need it hot, and then just heat it back up again later. That is why "smart" thermostats like the Nest became so popular. No need to heat your house while you are away during the day. So let it cool down a bit, then just warm it back up again soon before you come home. Much less energy used.
- tinodb 2y agoThat fully depends on the level of insulation. Newly build houses here in The Netherlands rarely cool down when heating is off, and the temperature stays generally stable, even when you are out (and the heating is off). My Quooker is so well insulated, that you should only turn it off if you aren’t home for a week. Otherwise is exactly counter to what you say: more energy efficient to keep it at temperature instead of letting it cool and heating it again [0]. [0] https://hotwatertaps.com/turning-off-boiling-water-tap/ https://hotwatertaps.com/turning-off-boiling-water-tap/
- kkfx 2y agoFew notes: - fear and polemics about connected meters was not about "surveillance" by some giant but more about ability to disconnect or throttle a customer from remote and third party monitoring to elicit family habits for instance to organize a burglary; - reading the meter without the need to get inside the home was already a solved problem with "telereport", a small local dedicated bus with wires going in some public places (like the hall of a condo, a small box near the portal of a home etc) who allow local reading, this could be used to send data remotely WITHOUT adding extra abilities like throttling or disconnecting; - polemics exists for similar reasons for IVRE norms (BEV domestic charging) where the norms demand a kind of "remote control" to allow disconnecting the load from the grid when needed by the grid, without considering the few but not so few with domestic p.v. in self consumption that might get disconnected as well because there is no analysis of the grid absorption load just a "run this if the grid is strained"; - `Enedis website is nice` is well... debatable... Beside this small notes NOT intended to diminish the author creation, IMVHO monitoring is useful only if you can act, for instance with p.v. and controllable appliances it's a good thing, and unfortunately there is next to none appliance really designed to run on p.v. when available, even 99% of those who claim the contrary. The first are domestic water heaters who actually could be piloted to shift load with HA/Shelly/* sometimes just abruptly cutting the power and giving it back when there is enough p.v. but not much more, secondary running dishwashers and washing machines left loaded and ready in a "run before 'given date and time' preferably on p.v. power" and so on. Technically such automation are damn simple and cheap if designed as part of every appliance but so far next to no one seems to be doing so, while mandatory monitoring and published monitoring solutions are more and more pushed. Personally having p.v. I do my best to shift loads and it's damn hard, mostly limited to smart switches connected to HA, because there is not much more to do. I can "hack" my dishwasher or washing machines, are dumb and basic enough to be easy just seeing their small controls and replicate them with a some GPIO on a raspizero and alike but that's a long uncomfy process since every machines have it's own controls and you have to redo when you change it. There is no standard.
- juahan 2y agoIn Finland (and I guess at least other Nordics as well) we are starting to get neters with so called P1-port, which is open for the user to get their data. All I needed was a wire with RJ26 and an ESP8622 with some esphome definitions and now I get all kinds of data from the meter every 4 seconds. Total consumption, consumption, amperage and voltages per phase etc.
- nagisa 2y agoThe port/protocol originates in Netherlands and is getting widely implemented across the EU. It is really nice that the port provides power (esp. in recent versions) for an ESP, so you don't need to worry about bringing power to where your meter is (which may be outdoors.)
- microtonal 2y agoYeah, P1 has been around for a decade or so in the Netherlands. If don’t feel like setting up an MCU yourself, Homewizard Energy is pretty good. I don’t use their services, but you can enable a simple API on the local network that gives you a JSON representation of the ‘telegrams’ that come out of the P1 serial port. https://www.homewizard.com/p1-meter/ https://www.homewizard.com/p1-meter/
- juahan 2y agoOh yes, now I remember reading the P1 spec and it does indeed say that it has been in use in the Netherlands for many years already. In Finland we also call it the HAN-port or the H1-port. Also, I must clarify that it uses RJ12, not RJ26 which I don’t even think exists.
- ragebol 2y agoThe HomeWizard stuff is great. They also make a water meter, separate kWh meters in 1 or 3 phase and smart plugs. If you have a subscription to their service, they can be programmed to eg turn on when there's excess solar power etc. And integrates with HomeAssistant.
- 2y ago
- oakesm9 2y agoThe UK has smart energy meters for a lot of customers. Octopus are an energy supplier which is using them to great effect for data nerds and people who want to save money. To get the data out, you can just call their API to get daily consuption figures, split into half hourly blocks[0]. They also allow you to just download a CVS file directly from the energy use section of their website. The data in the API is only update daily, but they can give you a tiny addon device[1] for free which will allow you to access live usage in realtime (updates ever 10 seconds I think). I use a Home Assistant integration to collect all this data live there. To make use of the smart meter, they also have a series of tarrifs which change price dynamically. The simplist is Tracker[2] which charges you a different price per unit every day based on the wholesale price. There's also Agile[3] which is the same concept but the price changes every 30 minutes with higher highs and lower lows. That one is great if you can shift your energy usage outside of peak times. They also have "intelligent" tarrifs where you allow them to control your car charger[4] or home battery[5] so it charges when it's cheapest. Octopus are doing really great things in the UK and part of their business is that they sell the backend as a service to other energy companies who were previously stuck in the stone age as Kraken[6]. [0] https://developer.octopus.energy/docs/api/ https://developer.octopus.energy/docs/api/ [1] https://octopus.energy/blog/octopus-home-mini/ https://octopus.energy/blog/octopus-home-mini/ [2] https://octopus.energy/smart/tracker/ https://octopus.energy/smart/tracker/ [3] https://octopus.energy/smart/agile/ https://octopus.energy/smart/agile/ [4] https://octopus.energy/smart/intelligent-octopus-go/ https://octopus.energy/smart/intelligent-octopus-go/ [5] https://octopus.energy/smart/intelligent-octopus-flux/ https://octopus.energy/smart/intelligent-octopus-flux/ [6] https://kraken.tech https://kraken.tech
- ZeroGravitas 2y agoThe founder of Octopus was from a software background and has claimed that Octopus (the energy company) was initially just to demo the potential of the software.
- ryankrage77 2y agoIronic that their software is so terrible then - it took over two years for their support to do 'something' to my account so I could actually pay my bills.
- bokohut 2y agoAs a former electrician turned software engineer and serial entrepreneur I have always been conscious of my utilities consumption. Per Lorde Kelvin one can only improve what one measures and there are many things most people in society complain about yet those individuals could improve if they just measured; the data doesn't lie, people do. Around about 2006, after being in my newly built home for a few years, I began to ask the questions that many more are just starting to ask now about their utilities. Having had an extensive background in residential and commercial electrical work I knew the options then were limited to measure home consumption digitally but I stumbled upon TED, The Energy Detective. In 2007 I installed TED in my panels and it has been running ever since. I initially only used it as a curiosity item, much akin to many Tesla Solar+PW users today in checking the app for production and consumption data, never before available in such a simple near real-time form of access. TED did however earn it keep in helping me deduce electrical draw issues when systems within the house were changed alongside just other general consumption curiosity. In 2016 I got serious and started logging all of my utilities at the first of every month directly from my meters and I also cross collected utility bill data into a spreadsheet. That spreadsheet is now large but the information is invaluable in providing me an aggregate collection specifics to me and my family only over that time. Another side story in itself are the errors I have discovered and reported, some of those errors have benefited me greatly, once again you can only know such things through measuring and monitoring. All of this effort was my LONG GAME preparation for going near fossil fuel free and energy independent at my home when I found the correct solution for my needs. In 2018 we went fully electric with our personal road vehicles. I installed the largest wall charger at the time which supported 220V up to 70A. This of course spiked our home usage at times however free supercharging was a great bonus and still is. Yes, we were early adopters of a fully electric vehicle family now for over 6 years and have driven hundreds of thousands of miles combined across the U.S. and Canada. I am still amazed at how ignorant people are about charging infrastructure since the fossil fuel industry has brainwashed people's expectations with gas stations on every corner. I have referred many an EV owner and while the program no longer exists I still refer people to electric, just referred a CT a few weeks back. As time passed so too did my roof age and those here aware of asphalt shingle degradation know builder selections rarely last. In 2020 I started down the solar roof planning journey which had me upgrading all aging appliances to EnergyStar and in August of 2021 the solar roof was installed with two PWs. This led me to refactor my spreadsheet to now include my personal generation and consumption which the new system was providing me. Here I mention the TED again because this old still functioning device had provided me with years of historical data and now I would use it to compare the numbers from the new system. Yes, I found discrepancies that no one had found before and those issues had to be resolved within the new system; a new more accurate CT device was required as well as firmware changes. You may be able to hear me still smiling from this near energy independent choice. My choices have guided my curiosity which has guided my choices and this is still so extremely relevant today in that I have a unique energy loss problem of which I intend to solve through my own energy storage device I am building. Everything provable in life boils down to either science or math so if the science and math check out then it is only the implementation that matters to reach one's goal. I am applying my software, hardware, electronics, and electrical experience as a unique subject matter expert to build something that solves my problem through the dog-food method. Once I have hashed out all the basic issues with this simple "complex system" I am building I will then apply my entrepreneurial talents once again, that whole ‘serial’ thing. You likely know what happens next given the world's growing awareness of a pursuit that I have long had devoted interest in represented by the choices I have made solely from monitoring and measuring. Thanks Kelvin! Stay Healthy!
- seanlunabit 2y ago[dead]
- lexicality 2y agoIf you live in the UK, you can sign up to https://glowmarkt.com/ https://glowmarkt.com/ and they'll give you the same 30 minute time slices, or you can buy one of their in-home devices for £70 (https://shop.glowmarkt.com/products/display-and-cad-combined-for-smart-meter-customers https://shop.glowmarkt.com/products/display-and-cad-combined...) and it'll push your usage every 10 seconds to MQTT to give you very interesting if completely useless graphs in Home Assistant. (Not sponsored, I just use it)
- mk_stjames 2y agoI did a project with a french Linky a few years ago that used an ESP8266 to grab the serial data stream from that exposed port on the bottom and log the interesting line items it prints out to a InfluxDB timeseries database running on a local server and use Grafana to get a dashboard of various metrics. I remember having to do some sleuthing with the serial port as it wasn't something standard - it was like 7 bits, no parity, 1 stop bit, or something like that. And a small circuit to do level shifting for the ESP8266. The result was data on wattage draw approx every 1 second. This allowed for some very, very fine analysis in the data. I tell people about this when I talk about various sidechannel attacks on things that use data like this- for instance, after observing the data for a while, I could tell which floor of the house someone was on by watching transients of the wattage and the quantized changes of various devices turned on and off - e.g. the kitchen has a kettle that uses 1220 +/- 5 watts, every time, and nothing else in the house results in a step change of that value. The top floor bedroom has lights that use exactly 42 watts. The laundry machine starts up with a very specific ramp and then oscillates between two levels of power with a period of 30 seconds, etc. You can figure a lot out about the movements of people and what they are doing by simply having fine enough time resolution on a single number - the total power consumption of the entire house.
- astrolx 2y agoIndeed, and to be fair most people I know who were reticent to the new Linky were not "fearing that the new meters would fry their brain using Bill Gates’ evil 5G Wi-Fi waves", but were concerned about their privacy.
- Beretta_Vexee 2y agoMany are looking for excuses to continue using a modified meter and continue to defraud. This is more difficult with a linky (but not impossible, by installing a bypass).
- wanderingmind 2y agoNow add in the fine grain resolution of water consumption and internet, and you will know more about them that themselves.
- uuddlrlrbaba 2y agoA few years back I had a Sense power meter installed and its been great. It took some time to configure and get used to, and for it to detect various devices, but now I can reliably predict my upcoming power bill. And make adjustments as needed. Whats helpful is it shows the top power consumers. And by paying close attention to that I've cut my bill by at least 1/3.
- harry8 2y agoAlternative: Build glow [1,2]for $10. Hook it up to homeassistant for the price of an old laptop. Measure any and all interesting plugs using an athom [3] smart plug. Zero cloud. Good data & charts. Good fun. [1] https://glow-energy.io/ https://glow-energy.io/ [2] https://github.com/klaasnicolaas/home-assistant-glow https://github.com/klaasnicolaas/home-assistant-glow [3] https://www.aliexpress.com/item/1005006078553282.html https://www.aliexpress.com/item/1005006078553282.html
- 8organicbits 2y agoOne project I worked on was to track indoor temperature and AC settings (via a Nest thermostat) and outdoor temperature (via weather report). I found that in the evenings I was often still running the AC even though outdoor temperature had dropped below my target. This alerted me that I should instead open my windows. I didn't have a way to track energy usage changes, but I was really happy to get so much more fresh air. It stopped working when Google bought Nest and then changed their API authentication method. I had a newborn and just couldn't find the time to support the new API. Maybe I'll revive it this summer.
- bottom999mottob 2y agoI've been making the same mistake. Another thing to note is warm air can pool in corners, so reversing fan direction or pointing a fan at corners helps
- gniv 2y agoYou can get your data from the edf.fr site. In your account, under "Ma consommation d'électricité" there is a button "Télécharger mes données". It comes as a zip of csv files with daily and monthly values.
- 123pie123 2y agoI have my dumb electricity meter sending my electric usage to google sheets every one minute I used an ESP32 with a very basic light sensor, the sensor was blue tacked over the 1000th/Kwatt LED (this blinks 1000 times per unit of electricity used) the info is sent it over my wifi to google sheets it also records the sum per hour indefinately, or until google sheets complains
- dvdbloc 2y agoIs this a common feature of dumb power meters? I’ve wanted to get data out of my dumb meter for a while now so I’m interested to learn more
- 123pie123 2y agoI'm unsure, I moved in to the house recently and noticed the flashing LED on the 'dumb' electricity meter and thought, umm that could be useful. I've not researched if any other meter has this function
- eigenhombre 2y agoAnyone here use the NiceGUI Python web app framework the OP used? There is mention of Electron-like cross-platform ability, which I assumed meant that one could generate a standalone app with it, but I did not find mention of that in the online docs.
- zdimension 2y agoSee here: https://nicegui.io/documentation/section_configuration_deployment#native_mode https://nicegui.io/documentation/section_configuration_deplo... I actually used that to build a Windows release: https://github.com/zdimension/elecanalysis/releases/tag/v0.1 https://github.com/zdimension/elecanalysis/releases/tag/v0.1 It uses the system WebView to display the page. The packaging itself is made using a regular solution like PyInstaller.
- muth02446 2y agoHas anybody figured out a way to do this with coned in the us?
- deleted 2y ago[deleted]
- dasl 2y agoYes, Con Ed now has smart meters that report electricity usage in realtime at 15 minute intervals. If you use Home Assistant, you can perhaps make use of the Opower integration to get this data: https://www.home-assistant.io/integrations/opower/ https://www.home-assistant.io/integrations/opower/ Although implementing the realtime API in the Opower integration has not yet been completed. That said, I don't think it would be too hard to implement. See: https://github.com/tronikos/opower/issues/24 https://github.com/tronikos/opower/issues/24 This realtime data is also available and graphed on your account page on the Con Ed website and mobile app. I wrote my own code that uses Con Ed's realtime API and writes the data to Prometheus so that I can view it in Grafana. My code was heavily influenced by Home Assistant's Opower integration code. Here's my code: https://github.com/dasl-/pitools/blob/main/sensors/measure_electricity_usage https://github.com/dasl-/pitools/blob/main/sensors/measure_e...