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

Electricity Meter #80

Closed
lseufer opened this issue Jun 22, 2020 · 5 comments · Fixed by #81
Closed

Electricity Meter #80

lseufer opened this issue Jun 22, 2020 · 5 comments · Fixed by #81
Assignees
Labels
enhancement New feature or request platform: sensor

Comments

@lseufer
Copy link

lseufer commented Jun 22, 2020

Describe the bug:
Data isn't pulled from my meters

Expected behavior:
Nothing is reported. Only "unknown"

Environment:

  • Home Assistant version: 0.111
  • Platform: sensor

Device:

  • Model: 'io:TotalElectricalEnergyConsumptionIOSystemSensor'
  • Type: CumulativeElectricPowerConsumptionSensor
@lseufer lseufer added the bug Something isn't working label Jun 22, 2020
@vlebourl
Copy link
Collaborator

vlebourl commented Jun 22, 2020

Hi, thank you for the report, can you please follow instructions provided here to add device details, namely state definitions and command definitions?
Thanks

@vlebourl vlebourl self-assigned this Jun 22, 2020
@lseufer
Copy link
Author

lseufer commented Jun 22, 2020

Here you go!

creationTime":1564688966000,
         "lastUpdateTime":1564688966000,
         "label":"Compteur",
         "deviceURL":"",
         "shortcut":false,
         "controllableName":"io:TotalElectricalEnergyConsumptionIOSystemSensor",
         "definition":{
            "commands":[

            ],
            "states":[
               {
                  "type":"ContinuousState",
                  "qualifiedName":"core:ElectricEnergyConsumptionState"
               },
               {
                  "type":"ContinuousState",
                  "qualifiedName":"core:RSSILevelState"
               },
               {
                  "values":[
                     "dead",
                     "lowBattery",
                     "maintenanceRequired",
                     "noDefect"
                  ],
                  "type":"DiscreteState",
                  "qualifiedName":"core:SensorDefectState"
               },
               {
                  "values":[
                     "available",
                     "unavailable"
                  ],
                  "type":"DiscreteState",
                  "qualifiedName":"core:StatusState"
               }
            ],
            "dataProperties":[

            ],
            "widgetName":"CumulativeElectricPowerConsumptionSensor",
            "uiClass":"ElectricitySensor",
            "qualifiedName":"io:TotalElectricalEnergyConsumptionIOSystemSensor",
            "type":"SENSOR"
         },
         "states":[
            {
               "name":"core:StatusState",
               "type":3,
               "value":"available"
            },
            {
               "name":"core:ElectricEnergyConsumptionState",
               "type":1,
               "value":21744148
            }
         ],
         "attributes":[
            {
               "name":"core:MeasurementCategory",
               "type":3,
               "value":"electric/overall"
            },
            {
               "name":"core:PowerSourceType",
               "type":3,
               "value":"mainSupply"
            },
            {
               "name":"core:MeasuredValueType",
               "type":3,
               "value":"core:ElectricalEnergyInWh"
            }
         ],
         "available":true,
         "enabled":true,
         "placeOID":"c9594cac-f5e2-4e26-9688-5926954443d3",
         "widget":"CumulativeElectricPowerConsumptionSensor",
         "measurementCategory":"ELECTRIC_OVERALL",
         "type":2,
         "oid":"4ff9b811-1bd8-4edc-afb6-422ac7b87b45",
         "uiClass":"ElectricitySensor"

vlebourl added a commit that referenced this issue Jun 22, 2020
@vlebourl vlebourl added enhancement New feature or request and removed bug Something isn't working labels Jun 22, 2020
@vlebourl
Copy link
Collaborator

could you checkout this branch instead of your HACS install of the component and try it out?

https://github.com/iMicknl/ha-tahoma/tree/fix_electrical_energy_sensor

@lseufer
Copy link
Author

lseufer commented Jun 22, 2020

Excellent! This works. You can merge it.

@vlebourl
Copy link
Collaborator

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request platform: sensor
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants