NEWS

Summenberechnung



  • Wie es aussieht wird es richtig berechnet aber warum ist die Ausgabe dann falsch?



  • @ostseereiter sagte:

    warum ist die Ausgabe dann falsch?

    Du solltest die Datenpunkte neu anlegen unter "Meine_Geraete.0", also den ersten z.B. als "Meine_Geraete.0.BKosten". Bei der von Dir gewählten ID, beginnend mit einem Punkt und ohne eine Ziffer zwischen dem ersten und zweiten Punkt gibt es regelmäßig Probleme.



  • @paul53
    Habe ich geändert auch da wird falsch ausgegeben.

    schedule("*/20 */4 * * *", function () {
    });
    
    on({id: ".Meine_Geräte.wohnunglicht"/*wohnunglicht*/, change: "ne"}, function (obj) {
      var value = obj.state.val;
      var oldValue = obj.oldState.val;
      console.log(Math.round(getState("sourceanalytix.0.sonoff__0__Sonoff-Furanlage__ENERGY_Total.cost.05_current_year").val*100)/100);
      console.log(Math.round(getState("sourceanalytix.0.sonoff__0__Sonoff-Kühlschrank__ENERGY_Total.cost.05_current_year").val*100)/100);
      console.log(Math.round(getState("sourceanalytix.0.sonoff__0__Sonoff-Spuelmaschine1__ENERGY_Total.cost.05_current_year").val*100)/100);
      console.log(Math.round(getState("sourceanalytix.0.sonoff__0__Sonoff-Trockner__ENERGY_Total.cost.05_current_year").val*100)/100);
      console.log(Math.round(getState("sourceanalytix.0.sonoff__0__Sonoff-Waschmaschiene__ENERGY_Total.cost.05_current_year").val*100)/100);
      Liste = [Math.round(getState("sourceanalytix.0.sonoff__0__Sonoff-Furanlage__ENERGY_Total.cost.05_current_year").val*100)/100, Math.round(getState("sourceanalytix.0.sonoff__0__Sonoff-Kühlschrank__ENERGY_Total.cost.05_current_year").val*100)/100, Math.round(getState("sourceanalytix.0.sonoff__0__Sonoff-Spuelmaschine1__ENERGY_Total.cost.05_current_year").val*100)/100, Math.round(getState("sourceanalytix.0.sonoff__0__Sonoff-Trockner__ENERGY_Total.cost.05_current_year").val*100)/100, Math.round(getState("sourceanalytix.0.sonoff__0__Sonoff-Waschmaschiene__ENERGY_Total.cost.05_current_year").val*100)/100];
      console.log('Liste: ');
      console.log(Liste);
      console.log('Summe: ');
      console.log((Liste.reduce(function(x, y) {return x + y;})));
      setState(".Meine_Geräte.BK"/*BK*/, (Liste.reduce(function(x, y) {return x + y;})));
    });
    
    //JTNDeG1sJTIweG1sbnMlM0QlMjJodHRwJTNBJTJGJTJGd3d3LnczLm9yZyUyRjE5OTklMkZ4aHRtbCUyMiUzRSUzQ3ZhcmlhYmxlcyUzRSUzQ3ZhcmlhYmxlJTIwdHlwZSUzRCUyMiUyMiUyMGlkJTNEJTIyS0lJJTJGIXR1JTQwLkhCWiozKU1KYiUyQi0lMjIlM0VMaXN0ZSUzQyUyRnZhcmlhYmxlJTNFJTNDJTJGdmFyaWFibGVzJTNFJTNDYmxvY2slMjB0eXBlJTNEJTIyc2NoZWR1bGUlMjIlMjBpZCUzRCUyMjUlM0Z2cSU2MHUlM0ZfbUotckolMkY1LmtGWEMlMjIlMjB4JTNEJTIyLTEyJTIyJTIweSUzRCUyMi0zODglMjIlM0UlM0NmaWVsZCUyMG5hbWUlM0QlMjJTQ0hFRFVMRSUyMiUzRSolMkYyMCUyMColMkY0JTIwKiUyMColMjAqJTNDJTJGZmllbGQlM0UlM0MlMkZibG9jayUzRSUzQ2Jsb2NrJTIwdHlwZSUzRCUyMm9uJTIyJTIwaWQlM0QlMjJmb1NsKXhqJTVEYVZtMCU3Q3ViYy1VVmolMjIlMjB4JTNEJTIyLTE4NyUyMiUyMHklM0QlMjItMzEyJTIyJTNFJTNDZmllbGQlMjBuYW1lJTNEJTIyT0lEJTIyJTNFLk1laW5lX0dlciVDMyVBNHRlLndvaG51bmdsaWNodCUzQyUyRmZpZWxkJTNFJTNDZmllbGQlMjBuYW1lJTNEJTIyQ09ORElUSU9OJTIyJTNFbmUlM0MlMkZmaWVsZCUzRSUzQ2ZpZWxkJTIwbmFtZSUzRCUyMkFDS19DT05ESVRJT04lMjIlM0UlM0MlMkZmaWVsZCUzRSUzQ3N0YXRlbWVudCUyMG5hbWUlM0Q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GIXR1JTQwLkhCWiozKU1KYiUyQi0lMjIlMjB2YXJpYWJsZXR5cGUlM0QlMjIlMjIlM0VMaXN0ZSUzQyUyRmZpZWxkJTNFJTNDJTJGYmxvY2slM0UlM0MlMkZ2YWx1ZSUzRSUzQyUyRmJsb2NrJTNFJTNDJTJGdmFsdWUlM0UlM0MlMkZibG9jayUzRSUzQyUyRm5leHQlM0UlM0MlMkZibG9jayUzRSUzQyUyRm5leHQlM0UlM0MlMkZibG9jayUzRSUzQyUyRm5leHQlM0UlM0MlMkZibG9jayUzRSUzQyUyRm5leHQlM0UlM0MlMkZibG9jayUzRSUzQyUyRm5leHQlM0UlM0MlMkZibG9jayUzRSUzQyUyRm5leHQlM0UlM0MlMkZibG9jayUzRSUzQyUyRm5leHQlM0UlM0MlMkZibG9jayUzRSUzQyUyRm5leHQlM0UlM0MlMkZibG9jayUzRSUzQyUyRm5leHQlM0UlM0MlMkZibG9jayUzRSUzQyUyRm5leHQlM0UlM0MlMkZibG9jayUzRSUzQyUyRnN0YXRlbWVudCUzRSUzQyUyRmJsb2NrJTNFJTNDJTJGeG1sJTNF
    

    Screenshot (169).png



  • @ostseereiter sagte:

    setState(".Meine_Geräte.BK"/*BK*/, (Liste.reduce(function(x, y) {return x + y;})));
    

    Ich sehe keine Veränderung bzgl. der ID-Struktur.



  • @iomountain
    Dein Script funktioniert der Fehler war im Datenpunkt stand max.wert 100 den habe ich nun geändert. und siehe da die Ausgabe ist richtig Mein Script funktioniert nicht da wird nur aneinander gereiht. Danke euch allen



  • Nun doch noch nicht ganz gelöst.folgendes es wird ja nun alles wunderbar und richtig errechnet nur die Ausgabe zeigt nach einiger Zeit dies an
    Screenshot (170).png .die nullen nach den Nachkommerstellen .Das passt nicht.


  • Developer

    @ostseereiter Das liegt daran, wie Computer intern mit Gleitkommazahlen rechnen. Der Wert 214,42 ist wohl nicht exakt darstellbar.



  • @ostseereiter sagte:

    den Nachkommerstellen

    Nicht die einzelnen Werte für die Liste runden, sondern das Ergebnis (Summe über die Liste) runden !



  • @AlCalzone sagte in Summenberechnung:

    Das liegt daran, wie Computer intern mit Gleitkommazahlen rechnen. Der Wert 214,42 ist wohl nicht exakt darstellbar.
    Das ist ja auch wieder nicht schön.

    @paul53 sagte in Summenberechnung:

    Nicht die einzelnen Werte für die Liste runden, sondern das Ergebnis (Summe über die Liste) runden !

    Wie stellt man das in Blockli da ?

    Ich versuche das mal so:
    Screenshot (171).png



  • so läuft das Skript auch nicht. Damit erhalte ich dieses Ergebis:
    Screenshot (172).png


Log in to reply
 

Suggested Topics

1.0k
Online

32.1k
Users

38.8k
Topics

525.6k
Posts