yozik04 / nibe

Library for communication with Nibe heatpumps.
GNU General Public License v3.0
46 stars 33 forks source link

Parameters with date values are not handled. #118

Closed elupus closed 11 months ago

elupus commented 11 months ago

We lack parameters for holiday date ranges and the used set values. These also encode a date as part of the numeric value. That seem to be a day offset from "Monday, 1 January 2007".

This is data from nibeuplink for these types of values:

[
  {
    "parameterId": 48043,
    "name": "48043",
    "title": "Holiday",
    "designation": "",
    "unit": "",
    "displayValue": "active",
    "rawValue": 10
  },
  {
    "parameterId": 48044,
    "name": "48044",
    "title": "Holiday",
    "designation": "",
    "unit": "",
    "displayValue": "2023-08-24",
    "rawValue": 6079
  },
  {
    "parameterId": 48045,
    "name": "48045",
    "title": "Holiday",
    "designation": "",
    "unit": "",
    "displayValue": "2023-08-30",
    "rawValue": 6085
  },
  {
    "parameterId": 48047,
    "name": "48047",
    "title": "Holiday",
    "designation": "",
    "unit": "",
    "displayValue": "economy",
    "rawValue": 0
  },
  {
    "parameterId": 48048,
    "name": "48048",
    "title": "Holiday",
    "designation": "",
    "unit": "",
    "displayValue": "speed 2 (30%)",
    "rawValue": 2
  },
  {
    "parameterId": 48051,
    "name": "48051",
    "title": "Holiday",
    "designation": "",
    "unit": "°C",
    "displayValue": "18.0°C",
    "rawValue": 180
  }
]

Also see: https://github.com/elupus/esphome-nibe/issues/37 for reference.