]> git.basschouten.com Git - openhab-addons.git/blob
fa3eb6fab135c7e8b03fea5d21b00b88fc7fcbba
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
7  * This program and the accompanying materials are made available under the
8  * terms of the Eclipse Public License 2.0 which is available at
9  * http://www.eclipse.org/legal/epl-2.0
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.ecobee.internal.dto.thermostat;
14
15 import java.util.List;
16
17 /**
18  * The {@link ElectricityDeviceDTO} represents an energy recording device. At this time,
19  * only meters are supported by the API.
20  *
21  * @author Mark Hilbush - Initial contribution
22  */
23 public class ElectricityDeviceDTO {
24
25     /*
26      * The name of the device.
27      */
28     public String name;
29
30     /*
31      * The list of Electricity Tiers containing the break down of daily electricity
32      * consumption of the device for the day, broken down per pricing tier.
33      */
34     public List<ElectricityTierDTO> tiers;
35
36     /*
37      * The last date/time the reading was updated in UTC time.
38      */
39     public String lastUpdate;
40
41     /*
42      * The last three daily electricity cost reads from the device in cents with a
43      * three decimal place precision.
44      */
45     public List<String> cost;
46
47     /*
48      * The last three daily electricity consumption reads from the device in KWh
49      * with a three decimal place precision.
50      */
51     public List<String> consumption;
52 }