LowPowerLab Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Blog
Shop
Help
Search
Login
Register
LowPowerLab Forum
»
Software support
»
Pi Gateway
»
Node-Red Serial Node + Pi Gateway Sketch = Awesome!
Print
Pages: [
1
]
Author
Topic: Node-Red Serial Node + Pi Gateway Sketch = Awesome! (Read 1292 times)
noch
NewMember
Posts: 20
Country:
Node-Red Serial Node + Pi Gateway Sketch = Awesome!
«
on:
August 05, 2020, 08:41:52 PM »
Not sure if this has been covered before so wanted to share. I have been running a python script for years that reads a Moteino with the pi-gateway sketch and publishes events over MQTT. I was sending these to HomeAssistant and using the Node-Red plug within HA. This worked fine but there were a lot of moving parts and I have ended up starting over many times throughout the years.
I wanted to find something more simplistic so I started with installing Node-Red directly on a new Pi4. Turns out its really simple to read the Moteino data directly. There is a "Serial" node that intuitively reads and writes to a serial port. No more sending data all over the place with many points of failure. I personally like the visual of the automatons as well. It make troubleshooting much easier for me.
I attached a screenshot of some of the logic.
Logged
hickse
NewMember
Posts: 8
Re: Node-Red Serial Node + Pi Gateway Sketch = Awesome!
«
Reply #1 on:
June 12, 2021, 11:11:57 AM »
Hi, Can you share your flow? I can't get the serial in node to the 'connected' state. I get the following error:
"[serialconfig:8a4e8a68.af71b8] serial port /dev/ttyAMA0 error: Error: Error Resource temporarily unavailable Cannot lock port"
Logged
Print
Pages: [
1
]
LowPowerLab Forum
»
Software support
»
Pi Gateway
»
Node-Red Serial Node + Pi Gateway Sketch = Awesome!