8 votes
Accepted

Controlling normal bulbs brightness using Sonoff devices

No, you can't do that using Sonoff since it is an on-off switch with relay. You need an Triac to do that. Normally the brightness control applications for AC will be done through Triac by changing ...
user avatar
  • 196
5 votes

Does Node-Red support multi-request flows (i.e. sessions)?

Short answer is yes, at least according this feature request: Define convention for 'stateful' sessions #63 This request is closed with a commit stating that a web socket node is added, which is ...
user avatar
  • 4,301
5 votes
Accepted

How to add payload to a posted MQTT topic?

The payload comes from the incoming message. It does not make sense to define a static payload in the MQTT-out node. The entry in the node-settings is just a mouse over label for the input, since ...
user avatar
  • 12k
4 votes

Controlling normal bulbs brightness using Sonoff devices

No, most Sonoff devices are just remote controlled relays, they can only turn the power on or off. You can not use them to dim lights.
user avatar
  • 12k
4 votes
Accepted

node-red - Replicating message flows per MQTT subscribing client

You need to look at the Node-RED Admin API, this will allow you to retrieve the current flow, you can then manipulate it and push an updated version back to the runtime. Flows are represented as JSON ...
user avatar
  • 12k
4 votes
Accepted

node-red - node.error does not stop flow sometimes

From the documentation: If the error is one that a user of the node may want to handle for themselves, the function should be called with the original message (or an empty message if this is an Input ...
user avatar
  • 156
3 votes
Accepted

Custom sensor readings with Amazon Alexa

Alexa does not have any device types that support humidity at the moment, so this is not possible using the Smart Home Skills.1 Here is the list of device types and their capabilities. You could ...
user avatar
  • 12k
3 votes
Accepted

Does Node-Red support multi-request flows (i.e. sessions)?

The answer is no and yes. Flows in node-red are pretty static, there is no notion of instantiating a flow when the first requests comes in such that you might have an instance of a flow per request. ...
user avatar
  • 211
2 votes
Accepted

node-red - Metrics display with pm2?

You have edited the wrong settings.js file. The version in the node_modules/node-red directory is the template that gets copied to the User directory when Node-RED is started for the very first time. ...
user avatar
  • 12k
2 votes
Accepted

node-red - Units of work

It's worth remembering that everything in the NodeJS world is asynchronous which means nothing blocks the event loop. In this case it sounds like you get the first incoming message, which you store ...
user avatar
  • 12k
1 vote
Accepted

Cloud mqtt broker

Indeed you can! Regarding what you are most comfortable with you can use different technology as a broker. For instance you can use : https://mosquitto.org/ Which is a well know opensource mqtt ...
user avatar
  • 463
1 vote

Custom sensor readings with Amazon Alexa

Finally, I was able to achieve my target to be able to query Alexa for custom sensor readings without the need to program my own skill. The following elements are used in my setup: A Raspberry ...
user avatar
  • 570
1 vote

Building a special effects rig

If I were you I'll do the following : Pick a master that will be in charge of asking for information to the other Pick a slave you're familiar with, they will be in charge of responding the master ...
user avatar
  • 463
1 vote

Building a special effects rig

I would make many wifi modules. Then you can use a variety of higher-level tools like node-red to quickly sequence complex actions and reactions. Wire an ESP8266 to all the things, and give each a ...
user avatar
  • 275
1 vote

Controlling normal bulbs brightness using Sonoff devices

There are devices made specially for dimming using only on-off impulses to set the brightness. A common pattern is to use a short on/off signal for on/off, and a longer on/off signal to increase ...
user avatar
  • 119

Only top scored, non community-wiki answers of a minimum length are eligible