Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Controllers
  3. FHEM
  4. Solar Battery Monitor - How to transfer values to Fhem

Solar Battery Monitor - How to transfer values to Fhem

Scheduled Pinned Locked Moved FHEM
3 Posts 3 Posters 1.6k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    btmerz
    wrote on last edited by
    #1

    Hi,
    I try to get my solar battery-sensor to work. Therefor I want to monitor several values from the solar cell and the battery.
    float U_Cell1 = 0.0;
    float U_Cell2 = 0.0;
    float U_Cell3 = 0.0;
    float U_Solar = 0.0;
    float I_Solar = 0.0;
    float I_Battery = 0.0;
    float dU_Max = 0.0;
    float Wh_Solar = 0.0;
    float Wh_Battery = 0.0;
    float Wh_Load = 0.0;
    float Ah_Solar = 0.0;
    float Ah_Battery = 0.0;
    float Ah_Load = 0.0;

    Which sensor and datatype do I have to use to send the data to fhem? They should appear in fhem in a way that I know what data it ist. for the voltages I use V_VOLTAGE and for the current V_CURRENT.
    But for the other values there don't exist the types. So what should I use?

    Thanks for your help.

    mfalkviddM 1 Reply Last reply
    0
    • rejoe2R Offline
      rejoe2R Offline
      rejoe2
      wrote on last edited by rejoe2
      #2

      From FHEM side of view, you may use any of the Types MySensors offers, most likely presenting one or more S_POWER Children fit closest.

      To get "better" reading names, I'd give the "get <device> ReadingsFromComments" function a try and add a comment to the sketches present() function (Cell1, ..., Solar, Battery...).

      It's a bit hard to explain. If you have some experience with DS18x20 type of sensors, you may get an idea looking at the code here (or make some experienents with it): https://github.com/rejoe2/MySensors-Dallas-Address-ChildID-Consistency/blob/master/DallasTemperatureSimple/DallasTemperatureSimple.ino

      Controller: FHEM; MySensors: 2.3.1, RS485,nRF24,RFM69, serial Gateways

      1 Reply Last reply
      0
      • B btmerz

        Hi,
        I try to get my solar battery-sensor to work. Therefor I want to monitor several values from the solar cell and the battery.
        float U_Cell1 = 0.0;
        float U_Cell2 = 0.0;
        float U_Cell3 = 0.0;
        float U_Solar = 0.0;
        float I_Solar = 0.0;
        float I_Battery = 0.0;
        float dU_Max = 0.0;
        float Wh_Solar = 0.0;
        float Wh_Battery = 0.0;
        float Wh_Load = 0.0;
        float Ah_Solar = 0.0;
        float Ah_Battery = 0.0;
        float Ah_Load = 0.0;

        Which sensor and datatype do I have to use to send the data to fhem? They should appear in fhem in a way that I know what data it ist. for the voltages I use V_VOLTAGE and for the current V_CURRENT.
        But for the other values there don't exist the types. So what should I use?

        Thanks for your help.

        mfalkviddM Offline
        mfalkviddM Offline
        mfalkvidd
        Mod
        wrote on last edited by
        #3

        @btmerz I am not familiar with fham, but see if V_KWH works. For Ah it would (technically) be incorrect, but I think the display and aggregegation would work anyway.

        1 Reply Last reply
        0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        64

        Online

        12.0k

        Users

        11.2k

        Topics

        113.4k

        Posts


        Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • MySensors
        • OpenHardware.io
        • Categories
        • Recent
        • Tags
        • Popular