Code Monkey home page Code Monkey logo

Comments (4)

sfudeus avatar sfudeus commented on August 20, 2024

Hmm, looks ok so far. Is your prometheus running on the same host (and not in a container)? Did you try accessing the metrics endpoint from a browser?

from homematic_exporter.

MarpleA avatar MarpleA commented on August 20, 2024

Thanks for pointing me to the right direction. I realized that none the metric pages of my exporters where actually still accessible (even though they kept on collecting data)
Seems like my prometheus installation was partly broken somehow. After fixing this, the homematic_exporter worked like charm.

there's only one little thing which doesn't work yet - the config file.

if I run:
python3 /home/user01/homematic_exporter/exporter.py --ccu_host 192.168.10.170 --ccu_port 2010 --interval 15 --port 9411
both devices, weatherstation and power plug are detected.

if I run:
python3 /home/user01/homematic_exporter/exporter.py --ccu_host 192.168.10.170 --ccu_port 2010 --interval 15 --port 9411 --config_file /home/user01/homematic_exporter/homematic_exporter.json

with config file like this:

{
"supported_device_types": [
"HmIP-SWO-PL",
"HmIP-PSM"

],
"device_mapping": {
"00xxx": "Wetterstation",
"00xxx": "Waschmaschine"
}
}

only "Wetterstation" is being detected - not the power plug "Waschmaschine"

EDIT:
same happens if I use the sample_config.json

from homematic_exporter.

sfudeus avatar sfudeus commented on August 20, 2024

You can leave out supported_device_types if you do not want to add additional ones. PSM is supported by default.
The problem most likely is that HMIP-PSM has different case than the others (most have HmIP).
I suggest removing the definition from the config. Even if the mapped names do not match, they just don't get a name mapping, so the mapped_name label is not set.

from homematic_exporter.

MarpleA avatar MarpleA commented on August 20, 2024

that did the trick. thx

from homematic_exporter.

Related Issues (18)

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.