I have a simple Number Item in openHAB that stores the local outdoor temperature. I would like to compare it to a fixed number. I thought I’d be able to do the following:
But unfortunately the Maths block containing the “5” won’t fit into the space - it keeps popping out.
A workaround is to use a variable:
Or, to use a Text block, which feels wrong!
Presumably this is by design, and we’ll never allow a Maths number into that space?
I’m trying to use Blockly as if I was an absolute beginner, which I think is who this is intended for (after the rule templates). It seems like a strange quirk that we’re exposing to these beginners.
I opened up this issue quite a time ago when I wasn’t developing blockly myself and later when I joined the development I started to investigate my own filed issue because my intention was to solve the issue during the development of the new blocks - but as always things are not easy as they seem…
Please read what I learned in my own comment and also the reference I did there where Yannick also shared his insights.