Giter Site home page Giter Site logo

mytselection / pixometer Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 1.0 336 KB

Home Assistant custom component HACS for Pixolus Pixometer app meter reading integration.

License: MIT License

Python 100.00%
hacs home-assistant homeassistant meterreading python pixometer

pixometer's Introduction

HACS Default GitHub release GitHub repo size

GitHub issues GitHub last commit GitHub commit activity

Pixometer Home Assistant integration

Pixometer Home Assistant custom component. With Pixometer, a mobile app and scan solutions is available for intuitive and efficient meter reading registration. This custom component has been built from the ground up to bring your Pixometer scaned engery meter usage details into Home Assistant to help you towards a better follow up on your usage information. This integration is built against the public website provided by Pixolus Pixometer.

This integration is in no way affiliated with Pixolus or Pixmeter.

โš ๏ธ Please don't report issues with this integration to Pixolus/Pixometer, they will not be able to support you.

Some discussion on this topic can be found within the community discussion Home Assistant Forum

Pixometer account creation: https://pixometer.io/portal/#/login

Pixometer app Android / iPhone

Installation

  • Make sure you have a free Pixometer account created
  • HACS: HACS > Integration > search for Pixometer and install
    • Open your Home Assistant instance and open the repository inside the Home Assistant Community Store.
  • Restart Home Assistant
  • Add 'Pixometer' integration via HA Settings > 'Devices and Services' > 'Integrations'
  • Provide Pixometer username and password
  • A sensor Pixometer should become available per meter with last reading as state and further details as attribute.

Status

Still some optimisations are planned, see Issues section in GitHub.

Example usage:

For each meter, a sensor will be created in HA. Myself, I still have a fuel oil installation which has no meter similar to gas meter. I only have a televar indicating the percentage of oil currently available in the tank.

At a regular interval I do keep track of this percentage of oil within a Pixometer meter reading.

Next, with a template sensor, I convert the percentage of tank content into a total number of kWh used so far:

  • Within a HA variable input_number.mazout_bijvullingen, I keep track of the total number of liters orderd to fill the oil tank.
  • But since not all of this total orderd oil is already consumed, I substract the number of liters still available in the tank to know the total number of used liter of fuel.
  • The number of liters left in the tank is calculated based on the percentage left in the tank and the max capacity of the tank (5000l)
  • The number of liters used is then converted from liters into kWh by multipling by 10.641.

Configuration as a template sensor in configuration.yaml

sensor: 
  - platform: template
    sensors:
      mazout_pixometer:
        value_template: "{{ ((states.input_number.mazout_bijvullingen.state|float - 5000) + (5000 * (100 - states('sensor.pixometer_mazout_televar_thuis')|float)/100)) * 10.641}}"
        device_class: gas
        unit_of_measurement: kWh

pixometer's People

Contributors

danielrheinbay avatar mytselection avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

danielrheinbay

pixometer's Issues

version 2.1.0 did not load the sensors

Congratulations on the pixometer integration. I went back to version 2.0.0 and it is collecting data normally. But version 2.1.0, at least for me, the sensors are unknown.Pplease fix.

fix integration 'Reload' function

Current Reload is available but not executing a full reload. so to get a full reload of the sensors, HA is still to be restarted. Support request within HA forum is outstanding to understand how this should be implemented.

Updates not fetched

New values are only fetched correctly upon HA reboot. Need to revalidate the throttle setup

gas & water meter not appearing in HA energy dashboard

According to HA the integration fails to show in the dashboard because of incorrect statistics and tells me to notify the developer of the following about statistics: https://developers.home-assistant.io/docs/core/entity/sensor/#long-term-statistics

Energy seems to work fine and can be selected as a source in the dashboard, but both the gas and water meter cannot.

When comparing the three meters, all necessary information seems to be present, the only difference I see is energy is state_class "total" vs gas & water have state_class "total_increasing"? Could that be the issue or is there something else?

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.