Send TCP Command when HA is Offline #2183
Unanswered
zyankali333
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I have a question and hope maybe there is just a simple Solution but my code Skills are too low for it :D
I have a TCP Server that converts TCP Packets to Modbus and then switchtes Relais, this works great with Node Red here is a little example how this looks in my Node Red:
Since iam not often at home most time only for sleep my mini PC where HA is hosted is Off the most time.
Now i was wondering if it would be possible to send the TCP Packets from the NS Panel when HA is Offline.
I can also trigger the Relais like that via SSH in my Ubuntu PC :
echo -e "\x01\x06\x00\x04\x00\x04\xc9\xc8" | nc 192.168.2.123 501
Now i saw the Documentation and was thinking about something like that :
Since i only need 2 Buttons when HA is off the Hardware Buttons would be perfect, is this Possible to do ? can the NS Panel send something to my Network when HA isnt Online?
And if so how could i change the Customization Code that this would send the TCP ?
If anyone has an idea i would be rly thankfull and sry for my Bad English.
Edit:
I found the Solution with a little Help from Chatgpt, i post it if someone trys to do something similar
Beta Was this translation helpful? Give feedback.
All reactions