Commit Graph

4 Commits (main)

Author SHA1 Message Date
Florian Hotze 52da897b33
`oh-knob` & `oh-stepper`: Add offset functionality (#1875)
Supersedes #1565.

This adds an offset parameter to the knob and stepper components, that
allows to add or subtract a number value to the displayed state of the
component.

This is useful for thermostats which have a fixed temperature of n and
are controlled with an offset to that temperature n, e.g. you have a KNX
HVAC system which has a fixed temperature of 20 °C: -2 would mean the
target temperature is 18 °C, +2 would mean that the target temperature
is 22 °C. By setting the offset parameter to 20, the UI will display the
real target temperature instead of the -2 or 2.

--
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-05-07 14:20:42 +02:00
AndyXMB 184c6dab2f
Component docs (#900)
Signed-off-by: Andrew Black <andrewm.black@outlook.com>
Also-by: Yannick Schaus <github@schaus.net>
2021-03-01 15:42:17 +01:00
Yannick Schaus 5e7c092f55
Add frontmatter to component reference pages (#881)
Regenerate docs.

Signed-off-by: Yannick Schaus <github@schaus.net>
2021-02-05 19:22:23 +01:00
Yannick Schaus ba4d76fe9a
Add generated component reference (#864)
Add a Node.JS script to generate or update Markdown documentation from
the definitions of components. Generate an initial set of pages.

Signed-off-by: Yannick Schaus <github@schaus.net>
2021-02-05 15:16:35 +01:00