windkh / node-red-contrib-grohe-sense

Grohe sense/guard nodes for node-red.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Get latest measurement data (not aggregated)

rirac opened this issue · comments

commented

Hello,

could you please implement /details endpoint into your module? I.e.:

let url = apiUrl + '/locations/' + locationId + '/rooms/' + roomId + '/appliances/' + applianceId + '/details';

It provides interesting data from latest measurement of flowrate, pressure, temperature and withdrawals, which are not aggregated in time:

{

    ...


    },
    "data_latest": {
        "average_monthly_consumption": 12663,
        "daily_cost": 0,
        "average_daily_consumption": 422,
        "daily_consumption": 106,
        "withdrawals": {
            "starttime": "2023-11-14T10:43:55.000+01:00",
            "stoptime": "2023-11-14T10:43:56.000+01:00",
            "waterconsumption": 0.1,
            "maxflowrate": 3.7
        },
        "measurement": {
            "flowrate": 0,
            "pressure": 3.8,
            "temperature_guard": 18,
            "timestamp": "2023-11-14T10:30:16.000+01:00"
        }
    },
    "notifications": []
}

Thanks!

Yes that should not be a problem