# Converting Blockly to Node Red

**URL:** <https://discourse.nodered.org/t/converting-blockly-to-node-red/87249>\
**Category:** General\
**Created:** [15 April 2024 11:34 UTC](https://discourse.nodered.org/t/converting-blockly-to-node-red/87249 "2024-04-15T11:34:25Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![dodo](https://avatars.discourse-cdn.com/v4/letter/d/76d3ee/32.png) [@dodo](https://discourse.nodered.org/u/dodo)\
**Post date:** [15 April 2024 11:34 UTC](https://discourse.nodered.org/t/converting-blockly-to-node-red/87249/1 "2024-04-15T11:34:25Z")

</div>

Hello,

I´m was using the folowing Blockly script with great success for the last year in my home automation system "iobroker".  
Then I switch to a new automation system "Home Assistant" and unfortunately Blockly is not available there.

 ![blockly](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/9/b9a523cbba4a9b4a849c1ccd3fbd6b6c12154c07.gif)

The whole idea can be found here : [Warmwasser und Photovoltaik mit Blockly](https://forum.iobroker.net/topic/65245/warmwasser-und-photovoltaik-mit-blockly/16?_=1713172125491)

I started using Node Red but found a lot of “proper” nodes missing ☹

I do believe the whole structure must be changed…

Any ideas how to approch this task?

Regards Dom

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [15 April 2024 11:56 UTC](https://discourse.nodered.org/t/converting-blockly-to-node-red/87249/2 "2024-04-15T11:56:49Z")

</div>

> [@dodo](#):
>
> Then I switch to a new automation system "Home Assistant" and unfortunately Blockly is not available there.

there is a blockly contrib (add-in) node that you can install in the palette manager.

> [@dodo](#):
>
> I started using Node Red but found a lot of “proper” nodes missing

what "proper" nodes are missing?

> [@dodo](#):
>
> Any ideas how to approch this task?

Redo it in standard nodes (not a lot of folk use blockly (excpet perhaps @cymplecy))

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [15 April 2024 12:06 UTC](https://discourse.nodered.org/t/converting-blockly-to-node-red/87249/3 "2024-04-15T12:06:09Z")

</div>

Can you switch your Blocky script to English and post it again please and I'll see if it's easy to convert to the NodeRED version

---

<div class="post-metadata">

**Author:** ![dodo](https://avatars.discourse-cdn.com/v4/letter/d/76d3ee/32.png) [@dodo](https://discourse.nodered.org/u/dodo)\
**Post date:** [16 April 2024 07:04 UTC](https://discourse.nodered.org/t/converting-blockly-to-node-red/87249/4 "2024-04-16T07:04:19Z")

</div>

Hi cymplecy,

the server is not operational and thus I can´t change anything there.  
But I made translations in the picture and will explain whats going on.

 ![explanation](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/9/199c086ea8049a4140d8ca5eb97766cab8f940b2.jpeg)

In loop  
SET value of heater equal to value of switch (ON/OFF).  
If status of Solar Power changed by anything DO  
IF Time (7-17) and Batterycharge (\>50%) are within the limits DO  
If Solar Power \> 2000Watt DO turn heater ON  
ELSIFSolarPower \<1000 DO Turn heater OFF  
ELSIF(17-7) and Battercharge (\<50%) DO turn heater OFF  
THEN  
IF value of heater unequal value of switch DO SET value of switch to value of heater.

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [16 April 2024 07:23 UTC](https://discourse.nodered.org/t/converting-blockly-to-node-red/87249/5 "2024-04-16T07:23:09Z")

</div>

I think ioBroker way of doing things and NodeRED way are very different and you will have to start again from the beginning ☹

I think you would be better off asking questions on a Home Assistant forum in order to get started

Sorry ☹

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [15 July 2024 07:23 UTC](https://discourse.nodered.org/t/converting-blockly-to-node-red/87249/6 "2024-07-15T07:23:34Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
