Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing update method for sensor entity base class #69

Merged

Conversation

slovdahl
Copy link
Contributor

Related to #58.

@slovdahl
Copy link
Contributor Author

Hopefully this fixes #59 (comment) and #63 (comment).

@slovdahl
Copy link
Contributor Author

Confirmed, both the energy and water sensors are updating themselves again.

@slovdahl
Copy link
Contributor Author

Something still seems to be a little bit off.

image

It seems like when the washing machine is started, the predicted or previous energy usage is returned, before it's reset to 0. This has the nasty side effect of essentially doubling the energy usage in the statistics table, because every reset down to 0 means that subsequent increases are counted again. Any ideas what's going on here? I'm still a bit too unfamiliar with the Miele API.

@catadiel
Copy link
Contributor

catadiel commented Sep 27, 2021

mmm it seems that the api returns the previous energy usage if the washing cycle at 14:15 has not been interrupted. And could be a Miele's side undesired behavior.
How about writing the at developer@miele.com?

Otherwise we can assume the data is a forecast.
Maybe the check of energyforecast could be the missing piece:

waterforecast integer the relative water usage for the selected program from 0 to 1
energyforecast integer the relative energy usage for the selected program from 0 to 1

description of eco feedback is quite obscure:

the ecoFeedback object returns the amount of water and energy used by the current running program up to the present moment. Furthermore it returns a forecast for water and energy consumption for a selected program.

Maybe the forecast variable = 0 means that the currentEnergyConsumption is the actual program consumption, and we have to take care of it; when = 1 currentEnergyConsumption represent a forecast of the selected program (maybe not started) and we should skip it?

@slovdahl
Copy link
Contributor Author

slovdahl commented Oct 5, 2021

Maybe the forecast variable = 0 means that the currentEnergyConsumption is the actual program consumption, and we have to take care of it; when = 1 currentEnergyConsumption represent a forecast of the selected program (maybe not started) and we should skip it?

Interesting thought! Yes, that may very well be the case. I'll write a mail and ask for clarification from developer@miele.com though, thanks for the tip. 👍

@slovdahl
Copy link
Contributor Author

slovdahl commented Oct 7, 2021

Still waiting for a response from Miele.

But I did some more testing. When I started the dishwasher after it had been running earlier today, this is what the /devices endpoint returns:

      "ecoFeedback": {
        "currentWaterConsumption": {
          "unit": "l",
          "value": 8
        },
        "currentEnergyConsumption": {
          "unit": "kWh",
          "value": 0.7
        },
        "waterForecast": 0.3,
        "energyForecast": 0.3
      },

So unfortunately this doesn't seem to hold true:

Maybe the forecast variable = 0 means that the currentEnergyConsumption is the actual program consumption, and we have to take care of it; when = 1 currentEnergyConsumption represent a forecast of the selected program (maybe not started) and we should skip it?

When I pressed any button on the dishwasher after turning it on, the /devices endpoint immediately started returning this instead:

      "ecoFeedback": {
        "currentWaterConsumption": {
          "unit": "l",
          "value": 0
        },
        "currentEnergyConsumption": {
          "unit": "kWh",
          "value": 0
        },
        "waterForecast": 0.3,
        "energyForecast": 0.3
      },

Even worse though.. This is the history from today 😒 Seems to randomly return 0 while the dishwasher is running.

bild

@slovdahl
Copy link
Contributor Author

slovdahl commented Oct 7, 2021

Unless Miele answers/fixes the problem, maybe we can somehow use the value_raw field in the status object.. For example, only report energy/water consumption > 0 if the status is 5, 6 or 7?

bild

@kloknibor
Copy link
Contributor

Hi!

Sorry haven't been checking this issue myself yet, simply since I haven't done any laundry recently yet 😆 So couldn't check the endpoints but seem like u already put in some good efforts!

If the "pre-spike" before a program starts is only there when the status is nut 5,6 or 7 than this seems like a proper fix for now.

As for the 0 dives during a program, is this only true for one measurement? If so possibly we can just only change the value to 0 after we got the value twice in a row?

@slovdahl
Copy link
Contributor Author

slovdahl commented Oct 8, 2021

Now it's convenient to have the recorder data in MariaDB 😎

The raw data corresponding to the screenshot in #69 (comment):

MariaDB [home_assistant]> SELECT state, created, JSON_EXTRACT(attributes, '$.currentEnergyConsumption') AS energy FROM states WHERE entity_id = 'sensor.dishwasher_status' AND created > '2021-10-07 08:40:00' AND created < '2021-10-07 12:39:00';
+--------------------+----------------------------+--------+
| state              | created                    | energy |
+--------------------+----------------------------+--------+
| Off                | 2021-10-07 08:40:03.666141 | NULL   |
| Programme selected | 2021-10-07 08:40:53.697692 | NULL   |
| Programme selected | 2021-10-07 08:41:03.681038 | NULL   |
| Programme selected | 2021-10-07 08:41:48.705940 | 0.0    |
| In use             | 2021-10-07 08:41:53.691913 | 0.0    |
| Pause              | 2021-10-07 08:42:03.694062 | 0.0    |
| In use             | 2021-10-07 08:42:18.705540 | 0.0    |
| In use             | 2021-10-07 08:42:28.708794 | 0.0    |
| In use             | 2021-10-07 08:43:03.724525 | 0.0    |
| In use             | 2021-10-07 08:43:08.754837 | 0.0    |
| In use             | 2021-10-07 08:43:28.744304 | 0.0    |
| In use             | 2021-10-07 08:44:03.747815 | 0.0    |
| In use             | 2021-10-07 08:44:08.763612 | 0.0    |
| In use             | 2021-10-07 08:44:28.754136 | 0.0    |
| In use             | 2021-10-07 08:45:03.757745 | 0.0    |
| In use             | 2021-10-07 08:45:08.762563 | 0.0    |
| In use             | 2021-10-07 08:45:13.746058 | 0.0    |
| In use             | 2021-10-07 08:45:53.764637 | 0.0    |
| In use             | 2021-10-07 08:46:03.763496 | 0.0    |
| In use             | 2021-10-07 08:46:08.789886 | 0.0    |
| In use             | 2021-10-07 08:46:53.780095 | 0.0    |
| In use             | 2021-10-07 08:47:03.778312 | 0.0    |
| In use             | 2021-10-07 08:47:08.785064 | 0.0    |
| In use             | 2021-10-07 08:47:48.789044 | 0.0    |
| In use             | 2021-10-07 08:48:03.800978 | 0.0    |
| In use             | 2021-10-07 08:48:08.805071 | 0.0    |
| In use             | 2021-10-07 08:48:48.806359 | 0.0    |
| In use             | 2021-10-07 08:49:03.812219 | 0.0    |
| In use             | 2021-10-07 08:49:08.829049 | 0.0    |
| In use             | 2021-10-07 08:49:48.824729 | 0.0    |
| In use             | 2021-10-07 08:50:03.835917 | 0.0    |
| In use             | 2021-10-07 08:50:08.828910 | 0.0    |
| In use             | 2021-10-07 08:50:48.840061 | 0.0    |
| In use             | 2021-10-07 08:51:03.842612 | 0.0    |
| In use             | 2021-10-07 08:51:08.847259 | 0.0    |
| In use             | 2021-10-07 08:51:48.844613 | 0.0    |
| In use             | 2021-10-07 08:52:03.858754 | 0.0    |
| In use             | 2021-10-07 08:52:08.858465 | 0.0    |
| In use             | 2021-10-07 08:52:48.879045 | 0.0    |
| In use             | 2021-10-07 08:53:03.863578 | 0.0    |
| In use             | 2021-10-07 08:53:08.861051 | 0.0    |
| In use             | 2021-10-07 08:53:48.887179 | 0.0    |
| In use             | 2021-10-07 08:54:03.928555 | 0.0    |
| In use             | 2021-10-07 08:54:48.905692 | 0.0    |
| In use             | 2021-10-07 08:55:03.905808 | 0.0    |
| In use             | 2021-10-07 08:55:48.906130 | 0.0    |
| In use             | 2021-10-07 08:56:03.924772 | 0.0    |
| In use             | 2021-10-07 08:57:03.933882 | 0.0    |
| In use             | 2021-10-07 08:57:08.938032 | 0.0    |
| In use             | 2021-10-07 08:57:48.959343 | 0.0    |
| In use             | 2021-10-07 08:58:03.954126 | 0.0    |
| In use             | 2021-10-07 08:58:48.962098 | 0.0    |
| In use             | 2021-10-07 08:59:03.959291 | 0.0    |
| In use             | 2021-10-07 08:59:49.005005 | 0.0    |
| In use             | 2021-10-07 09:00:03.966998 | 0.0    |
| In use             | 2021-10-07 09:00:49.110123 | 0.0    |
| In use             | 2021-10-07 09:01:03.998066 | 0.0    |
| In use             | 2021-10-07 09:01:49.081509 | 0.0    |
| In use             | 2021-10-07 09:02:04.016752 | 0.0    |
| In use             | 2021-10-07 09:02:49.020803 | 0.0    |
| In use             | 2021-10-07 09:03:04.019518 | 0.0    |
| In use             | 2021-10-07 09:03:49.195417 | 0.0    |
| In use             | 2021-10-07 09:04:04.048746 | 0.0    |
| In use             | 2021-10-07 09:04:49.036313 | 0.0    |
| In use             | 2021-10-07 09:05:04.035828 | 0.0    |
| In use             | 2021-10-07 09:05:49.044813 | 0.0    |
| In use             | 2021-10-07 09:06:04.052442 | 0.0    |
| In use             | 2021-10-07 09:06:49.081200 | 0.0    |
| In use             | 2021-10-07 09:07:04.076388 | 0.0    |
| In use             | 2021-10-07 09:07:49.078755 | 0.0    |
| In use             | 2021-10-07 09:08:04.081727 | 0.0    |
| In use             | 2021-10-07 09:08:49.089471 | 0.0    |
| In use             | 2021-10-07 09:09:04.117941 | 0.0    |
| In use             | 2021-10-07 09:09:49.124984 | 0.0    |
| In use             | 2021-10-07 09:10:04.248214 | 0.0    |
| In use             | 2021-10-07 09:10:49.169558 | 0.0    |
| In use             | 2021-10-07 09:11:04.128055 | 0.0    |
| In use             | 2021-10-07 09:11:49.158024 | 0.0    |
| In use             | 2021-10-07 09:12:04.172265 | 0.0    |
| In use             | 2021-10-07 09:12:49.165825 | 0.0    |
| In use             | 2021-10-07 09:13:04.195085 | 0.0    |
| In use             | 2021-10-07 09:13:49.203524 | 0.0    |
| In use             | 2021-10-07 09:14:04.225165 | 0.0    |
| In use             | 2021-10-07 09:14:44.227918 | 0.0    |
| In use             | 2021-10-07 09:15:04.233267 | 0.0    |
| In use             | 2021-10-07 09:15:44.239140 | 0.0    |
| In use             | 2021-10-07 09:16:04.246612 | 0.0    |
| In use             | 2021-10-07 09:16:44.252573 | 0.0    |
| In use             | 2021-10-07 09:17:04.284529 | 0.0    |
| In use             | 2021-10-07 09:17:58.529493 | 0.0    |
| In use             | 2021-10-07 09:18:04.286136 | 0.0    |
| In use             | 2021-10-07 09:18:44.284692 | 0.0    |
| In use             | 2021-10-07 09:19:04.308397 | 0.0    |
| In use             | 2021-10-07 09:19:44.327151 | 0.0    |
| In use             | 2021-10-07 09:20:04.312079 | 0.0    |
| In use             | 2021-10-07 09:20:49.316503 | 0.0    |
| In use             | 2021-10-07 09:20:59.465565 | 0.0    |
| In use             | 2021-10-07 09:21:04.312753 | 0.1    |
| In use             | 2021-10-07 09:21:54.379388 | 0.1    |
| In use             | 2021-10-07 09:21:59.348764 | 0.1    |
| In use             | 2021-10-07 09:22:04.352978 | 0.1    |
| In use             | 2021-10-07 09:22:54.361357 | 0.1    |
| In use             | 2021-10-07 09:22:59.376460 | 0.1    |
| In use             | 2021-10-07 09:23:04.366482 | 0.1    |
| In use             | 2021-10-07 09:23:54.371279 | 0.1    |
| In use             | 2021-10-07 09:23:59.472902 | 0.1    |
| In use             | 2021-10-07 09:24:04.364867 | 0.1    |
| In use             | 2021-10-07 09:24:14.370651 | 0.2    |
| In use             | 2021-10-07 09:24:54.379446 | 0.2    |
| In use             | 2021-10-07 09:24:59.380131 | 0.2    |
| In use             | 2021-10-07 09:25:04.379010 | 0.2    |
| In use             | 2021-10-07 09:25:54.387935 | 0.2    |
| In use             | 2021-10-07 09:25:59.392053 | 0.2    |
| In use             | 2021-10-07 09:26:04.388768 | 0.2    |
| In use             | 2021-10-07 09:26:54.404291 | 0.2    |
| In use             | 2021-10-07 09:26:59.410029 | 0.2    |
| In use             | 2021-10-07 09:27:04.478774 | 0.2    |
| In use             | 2021-10-07 09:27:19.403911 | 0.3    |
| In use             | 2021-10-07 09:27:54.411149 | 0.3    |
| In use             | 2021-10-07 09:27:59.410097 | 0.3    |
| In use             | 2021-10-07 09:28:04.437631 | 0.3    |
| In use             | 2021-10-07 09:28:54.429701 | 0.3    |
| In use             | 2021-10-07 09:28:59.439705 | 0.3    |
| In use             | 2021-10-07 09:29:04.445509 | 0.3    |
| In use             | 2021-10-07 09:29:54.455601 | 0.3    |
| In use             | 2021-10-07 09:29:59.514877 | 0.3    |
| In use             | 2021-10-07 09:30:04.725763 | 0.3    |
| In use             | 2021-10-07 09:30:19.475998 | 0.4    |
| In use             | 2021-10-07 09:30:54.455350 | 0.4    |
| In use             | 2021-10-07 09:30:59.468355 | 0.4    |
| In use             | 2021-10-07 09:31:04.461170 | 0.4    |
| In use             | 2021-10-07 09:31:54.466271 | 0.4    |
| In use             | 2021-10-07 09:31:59.483433 | 0.4    |
| In use             | 2021-10-07 09:32:04.470666 | 0.4    |
| In use             | 2021-10-07 09:32:54.508251 | 0.4    |
| In use             | 2021-10-07 09:32:59.495612 | 0.4    |
| In use             | 2021-10-07 09:33:04.488710 | 0.4    |
| In use             | 2021-10-07 09:33:29.489263 | 0.5    |
| In use             | 2021-10-07 09:33:54.526493 | 0.5    |
| In use             | 2021-10-07 09:33:59.516890 | 0.5    |
| In use             | 2021-10-07 09:34:04.507591 | 0.5    |
| In use             | 2021-10-07 09:34:54.524748 | 0.5    |
| In use             | 2021-10-07 09:34:59.519684 | 0.5    |
| In use             | 2021-10-07 09:35:04.530552 | 0.5    |
| In use             | 2021-10-07 09:35:59.529226 | 0.5    |
| In use             | 2021-10-07 09:36:04.529570 | 0.5    |
| In use             | 2021-10-07 09:36:59.539873 | 0.5    |
| In use             | 2021-10-07 09:37:04.547898 | 0.5    |
| In use             | 2021-10-07 09:37:59.560875 | 0.5    |
| In use             | 2021-10-07 09:38:04.565426 | 0.5    |
| In use             | 2021-10-07 09:38:59.587678 | 0.5    |
| In use             | 2021-10-07 09:39:04.568925 | 0.5    |
| In use             | 2021-10-07 09:39:59.584493 | 0.5    |
| In use             | 2021-10-07 09:40:04.590834 | 0.5    |
| In use             | 2021-10-07 09:40:54.746549 | 0.5    |
| In use             | 2021-10-07 09:40:59.622621 | 0.5    |
| In use             | 2021-10-07 09:41:04.613518 | 0.5    |
| In use             | 2021-10-07 09:41:54.609181 | 0.5    |
| In use             | 2021-10-07 09:41:59.612014 | 0.5    |
| In use             | 2021-10-07 09:42:04.600678 | 0.5    |
| In use             | 2021-10-07 09:42:54.684493 | 0.5    |
| In use             | 2021-10-07 09:42:59.628639 | 0.5    |
| In use             | 2021-10-07 09:43:04.620838 | 0.5    |
| In use             | 2021-10-07 09:43:54.630161 | 0.5    |
| In use             | 2021-10-07 09:43:59.640108 | 0.5    |
| In use             | 2021-10-07 09:44:04.637260 | 0.5    |
| In use             | 2021-10-07 09:44:54.648906 | 0.5    |
| In use             | 2021-10-07 09:44:59.660596 | 0.5    |
| In use             | 2021-10-07 09:45:04.651645 | 0.5    |
| In use             | 2021-10-07 09:45:54.691950 | 0.5    |
| In use             | 2021-10-07 09:45:59.674859 | 0.5    |
| In use             | 2021-10-07 09:46:04.673554 | 0.5    |
| In use             | 2021-10-07 09:46:24.676602 | 0.5    |
| In use             | 2021-10-07 09:46:54.739809 | 0.5    |
| In use             | 2021-10-07 09:46:59.675610 | 0.5    |
| In use             | 2021-10-07 09:47:04.853971 | 0.5    |
| In use             | 2021-10-07 09:47:54.697163 | 0.5    |
| In use             | 2021-10-07 09:47:59.684357 | 0.5    |
| In use             | 2021-10-07 09:48:04.705002 | 0.5    |
| In use             | 2021-10-07 09:48:54.684593 | 0.5    |
| In use             | 2021-10-07 09:48:59.694858 | 0.5    |
| In use             | 2021-10-07 09:49:04.697677 | 0.5    |
| In use             | 2021-10-07 09:49:54.710315 | 0.5    |
| In use             | 2021-10-07 09:49:59.711150 | 0.5    |
| In use             | 2021-10-07 09:50:04.717454 | 0.5    |
| In use             | 2021-10-07 09:50:54.868868 | 0.5    |
| In use             | 2021-10-07 09:50:59.717106 | 0.5    |
| In use             | 2021-10-07 09:51:04.729215 | 0.5    |
| In use             | 2021-10-07 09:51:54.728725 | 0.5    |
| In use             | 2021-10-07 09:51:59.744622 | 0.5    |
| In use             | 2021-10-07 09:52:04.732626 | 0.5    |
| In use             | 2021-10-07 09:52:55.105169 | 0.5    |
| In use             | 2021-10-07 09:52:59.757297 | 0.5    |
| In use             | 2021-10-07 09:53:04.755567 | 0.5    |
| In use             | 2021-10-07 09:53:54.777663 | 0.5    |
| In use             | 2021-10-07 09:53:59.781438 | 0.5    |
| In use             | 2021-10-07 09:54:04.780535 | 0.5    |
| In use             | 2021-10-07 09:54:54.800829 | 0.5    |
| In use             | 2021-10-07 09:54:59.781058 | 0.5    |
| In use             | 2021-10-07 09:55:04.790810 | 0.5    |
| In use             | 2021-10-07 09:55:54.804429 | 0.5    |
| In use             | 2021-10-07 09:55:59.805318 | 0.5    |
| In use             | 2021-10-07 09:56:04.801494 | 0.5    |
| In use             | 2021-10-07 09:56:54.817810 | 0.5    |
| In use             | 2021-10-07 09:56:59.817621 | 0.5    |
| In use             | 2021-10-07 09:57:04.812987 | 0.5    |
| In use             | 2021-10-07 09:57:54.832836 | 0.5    |
| In use             | 2021-10-07 09:58:04.833548 | 0.5    |
| In use             | 2021-10-07 09:59:07.727500 | 0.5    |
| In use             | 2021-10-07 09:59:13.204589 | 0.5    |
| Not connected      | 2021-10-07 09:59:24.859469 | NULL   |
| In use             | 2021-10-07 09:59:29.409236 | 0.5    |
| In use             | 2021-10-07 09:59:54.852067 | 0.5    |
| In use             | 2021-10-07 10:00:04.857385 | 0.5    |
| In use             | 2021-10-07 10:00:54.872113 | 0.5    |
| In use             | 2021-10-07 10:01:04.866071 | 0.5    |
| In use             | 2021-10-07 10:01:54.862755 | 0.5    |
| In use             | 2021-10-07 10:02:04.953575 | 0.5    |
| In use             | 2021-10-07 10:02:54.882042 | 0.5    |
| In use             | 2021-10-07 10:03:04.897831 | 0.5    |
| In use             | 2021-10-07 10:03:54.897572 | 0.5    |
| In use             | 2021-10-07 10:04:04.905702 | 0.5    |
| In use             | 2021-10-07 10:04:54.900551 | 0.5    |
| In use             | 2021-10-07 10:05:04.924086 | 0.5    |
| In use             | 2021-10-07 10:05:54.946404 | 0.5    |
| In use             | 2021-10-07 10:06:04.919484 | 0.5    |
| In use             | 2021-10-07 10:06:54.931886 | 0.5    |
| In use             | 2021-10-07 10:07:04.974589 | 0.5    |
| In use             | 2021-10-07 10:07:54.943052 | 0.5    |
| In use             | 2021-10-07 10:08:04.965157 | 0.5    |
| In use             | 2021-10-07 10:08:54.963044 | 0.5    |
| In use             | 2021-10-07 10:09:04.964745 | 0.5    |
| In use             | 2021-10-07 10:09:54.973996 | 0.5    |
| In use             | 2021-10-07 10:10:04.987469 | 0.5    |
| In use             | 2021-10-07 10:10:55.002408 | 0.5    |
| In use             | 2021-10-07 10:10:59.999876 | 0.5    |
| In use             | 2021-10-07 10:11:04.995455 | 0.5    |
| In use             | 2021-10-07 10:11:55.099406 | 0.5    |
| In use             | 2021-10-07 10:12:00.030802 | 0.5    |
| In use             | 2021-10-07 10:12:55.020115 | 0.5    |
| In use             | 2021-10-07 10:13:00.300862 | 0.5    |
| In use             | 2021-10-07 10:13:50.055727 | 0.5    |
| In use             | 2021-10-07 10:13:55.024602 | 0.5    |
| In use             | 2021-10-07 10:14:00.143865 | 0.5    |
| In use             | 2021-10-07 10:14:10.037350 | 0.5    |
| In use             | 2021-10-07 10:14:55.071112 | 0.5    |
| In use             | 2021-10-07 10:15:00.064786 | 0.5    |
| In use             | 2021-10-07 10:15:55.107208 | 0.5    |
| In use             | 2021-10-07 10:16:00.067063 | 0.5    |
| In use             | 2021-10-07 10:16:55.062353 | 0.5    |
| In use             | 2021-10-07 10:17:00.070065 | 0.5    |
| In use             | 2021-10-07 10:17:55.093505 | 0.5    |
| In use             | 2021-10-07 10:18:00.086063 | 0.5    |
| In use             | 2021-10-07 10:18:55.119347 | 0.5    |
| In use             | 2021-10-07 10:19:00.110790 | 0.5    |
| In use             | 2021-10-07 10:20:00.283800 | 0.5    |
| In use             | 2021-10-07 10:20:10.111703 | 0.5    |
| In use             | 2021-10-07 10:20:55.122181 | 0.5    |
| In use             | 2021-10-07 10:21:00.116629 | 0.5    |
| In use             | 2021-10-07 10:21:10.132676 | 0.5    |
| In use             | 2021-10-07 10:21:45.151358 | 0.5    |
| In use             | 2021-10-07 10:21:55.147885 | 0.5    |
| In use             | 2021-10-07 10:22:00.289467 | 0.5    |
| In use             | 2021-10-07 10:22:10.129861 | 0.5    |
| In use             | 2021-10-07 10:22:55.164829 | 0.5    |
| In use             | 2021-10-07 10:23:00.153285 | 0.5    |
| In use             | 2021-10-07 10:23:10.157008 | 0.5    |
| In use             | 2021-10-07 10:23:20.157142 | 0.5    |
| In use             | 2021-10-07 10:23:55.171124 | 0.5    |
| In use             | 2021-10-07 10:24:00.196097 | 0.5    |
| In use             | 2021-10-07 10:24:20.166647 | 0.5    |
| In use             | 2021-10-07 10:24:55.176998 | 0.5    |
| In use             | 2021-10-07 10:25:00.168543 | 0.5    |
| In use             | 2021-10-07 10:25:20.176079 | 0.5    |
| In use             | 2021-10-07 10:25:35.248421 | 0.6    |
| In use             | 2021-10-07 10:25:55.191690 | 0.6    |
| In use             | 2021-10-07 10:26:00.180600 | 0.6    |
| In use             | 2021-10-07 10:26:15.206353 | 0.6    |
| In use             | 2021-10-07 10:26:55.227465 | 0.6    |
| In use             | 2021-10-07 10:27:00.204755 | 0.6    |
| In use             | 2021-10-07 10:27:15.200318 | 0.6    |
| In use             | 2021-10-07 10:27:55.247832 | 0.6    |
| In use             | 2021-10-07 10:28:00.207094 | 0.6    |
| In use             | 2021-10-07 10:28:15.225209 | 0.6    |
| In use             | 2021-10-07 10:28:35.228593 | 0.7    |
| In use             | 2021-10-07 10:28:55.216452 | 0.7    |
| In use             | 2021-10-07 10:29:00.206434 | 0.7    |
| In use             | 2021-10-07 10:29:15.235484 | 0.7    |
| In use             | 2021-10-07 10:29:55.253607 | 0.7    |
| In use             | 2021-10-07 10:30:00.239453 | 0.7    |
| In use             | 2021-10-07 10:30:15.264343 | 0.7    |
| In use             | 2021-10-07 10:30:55.294817 | 0.7    |
| In use             | 2021-10-07 10:31:00.256320 | 0.7    |
| In use             | 2021-10-07 10:31:15.272725 | 0.7    |
| In use             | 2021-10-07 10:31:55.273566 | 0.7    |
| In use             | 2021-10-07 10:32:00.261479 | 0.7    |
| In use             | 2021-10-07 10:32:15.274198 | 0.7    |
| In use             | 2021-10-07 10:32:55.301364 | 0.7    |
| In use             | 2021-10-07 10:33:00.293826 | 0.7    |
| In use             | 2021-10-07 10:33:15.300015 | 0.7    |
| In use             | 2021-10-07 10:33:55.324657 | 0.7    |
| In use             | 2021-10-07 10:34:00.296137 | 0.7    |
| In use             | 2021-10-07 10:34:15.448417 | 0.7    |
| In use             | 2021-10-07 10:34:55.300444 | 0.7    |
| In use             | 2021-10-07 10:35:00.326068 | 0.7    |
| In use             | 2021-10-07 10:35:15.358840 | 0.7    |
| In use             | 2021-10-07 10:35:55.331631 | 0.7    |
| In use             | 2021-10-07 10:36:00.330338 | 0.7    |
| In use             | 2021-10-07 10:36:15.345631 | 0.7    |
| In use             | 2021-10-07 10:36:55.403880 | 0.7    |
| In use             | 2021-10-07 10:37:00.354281 | 0.7    |
| In use             | 2021-10-07 10:37:15.347342 | 0.7    |
| In use             | 2021-10-07 10:37:55.432812 | 0.7    |
| In use             | 2021-10-07 10:38:00.355567 | 0.7    |
| In use             | 2021-10-07 10:38:15.445354 | 0.7    |
| In use             | 2021-10-07 10:38:55.372413 | 0.7    |
| In use             | 2021-10-07 10:39:00.350092 | 0.7    |
| In use             | 2021-10-07 10:39:15.369104 | 0.7    |
| In use             | 2021-10-07 10:39:55.472378 | 0.7    |
| In use             | 2021-10-07 10:40:00.362813 | 0.7    |
| In use             | 2021-10-07 10:40:15.400720 | 0.7    |
| In use             | 2021-10-07 10:40:55.376227 | NULL   |
| In use             | 2021-10-07 10:40:58.372120 | 0.7    |
| In use             | 2021-10-07 10:41:00.370301 | 0.7    |
| In use             | 2021-10-07 10:41:15.405745 | 0.7    |
| In use             | 2021-10-07 10:41:55.397745 | 0.7    |
| In use             | 2021-10-07 10:42:00.385809 | 0.7    |
| In use             | 2021-10-07 10:42:15.407887 | 0.7    |
| In use             | 2021-10-07 10:42:55.414096 | 0.7    |
| In use             | 2021-10-07 10:43:00.402127 | 0.7    |
| In use             | 2021-10-07 10:43:15.450998 | 0.7    |
| In use             | 2021-10-07 10:43:55.446798 | 0.7    |
| In use             | 2021-10-07 10:44:00.417643 | 0.7    |
| In use             | 2021-10-07 10:44:15.440866 | 0.7    |
| In use             | 2021-10-07 10:44:55.448578 | 0.7    |
| In use             | 2021-10-07 10:45:00.451692 | 0.7    |
| In use             | 2021-10-07 10:45:15.463870 | 0.7    |
| In use             | 2021-10-07 10:45:45.473270 | 0.7    |
| In use             | 2021-10-07 10:45:55.474638 | 0.7    |
| In use             | 2021-10-07 10:46:00.455470 | 0.7    |
| In use             | 2021-10-07 10:46:25.454737 | 0.7    |
| In use             | 2021-10-07 10:46:55.634712 | 0.7    |
| In use             | 2021-10-07 10:47:00.467225 | 0.7    |
| In use             | 2021-10-07 10:47:25.478609 | 0.7    |
| In use             | 2021-10-07 10:47:55.496687 | 0.7    |
| In use             | 2021-10-07 10:48:00.460584 | 0.7    |
| In use             | 2021-10-07 10:48:25.492509 | 0.7    |
| In use             | 2021-10-07 10:48:50.480390 | 0.7    |
| In use             | 2021-10-07 10:49:00.467395 | 0.7    |
| In use             | 2021-10-07 10:49:25.521279 | 0.7    |
| In use             | 2021-10-07 10:49:50.481809 | 0.7    |
| In use             | 2021-10-07 10:50:00.498249 | 0.7    |
| In use             | 2021-10-07 10:50:25.520269 | 0.7    |
| In use             | 2021-10-07 10:50:50.498383 | 0.7    |
| In use             | 2021-10-07 10:51:00.507406 | 0.7    |
| In use             | 2021-10-07 10:51:25.538609 | 0.7    |
| In use             | 2021-10-07 10:51:50.517171 | 0.7    |
| In use             | 2021-10-07 10:52:00.532631 | 0.7    |
| In use             | 2021-10-07 10:52:25.550008 | 0.7    |
| In use             | 2021-10-07 10:52:50.543468 | 0.7    |
| In use             | 2021-10-07 10:53:00.535299 | 0.7    |
| In use             | 2021-10-07 10:53:25.565904 | 0.7    |
| In use             | 2021-10-07 10:53:50.653416 | 0.7    |
| In use             | 2021-10-07 10:54:00.559304 | 0.7    |
| In use             | 2021-10-07 10:54:20.544650 | 0.7    |
| In use             | 2021-10-07 10:54:40.568757 | 0.7    |
| In use             | 2021-10-07 10:54:50.542668 | 0.7    |
| In use             | 2021-10-07 10:55:00.551818 | 0.7    |
| In use             | 2021-10-07 10:55:20.565939 | 0.7    |
| In use             | 2021-10-07 10:55:50.579779 | 0.7    |
| In use             | 2021-10-07 10:56:00.580760 | 0.7    |
| In use             | 2021-10-07 10:56:20.575302 | 0.7    |
| In use             | 2021-10-07 10:56:50.582533 | 0.7    |
| In use             | 2021-10-07 10:57:00.602343 | 0.7    |
| In use             | 2021-10-07 10:57:20.639983 | 0.7    |
| In use             | 2021-10-07 10:57:50.591197 | 0.7    |
| In use             | 2021-10-07 10:58:00.606336 | 0.7    |
| In use             | 2021-10-07 10:58:20.590307 | 0.7    |
| In use             | 2021-10-07 10:58:50.616267 | 0.7    |
| In use             | 2021-10-07 10:59:00.619078 | 0.7    |
| In use             | 2021-10-07 10:59:20.641688 | 0.7    |
| In use             | 2021-10-07 10:59:50.629004 | 0.7    |
| In use             | 2021-10-07 11:00:00.746574 | 0.7    |
| In use             | 2021-10-07 11:00:20.631365 | 0.7    |
| In use             | 2021-10-07 11:00:50.634678 | 0.7    |
| In use             | 2021-10-07 11:01:00.649806 | 0.7    |
| In use             | 2021-10-07 11:01:45.697077 | 0.7    |
| In use             | 2021-10-07 11:01:50.204583 | 0.7    |
| In use             | 2021-10-07 11:02:00.649972 | 0.7    |
| In use             | 2021-10-07 11:02:30.704243 | 0.7    |
| In use             | 2021-10-07 11:02:50.666227 | 0.7    |
| In use             | 2021-10-07 11:03:00.664060 | 0.7    |
| In use             | 2021-10-07 11:03:30.867290 | 0.7    |
| In use             | 2021-10-07 11:03:50.667849 | 0.7    |
| In use             | 2021-10-07 11:04:00.680769 | 0.7    |
| In use             | 2021-10-07 11:04:30.689760 | 0.7    |
| In use             | 2021-10-07 11:04:50.702189 | 0.7    |
| In use             | 2021-10-07 11:05:00.835677 | 0.7    |
| In use             | 2021-10-07 11:05:30.690447 | 0.7    |
| In use             | 2021-10-07 11:05:50.697943 | 0.7    |
| In use             | 2021-10-07 11:06:00.700980 | 0.7    |
| In use             | 2021-10-07 11:06:30.754093 | 0.7    |
| In use             | 2021-10-07 11:06:51.051300 | 0.7    |
| In use             | 2021-10-07 11:07:00.710056 | 0.7    |
| In use             | 2021-10-07 11:07:30.741976 | 0.7    |
| In use             | 2021-10-07 11:07:50.706002 | 0.7    |
| In use             | 2021-10-07 11:08:00.711105 | 0.7    |
| In use             | 2021-10-07 11:08:30.750486 | 0.7    |
| In use             | 2021-10-07 11:08:50.756119 | 0.7    |
| In use             | 2021-10-07 11:09:00.755218 | 0.7    |
| In use             | 2021-10-07 11:09:30.789675 | 0.7    |
| In use             | 2021-10-07 11:09:50.743912 | 0.7    |
| In use             | 2021-10-07 11:10:00.750230 | 0.7    |
| In use             | 2021-10-07 11:10:30.839217 | 0.7    |
| In use             | 2021-10-07 11:10:50.783431 | 0.7    |
| In use             | 2021-10-07 11:11:00.758343 | 0.7    |
| In use             | 2021-10-07 11:11:30.765749 | 0.7    |
| In use             | 2021-10-07 11:11:50.765627 | 0.7    |
| In use             | 2021-10-07 11:12:00.802428 | 0.7    |
| In use             | 2021-10-07 11:12:25.958045 | 0.7    |
| In use             | 2021-10-07 11:12:50.790828 | 0.7    |
| In use             | 2021-10-07 11:13:00.791914 | 0.7    |
| In use             | 2021-10-07 11:13:30.793828 | 0.7    |
| In use             | 2021-10-07 11:13:50.815743 | 0.7    |
| In use             | 2021-10-07 11:14:00.797977 | 0.7    |
| In use             | 2021-10-07 11:14:25.923046 | 0.7    |
| In use             | 2021-10-07 11:14:50.886454 | 0.7    |
| In use             | 2021-10-07 11:15:00.900720 | 0.7    |
| In use             | 2021-10-07 11:15:25.936535 | 0.7    |
| In use             | 2021-10-07 11:15:50.929515 | 0.7    |
| In use             | 2021-10-07 11:16:00.916022 | 0.7    |
| In use             | 2021-10-07 11:16:25.944632 | 0.7    |
| In use             | 2021-10-07 11:16:50.921987 | 0.7    |
| In use             | 2021-10-07 11:17:00.912242 | 0.7    |
| In use             | 2021-10-07 11:17:25.961972 | 0.7    |
| In use             | 2021-10-07 11:17:50.976262 | 0.7    |
| In use             | 2021-10-07 11:18:00.924779 | 0.7    |
| In use             | 2021-10-07 11:18:25.954981 | 0.7    |
| In use             | 2021-10-07 11:18:51.038297 | 0.7    |
| In use             | 2021-10-07 11:19:00.952079 | 0.7    |
| In use             | 2021-10-07 11:19:25.982593 | 0.7    |
| In use             | 2021-10-07 11:19:50.969389 | 0.7    |
| In use             | 2021-10-07 11:20:00.974733 | 0.7    |
| In use             | 2021-10-07 11:20:25.983211 | 0.7    |
| In use             | 2021-10-07 11:20:50.988253 | 0.7    |
| In use             | 2021-10-07 11:21:00.988300 | 0.7    |
| In use             | 2021-10-07 11:21:26.062213 | 0.7    |
| In use             | 2021-10-07 11:21:50.989466 | 0.7    |
| In use             | 2021-10-07 11:22:01.037611 | 0.7    |
| In use             | 2021-10-07 11:22:36.080469 | 0.7    |
| In use             | 2021-10-07 11:22:51.070647 | 0.7    |
| In use             | 2021-10-07 11:23:01.193580 | 0.7    |
| In use             | 2021-10-07 11:23:26.375655 | 0.7    |
| In use             | 2021-10-07 11:23:51.074903 | 0.7    |
| In use             | 2021-10-07 11:24:01.082903 | 0.7    |
| In use             | 2021-10-07 11:24:26.090786 | 0.7    |
| In use             | 2021-10-07 11:24:51.122931 | 0.7    |
| In use             | 2021-10-07 11:25:01.098351 | 0.7    |
| In use             | 2021-10-07 11:25:26.105292 | 0.7    |
| In use             | 2021-10-07 11:25:51.102875 | 0.7    |
| In use             | 2021-10-07 11:26:01.157926 | 0.7    |
| In use             | 2021-10-07 11:26:26.136181 | 0.7    |
| In use             | 2021-10-07 11:26:51.126334 | 0.7    |
| In use             | 2021-10-07 11:27:01.140389 | 0.7    |
| In use             | 2021-10-07 11:27:26.137957 | 0.7    |
| In use             | 2021-10-07 11:27:51.141910 | 0.7    |
| In use             | 2021-10-07 11:28:01.151353 | 0.7    |
| In use             | 2021-10-07 11:28:26.157487 | 0.7    |
| In use             | 2021-10-07 11:28:51.139483 | 0.7    |
| In use             | 2021-10-07 11:29:01.167901 | 0.7    |
| In use             | 2021-10-07 11:29:26.170226 | 0.7    |
| In use             | 2021-10-07 11:29:51.171120 | 0.7    |
| In use             | 2021-10-07 11:30:01.180007 | 0.7    |
| In use             | 2021-10-07 11:30:26.178304 | 0.7    |
| In use             | 2021-10-07 11:30:46.221057 | 0.7    |
| In use             | 2021-10-07 11:31:01.196622 | 0.7    |
| In use             | 2021-10-07 11:31:26.218341 | 0.7    |
| In use             | 2021-10-07 11:31:46.270080 | 0.7    |
| In use             | 2021-10-07 11:32:01.210862 | 0.7    |
| In use             | 2021-10-07 11:32:26.212877 | 0.7    |
| In use             | 2021-10-07 11:32:51.208914 | 0.7    |
| In use             | 2021-10-07 11:33:01.217549 | 0.7    |
| In use             | 2021-10-07 11:33:26.210871 | 0.7    |
| In use             | 2021-10-07 11:33:46.222620 | 0.7    |
| In use             | 2021-10-07 11:34:01.229515 | 0.7    |
| In use             | 2021-10-07 11:34:26.244521 | 0.7    |
| In use             | 2021-10-07 11:34:46.227132 | 0.7    |
| In use             | 2021-10-07 11:35:01.224291 | 0.7    |
| In use             | 2021-10-07 11:35:26.278433 | 0.7    |
| In use             | 2021-10-07 11:35:46.266032 | 0.7    |
| In use             | 2021-10-07 11:36:01.279736 | 0.7    |
| In use             | 2021-10-07 11:36:26.290484 | 0.7    |
| In use             | 2021-10-07 11:36:46.314706 | 0.7    |
| In use             | 2021-10-07 11:37:01.330048 | 0.7    |
| In use             | 2021-10-07 11:37:26.329975 | 0.7    |
| In use             | 2021-10-07 11:37:46.331361 | 0.7    |
| In use             | 2021-10-07 11:38:01.307472 | 0.7    |
| In use             | 2021-10-07 11:38:26.330434 | 0.7    |
| In use             | 2021-10-07 11:38:46.342342 | 0.7    |
| In use             | 2021-10-07 11:39:01.338610 | 0.7    |
| In use             | 2021-10-07 11:39:26.374228 | 0.7    |
| In use             | 2021-10-07 11:39:46.390681 | 0.7    |
| In use             | 2021-10-07 11:40:01.358442 | 0.7    |
| In use             | 2021-10-07 11:40:26.359295 | 0.7    |
| In use             | 2021-10-07 11:40:46.373047 | 0.7    |
| In use             | 2021-10-07 11:41:01.361937 | 0.7    |
| In use             | 2021-10-07 11:41:26.376587 | 0.7    |
| In use             | 2021-10-07 11:41:46.429649 | 0.7    |
| In use             | 2021-10-07 11:42:01.370970 | 0.7    |
| In use             | 2021-10-07 11:42:26.405066 | 0.7    |
| In use             | 2021-10-07 11:42:46.401530 | 0.7    |
| In use             | 2021-10-07 11:43:07.988051 | 0.7    |
| In use             | 2021-10-07 11:43:21.389898 | NULL   |
| In use             | 2021-10-07 11:43:24.944548 | 0.7    |
| In use             | 2021-10-07 11:43:46.419372 | 0.7    |
| In use             | 2021-10-07 11:44:01.412312 | 0.7    |
| In use             | 2021-10-07 11:44:26.422975 | 0.7    |
| In use             | 2021-10-07 11:44:46.431774 | 0.7    |
| In use             | 2021-10-07 11:45:01.434198 | 0.7    |
| In use             | 2021-10-07 11:45:26.431982 | 0.7    |
| In use             | 2021-10-07 11:45:46.447523 | 0.7    |
| In use             | 2021-10-07 11:46:01.477017 | 0.7    |
| In use             | 2021-10-07 11:46:26.740546 | 0.7    |
| In use             | 2021-10-07 11:46:46.699250 | 0.7    |
| In use             | 2021-10-07 11:47:01.712753 | 0.7    |
| In use             | 2021-10-07 11:47:26.720958 | 0.7    |
| In use             | 2021-10-07 11:47:46.753564 | 0.7    |
| In use             | 2021-10-07 11:48:01.738754 | 0.7    |
| In use             | 2021-10-07 11:48:21.737035 | 0.7    |
| In use             | 2021-10-07 11:48:46.757986 | 0.7    |
| In use             | 2021-10-07 11:49:01.770514 | 0.7    |
| In use             | 2021-10-07 11:49:21.769239 | 0.7    |
| In use             | 2021-10-07 11:49:46.757087 | 0.7    |
| In use             | 2021-10-07 11:50:01.752047 | 0.7    |
| In use             | 2021-10-07 11:50:21.752312 | 0.7    |
| In use             | 2021-10-07 11:50:46.758186 | 0.7    |
| In use             | 2021-10-07 11:51:01.781305 | 0.7    |
| In use             | 2021-10-07 11:51:21.757621 | 0.7    |
| In use             | 2021-10-07 11:51:46.945781 | 0.7    |
| In use             | 2021-10-07 11:52:01.793796 | 0.7    |
| In use             | 2021-10-07 11:52:21.788161 | 0.7    |
| In use             | 2021-10-07 11:52:47.031522 | 0.7    |
| In use             | 2021-10-07 11:53:01.796759 | 0.7    |
| In use             | 2021-10-07 11:53:21.798419 | 0.7    |
| In use             | 2021-10-07 11:53:46.815550 | 0.7    |
| In use             | 2021-10-07 11:54:01.829769 | 0.7    |
| In use             | 2021-10-07 11:54:21.820021 | 0.7    |
| In use             | 2021-10-07 11:54:46.832600 | 0.7    |
| In use             | 2021-10-07 11:55:01.845022 | 0.7    |
| In use             | 2021-10-07 11:55:21.847201 | 0.7    |
| In use             | 2021-10-07 11:55:46.852203 | 0.7    |
| In use             | 2021-10-07 11:56:02.052679 | 0.7    |
| In use             | 2021-10-07 11:56:21.861049 | 0.7    |
| In use             | 2021-10-07 11:56:46.852580 | 0.7    |
| In use             | 2021-10-07 11:57:01.878796 | 0.7    |
| In use             | 2021-10-07 11:57:21.879753 | 0.7    |
| In use             | 2021-10-07 11:57:46.868703 | 0.7    |
| In use             | 2021-10-07 11:58:01.873227 | 0.7    |
| In use             | 2021-10-07 11:58:21.905954 | 0.7    |
| In use             | 2021-10-07 11:58:46.906030 | 0.7    |
| In use             | 2021-10-07 11:59:01.884009 | 0.7    |
| In use             | 2021-10-07 11:59:21.954129 | 0.7    |
| In use             | 2021-10-07 11:59:46.880269 | 0.7    |
| In use             | 2021-10-07 12:00:01.892101 | 0.7    |
| In use             | 2021-10-07 12:00:21.909289 | 0.7    |
| In use             | 2021-10-07 12:00:46.910876 | 0.7    |
| In use             | 2021-10-07 12:01:01.904174 | 0.7    |
| In use             | 2021-10-07 12:01:21.925774 | 0.7    |
| In use             | 2021-10-07 12:01:46.921571 | 0.7    |
| In use             | 2021-10-07 12:02:01.914937 | 0.7    |
| In use             | 2021-10-07 12:02:21.926472 | 0.7    |
| In use             | 2021-10-07 12:02:46.920865 | 0.7    |
| In use             | 2021-10-07 12:03:01.925661 | 0.7    |
| In use             | 2021-10-07 12:03:21.926950 | 0.7    |
| In use             | 2021-10-07 12:04:02.859542 | 0.7    |
| In use             | 2021-10-07 12:04:11.963956 | 0.7    |
| In use             | 2021-10-07 12:04:21.962929 | 0.7    |
| In use             | 2021-10-07 12:04:41.931867 | 0.7    |
| In use             | 2021-10-07 12:05:01.983231 | 0.7    |
| In use             | 2021-10-07 12:05:21.970526 | 0.7    |
| In use             | 2021-10-07 12:05:41.952658 | 0.7    |
| In use             | 2021-10-07 12:06:01.963307 | 0.7    |
| In use             | 2021-10-07 12:06:21.988919 | 0.7    |
| In use             | 2021-10-07 12:06:41.990394 | 0.7    |
| In use             | 2021-10-07 12:07:02.007911 | 0.7    |
| In use             | 2021-10-07 12:07:21.986927 | 0.7    |
| In use             | 2021-10-07 12:07:41.994880 | 0.7    |
| In use             | 2021-10-07 12:08:02.020679 | 0.7    |
| In use             | 2021-10-07 12:08:22.023151 | 0.7    |
| In use             | 2021-10-07 12:08:42.023637 | 0.7    |
| In use             | 2021-10-07 12:09:02.027536 | 0.7    |
| In use             | 2021-10-07 12:09:22.014201 | 0.7    |
| In use             | 2021-10-07 12:09:42.050563 | 0.7    |
| In use             | 2021-10-07 12:10:02.051354 | 0.7    |
| In use             | 2021-10-07 12:10:22.033604 | 0.7    |
| In use             | 2021-10-07 12:10:42.041211 | 0.7    |
| In use             | 2021-10-07 12:11:02.067622 | 0.7    |
| In use             | 2021-10-07 12:11:22.103003 | 0.7    |
| In use             | 2021-10-07 12:11:42.073148 | 0.7    |
| In use             | 2021-10-07 12:12:02.055010 | 0.7    |
| In use             | 2021-10-07 12:12:22.068429 | 0.7    |
| In use             | 2021-10-07 12:12:42.076326 | 0.7    |
| In use             | 2021-10-07 12:13:02.085338 | 0.7    |
| In use             | 2021-10-07 12:13:22.095400 | 0.7    |
| In use             | 2021-10-07 12:13:42.097491 | 0.7    |
| In use             | 2021-10-07 12:14:02.083515 | 0.7    |
| In use             | 2021-10-07 12:14:22.105381 | 0.7    |
| In use             | 2021-10-07 12:14:42.093961 | 0.7    |
| In use             | 2021-10-07 12:15:02.100300 | 0.7    |
| In use             | 2021-10-07 12:15:22.107001 | 0.7    |
| In use             | 2021-10-07 12:15:42.104393 | 0.7    |
| In use             | 2021-10-07 12:16:02.123734 | 0.7    |
| In use             | 2021-10-07 12:16:22.128215 | 0.7    |
| In use             | 2021-10-07 12:16:42.158419 | 0.7    |
| In use             | 2021-10-07 12:17:02.176361 | 0.7    |
| In use             | 2021-10-07 12:17:22.166743 | 0.7    |
| In use             | 2021-10-07 12:17:42.185646 | 0.7    |
| In use             | 2021-10-07 12:18:02.207855 | 0.7    |
| In use             | 2021-10-07 12:18:22.433982 | 0.7    |
| In use             | 2021-10-07 12:18:42.226739 | 0.7    |
| In use             | 2021-10-07 12:19:02.212218 | 0.7    |
| In use             | 2021-10-07 12:19:22.216997 | 0.7    |
| In use             | 2021-10-07 12:19:42.221810 | 0.7    |
| In use             | 2021-10-07 12:20:02.251097 | 0.7    |
| In use             | 2021-10-07 12:20:22.254733 | 0.7    |
| In use             | 2021-10-07 12:20:42.241820 | 0.7    |
| In use             | 2021-10-07 12:21:02.233749 | 0.7    |
| In use             | 2021-10-07 12:21:22.413254 | 0.7    |
| In use             | 2021-10-07 12:21:42.260729 | 0.7    |
| In use             | 2021-10-07 12:22:02.268803 | 0.7    |
| In use             | 2021-10-07 12:22:17.241335 | 0.7    |
| In use             | 2021-10-07 12:22:42.257457 | 0.7    |
| In use             | 2021-10-07 12:23:02.265060 | 0.7    |
| In use             | 2021-10-07 12:23:17.275255 | 0.7    |
| In use             | 2021-10-07 12:23:42.277120 | 0.7    |
| In use             | 2021-10-07 12:24:02.285978 | 0.7    |
| In use             | 2021-10-07 12:24:17.286073 | 0.7    |
| In use             | 2021-10-07 12:25:02.341869 | 0.7    |
| In use             | 2021-10-07 12:25:17.337964 | 0.7    |
| In use             | 2021-10-07 12:25:42.395027 | 0.7    |
| In use             | 2021-10-07 12:26:02.402902 | 0.7    |
| In use             | 2021-10-07 12:26:17.395519 | 0.7    |
| In use             | 2021-10-07 12:26:42.463458 | 0.7    |
| In use             | 2021-10-07 12:27:02.452564 | 0.7    |
| In use             | 2021-10-07 12:27:17.602113 | 0.7    |
| In use             | 2021-10-07 12:27:42.489354 | 0.7    |
| In use             | 2021-10-07 12:28:02.468237 | 0.7    |
| In use             | 2021-10-07 12:28:17.529027 | 0.7    |
| In use             | 2021-10-07 12:28:42.517738 | 0.7    |
| In use             | 2021-10-07 12:29:02.546906 | 0.7    |
| Finished           | 2021-10-07 12:29:17.581431 | 0.7    |
| Finished           | 2021-10-07 12:30:02.600809 | 0.7    |
| Finished           | 2021-10-07 12:31:02.609726 | 0.7    |
| Finished           | 2021-10-07 12:32:02.622847 | 0.7    |
| Finished           | 2021-10-07 12:33:02.640685 | 0.7    |
| Finished           | 2021-10-07 12:34:02.641589 | 0.7    |
| Finished           | 2021-10-07 12:35:02.676164 | 0.7    |
| Finished           | 2021-10-07 12:36:02.661766 | 0.7    |
| Finished           | 2021-10-07 12:37:02.686686 | 0.7    |
| Finished           | 2021-10-07 12:38:02.684930 | 0.7    |
| Off                | 2021-10-07 12:38:17.688473 | NULL   |
+--------------------+----------------------------+--------+

I guess "Not connected" could mean that my dishwasher momentarily lost the connection to Miele's cloud? It's actually possible that there were some intermittent network issues yesterday, so that could explain this situation. But nevertheless, I think it's something that needs to be properly handled by the integration, because surely others can experience internet downtime too.

As for the 0 dives during a program, is this only true for one measurement? If so possibly we can just only change the value to 0 after we got the value twice in a row?

So yes, in my case it was only one time in a row (see the data above). But if the internt connection is broken for a longer time, I suppose there could be more than one in a row. It feels like we should cache the last known value, and keep returning that as long as the status is "Not connected". What do you think about that?

I'll also try to dig out a bit more detailed data about the pre-run spikes now.

@slovdahl
Copy link
Contributor Author

slovdahl commented Oct 8, 2021

Oh, but now I also saw this:

| In use             | 2021-10-07 11:43:07.988051 | 0.7    |
| In use             | 2021-10-07 11:43:21.389898 | NULL   |
| In use             | 2021-10-07 11:43:24.944548 | 0.7    |

So it's not only NULL when the state is "Not connected". 😒 But the same approach could work too. If the energy consumption suddenly is missing, just return the previously known value until it starts returning something again.

EDIT: More complete data for those three rows:

| In use             | {"ProgramID":"ECO","rawProgramID":3,"programType":"Programa","rawProgramType":0,"programPhase":"Drying","rawProgramPhase":1799,"dryingStep":"","rawDryingStep":null,"spinningSpeed":null,"rawSpinningSpeed":null,"ventilationStep":"","rawVentilationStep":null,"currentWaterConsumption":8.0,"currentWaterConsumptionUnit":"l","currentEnergyConsumption":0.7,"currentEnergyConsumptionUnit":"kWh","waterForecast":0.3,"energyForecast":0.3,"progress":78.7,"finishTime":"15:32","kickoffTime":"11:42","friendly_name":"Dishwasher Status"}      | 2021-10-07 11:43:07.988051 |
| In use             | {"ProgramID":"ECO","rawProgramID":3,"programType":"Programa","rawProgramType":0,"programPhase":"Drying","rawProgramPhase":1799,"dryingStep":"","rawDryingStep":null,"spinningSpeed":null,"rawSpinningSpeed":null,"ventilationStep":"","rawVentilationStep":null,"progress":78.7,"finishTime":"15:32","kickoffTime":"11:42","friendly_name":"Dishwasher Status"}                                                                                                                                                                                   | 2021-10-07 11:43:21.389898 |
| In use             | {"ProgramID":"ECO","rawProgramID":3,"programType":"Programa","rawProgramType":0,"programPhase":"Drying","rawProgramPhase":1799,"dryingStep":"","rawDryingStep":null,"spinningSpeed":null,"rawSpinningSpeed":null,"ventilationStep":"","rawVentilationStep":null,"currentWaterConsumption":8.0,"currentWaterConsumptionUnit":"l","currentEnergyConsumption":0.7,"currentEnergyConsumptionUnit":"kWh","waterForecast":0.3,"energyForecast":0.3,"progress":79.0,"finishTime":"15:31","kickoffTime":"11:42","friendly_name":"Dishwasher Status"}      | 2021-10-07 11:43:24.944548 |

And for the "Not connected" case:

| In use             | {"ProgramID":"ECO","rawProgramID":3,"programType":"Programa","rawProgramType":0,"programPhase":"Main wash","rawProgramPhase":1795,"dryingStep":"","rawDryingStep":null,"spinningSpeed":null,"rawSpinningSpeed":null,"ventilationStep":"","rawVentilationStep":null,"currentWaterConsumption":3.0,"currentWaterConsumptionUnit":"l","currentEnergyConsumption":0.5,"currentEnergyConsumptionUnit":"kWh","waterForecast":0.3,"energyForecast":0.3,"progress":32.8,"finishTime":"15:35","kickoffTime":"11:43","friendly_name":"Dishwasher Status"}   | 2021-10-07 09:59:13.204589 |
| Not connected      | {"ProgramID":"","rawProgramID":null,"programType":"","rawProgramType":null,"programPhase":"","rawProgramPhase":null,"dryingStep":"","rawDryingStep":null,"spinningSpeed":null,"rawSpinningSpeed":null,"ventilationStep":"","rawVentilationStep":null,"progress":null,"finishTime":null,"kickoffTime":"12:59","friendly_name":"Dishwasher Status"}                                                                                                                                                                                                 | 2021-10-07 09:59:24.859469 |
| In use             | {"ProgramID":"ECO","rawProgramID":3,"programType":"Programa","rawProgramType":0,"programPhase":"Main wash","rawProgramPhase":1795,"dryingStep":"","rawDryingStep":null,"spinningSpeed":null,"rawSpinningSpeed":null,"ventilationStep":"","rawVentilationStep":null,"currentWaterConsumption":3.0,"currentWaterConsumptionUnit":"l","currentEnergyConsumption":0.5,"currentEnergyConsumptionUnit":"kWh","waterForecast":0.3,"energyForecast":0.3,"progress":33.0,"finishTime":"15:35","kickoffTime":"11:42","friendly_name":"Dishwasher Status"}   | 2021-10-07 09:59:29.409236 |

@slovdahl
Copy link
Contributor Author

slovdahl commented Oct 8, 2021

Something still seems to be a little bit off.

image

It seems like when the washing machine is started, the predicted or previous energy usage is returned, before it's reset to 0. This has the nasty side effect of essentially doubling the energy usage in the statistics table, because every reset down to 0 means that subsequent increases are counted again. Any ideas what's going on here? I'm still a bit too unfamiliar with the Miele API.

Here's the raw data for the first pre-spike instance in the screenshot:

+--------------------+----------------------------+--------+
| state              | created                    | energy |
+--------------------+----------------------------+--------+
| Off                | 2021-09-23 11:16:03.216740 | NULL   |
| Off                | 2021-09-23 11:17:03.233423 | NULL   |
| Programme selected | 2021-09-23 11:17:28.236091 | 0.4    |
| In use             | 2021-09-23 11:17:33.242148 | 0.0    |
| In use             | 2021-09-23 11:17:48.245302 | 0.0    |
| In use             | 2021-09-23 11:17:58.249509 | 0.0    |
| In use             | 2021-09-23 11:18:03.245481 | 0.0    |
| In use             | 2021-09-23 11:18:23.263421 | 0.0    |
| In use             | 2021-09-23 11:19:03.275995 | 0.0    |
| In use             | 2021-09-23 11:19:08.273958 | 0.0    |
| In use             | 2021-09-23 11:19:33.263809 | 0.0    |
| In use             | 2021-09-23 11:20:03.281056 | 0.0    |
| In use             | 2021-09-23 11:20:23.280975 | 0.0    |
| In use             | 2021-09-23 11:20:33.277160 | 0.0    |
| In use             | 2021-09-23 11:21:03.313100 | 0.0    |
| In use             | 2021-09-23 11:21:13.285439 | 0.0    |
| In use             | 2021-09-23 11:21:33.302687 | 0.0    |
| In use             | 2021-09-23 11:22:03.324599 | 0.0    |
| In use             | 2021-09-23 11:22:13.336478 | 0.0    |
| In use             | 2021-09-23 11:22:33.333544 | 0.0    |
| In use             | 2021-09-23 11:22:58.433368 | 0.0    |
| In use             | 2021-09-23 11:23:03.318728 | 0.0    |
| In use             | 2021-09-23 11:23:38.318367 | 0.0    |
| In use             | 2021-09-23 11:23:58.331784 | 0.0    |
| In use             | 2021-09-23 11:24:03.353638 | 0.0    |
| In use             | 2021-09-23 11:24:43.344557 | 0.0    |
| In use             | 2021-09-23 11:25:03.508294 | 0.0    |
| In use             | 2021-09-23 11:25:13.397098 | 0.0    |
| In use             | 2021-09-23 11:25:18.342961 | 0.0    |
| In use             | 2021-09-23 11:25:28.351767 | 0.0    |
| In use             | 2021-09-23 11:25:33.348160 | 0.0    |
| In use             | 2021-09-23 11:25:38.350555 | 0.0    |
| In use             | 2021-09-23 11:26:03.375248 | 0.0    |
| In use             | 2021-09-23 11:26:13.351297 | 0.0    |
| In use             | 2021-09-23 11:26:33.368659 | 0.0    |
| In use             | 2021-09-23 11:26:53.367402 | 0.0    |
| In use             | 2021-09-23 11:27:03.381386 | 0.0    |
| In use             | 2021-09-23 11:27:28.390040 | 0.1    |
| In use             | 2021-09-23 11:27:38.378074 | 0.1    |
| In use             | 2021-09-23 11:27:58.394772 | 0.1    |
+--------------------+----------------------------+--------+

And the full data for the most relevant part:

| Off                | {"ProgramID":"QuickPowerWash","rawProgramID":146,"programType":"Own programme","rawProgramType":1,"programPhase":"Anti-crease","rawProgramPhase":267,"dryingStep":"","rawDryingStep":null,"spinningSpeed":"1400","rawSpinningSpeed":1400,"ventilationStep":"","rawVentilationStep":null,"progress":null,"finishTime":null,"kickoffTime":"14:17","friendly_name":"Washing machine Status"}                                                                                                                                                                               | 2021-09-23 11:17:03.233423 |
| Programme selected | {"ProgramID":"QuickPowerWash","rawProgramID":146,"programType":"Own programme","rawProgramType":1,"programPhase":"","rawProgramPhase":256,"dryingStep":"","rawDryingStep":null,"spinningSpeed":"1400","rawSpinningSpeed":1400,"ventilationStep":"","rawVentilationStep":null,"currentWaterConsumption":30.0,"currentWaterConsumptionUnit":"l","currentEnergyConsumption":0.4,"currentEnergyConsumptionUnit":"kWh","waterForecast":0.2,"energyForecast":0.4,"progress":0.0,"finishTime":"15:06","kickoffTime":"14:17","friendly_name":"Washing machine Status"}          | 2021-09-23 11:17:28.236091 |
| In use             | {"ProgramID":"QuickPowerWash","rawProgramID":146,"programType":"Own programme","rawProgramType":1,"programPhase":"Main wash","rawProgramPhase":260,"dryingStep":"","rawDryingStep":null,"spinningSpeed":"1400","rawSpinningSpeed":1400,"ventilationStep":"","rawVentilationStep":null,"currentWaterConsumption":0.0,"currentWaterConsumptionUnit":"l","currentEnergyConsumption":0.0,"currentEnergyConsumptionUnit":"kWh","waterForecast":0.2,"energyForecast":0.4,"progress":0.0,"finishTime":"15:06","kickoffTime":"14:17","friendly_name":"Washing machine Status"}  | 2021-09-23 11:17:33.242148 |

@slovdahl
Copy link
Contributor Author

slovdahl commented Oct 8, 2021

I pushed a new commit where a known (and hopefully sane) value is cached and returned in case of error situations. Please take a look whenever you have time. There's quite a bit to clean up there yet, but I'll be running it at home for a few days now at least.

@kloknibor
Copy link
Contributor

hi @slovdahl !

That is some proper research, well done and interesting to see.

Just 2 questions. If we see NULL in your table, is the value than actually NULL or was it any of these states?

"ecoFeedback" not in device_state or
device_state["ecoFeedback"] is None or
"currentEnergyConsumption" not in device_state["ecoFeedback"]

Second remark is that the energy and water consumption sensor classes are quite similair, do you think it would be good to merge them? Or leave them seperate as they are currently?

@slovdahl
Copy link
Contributor Author

slovdahl commented Oct 9, 2021

With the current state of the PR, the energy consumption is not reset until the Miele device is started the next time or HA is restarted (because of the cached value). This was not actually intentional on my part, but I wonder if it's just easiest to keep it that way 🤔 I can't think of any problems it would cause, and trying to detect just means we need a lot more logic that makes the code harder to understand and maintain. Thoughts?

bild

Just 2 questions. If we see NULL in your table, is the value than actually NULL or was it any of these states?

"ecoFeedback" not in device_state or
device_state["ecoFeedback"] is None or
"currentEnergyConsumption" not in device_state["ecoFeedback"]

Good question! I thought about it too, but the honest answer at this point is that I don't know for sure. I suppose I would need to e.g. log raw responses from the Miele API to really know 🤔

Second remark is that the energy and water consumption sensor classes are quite similair, do you think it would be good to merge them? Or leave them seperate as they are currently?

Yeah, I think it would be a good idea to deduplicate the code a bit 👍 I'll look into that once we have something that works reliably. Maybe that can be done in a follow-up PR?

@slovdahl
Copy link
Contributor Author

bild

Just started the dishwasher again, and the energy consumption was reset.

@slovdahl
Copy link
Contributor Author

Everything still looking good, I haven't seen any spurious resets the past 3 days.

But still no response from Miele.

@kloknibor
Copy link
Contributor

I'll merge your PR for now, still before pushing it to main I want to try to improve it a bit. I'll try to get some work in it today. Thanks for all the research!

@kloknibor kloknibor merged commit 32633a0 into HomeAssistant-Mods:dev Oct 12, 2021
github-actions bot pushed a commit that referenced this pull request Oct 12, 2021
* Add missing update method for sensor entity base class

Related to #58.

* Handle unavailable data gracefully
@slovdahl slovdahl deleted the 58-fix-sensor-entity-update branch October 12, 2021 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants