This question was asked here by the guy who’s developing a whole bunch of openHAB specific blocks for Blockly, but I couldn’t see an immediate answer…
Actually, found an answer