jpulakka / nordpool_diff

Transforms electricity spot price into thermostat control signal. Home Assistant custom component.
MIT License
63 stars 7 forks source link

Multiple sensors? #27

Closed xoferz closed 10 months ago

xoferz commented 10 months ago

Is it possible to create multiple sensors with different parameters?

jpulakka commented 10 months ago

Yes it is, as mentioned in https://github.com/jpulakka/nordpool_diff#filter-type-triangle-and-rectangle

You can set up several nordpool_diff entities, each with different parameters

So just add several entities such as

sensor:
  - platform: nordpool_diff
    filter_length: 10
  - platform: nordpool_diff
    filter_length: 15
  - platform: nordpool_diff
    filter_length: 10
    filter_type: triangle
    normalize: max_min_sqrt_max
    etc.