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 ...
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 ...
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 ...
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.
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 ...
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 ...
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 ...
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.
...
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.
...
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 ...
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 ...
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 ...
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
...
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 ...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
node-red × 16mqtt × 7
raspberry-pi × 3
sensors × 2
home-assistant × 2
azure × 2
visualization × 2
smart-home × 1
alexa × 1
esp8266 × 1
arduino × 1
aws-iot × 1
smart-plugs × 1
system-architecture × 1
smart-lights × 1
lighting × 1
software × 1
cloud-computing × 1
sonoff × 1
publish-subscriber × 1
monitoring × 1
openhab × 1
gpio × 1
nodejs × 1
deployment × 1