#So I decided to rework my HA instance

1 messages · Page 1 of 1 (latest)

forest flame
#

Now, I can see a lots of improvements here - turning on only if it isn't already turned on, and turning off only if it was turned on by this flow (I assume I will use flow context for this). Or parameterizing values that turn on or off (right now it's +8 for on, and +3 for off).

#

But I decided to ask if this is considered, let's say, node-ic (in a sense in which code can by pythonic), or would someone seasoned in node-red do things differently?

#

Since I'm still learning I also welcome suggestions on resources that cover basic concepts. For instance, I'm struggling now with how to take two sources of information, wait on their values and then do something - in rxjs (or rather RxSwift) parlance, that would be combineLatest operator. Right now I'm doing that in a function node, and manually store each source last emit in a node context, but there's probably a more simple way.

#

That will actually then help me out with figuring how to take current fan state into the decision to turn the fan on or off.

forest flame
#

Evolved it a bit.

forest flame
#

A-ha! Join node should be of help here.