Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


  • 0

QuickApp energy meter: storage value


Question

Posted

My energyMeter type QuickApp gets its energy value from the respective
device.
The values I get are for example:
31712280 Wh, 23370 Wh, 419003750 Wh, 11651840 Wh, 4713050 Wh,
6900950 Wh, 8422670 Wh, 1337790 Wh, 11384820 Wh,
9862350 Wh, 12361250 Wh, 15949320 Wh,
12257440 Wh, 13580990 Wh, 15923160 Wh,
14068930 Wh, 19364480 Wh,
1915490Wh, 386790Wh, 383380Wh
The values I get are the following and they seem too large to me.
On the Fibaro control panel, I notice that the value must be expressed in:
kWh
Even if I created a function that would allow me to turn Wh into kWh, I guess
that the value does not reflect what the Fibaro platform accepts.
I read that the accepted value is. x.xx, xx.xx i.e. 0.01, 1.00
So if I did:

self:updateProperty("value", xx)

I believe the value is not accepted.

Furthermore I also tried:

self:updateProperty("value", 20)

The value is not historicized.

 

Maybe there is a range in the historicization of the value from 0 to 18 ?


I hope someone can help me understand

Please login or register to see this attachment.

5 answers to this question

Recommended Posts

  • 0
Posted

Some hints:

- the value has to be a number, not a string

- value has to be cumulative (each newer value is higher than the previous value)

- amount has to be kWh (otherwise too much or too less for the energy panel)

- devicetype has to be energyMeter

 

But all of the above hints I cannot check from you post. Maybe it is better to post your code here. 

 

  • 0
  • Inquirer
  • Posted

    Please login or register to see this code.

     

    Please login or register to see this code.

     

    TIPOLOGIA DEL VALORE XYZ number[10.09.2024]
    [10:29:46] [DEBUG] [QUICKAPP1122]: UpdateProperty 13.63


    is number

     

     

    Please login or register to see this code.

     

    Please login or register to see this code.

     

    Please login or register to see this code.

     

    Please login or register to see this code.

     

     

    • 0
    Posted

    This code cannot work as a quickapp. A quickapp starts with an onInit() 

     

    • 0
  • Inquirer
  • Posted

    Please login or register to see this code.

    Please login or register to see this code.

     

    Please login or register to see this code.

    • 0
    Posted

    You are making it a bit of a puzzle by posting parts of the code and posting a onInit() that does nothing but a debug statement. If you want help, please don't make it a puzzle for others. 

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Answer this question...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.

    ×
    ×
    • Create New...