I’ve tinkered with what is in the quotes, trying all combinations of things I’m able to send via Putty telnet session and the testing software but am not getting a result. Here is how I do use echo with netcat for sending both TCP and UDP syslog messages. Zone2_on: echo -e “\x3a\x5a\x32\x31\x0d” | nc 192.168.1.114 4999 You may have to refresh your shell such as source /.bashrc for the. With telnet only :Z21 works, carriage return is likely provided by the pressing enter. The itach comes with testing software and I can successfully send the command through that with various formats depending on the settings in that software of raw, mixed or hex. I have the commands and with a putty telnet connection I can send :Z21 as the zone 2 on command without issue. I’d like to have a button card with 4 buttons for each zone: power on, off, vol , and vol. I’ve tried the suggestion shown here with various tweaks but no luck. I can use Putty to connect to the ip2sl and send commands that are recognized. I currently control it with a phone app called Irule and a global cache ip2sl device that takes TCP/IP commands and sends serial commands to the Sonance. I’m really struggling with my integration of a Sonance 6 zone whole home audio amp. You just have to specify the path to the nc file in the *.sh script.Įxample: echo -e “\x02\x33\x30\x33\x30\x33\x30\x33\x30\x38\x30\x31\x41\x03” | /config/nc 192.168.1.XXX 2000Īll you have to do then is make a boolean switch and make setting it to “on” call the fireplace_on.sh script and setting it to “off” make it call the fireplace_off.sh script. The on script sends a byte sequence to an ip address and a port with netcat. One script for turning the fireplace on and one for turning it off. In my case i created a shell_command in my config file which calls two *.sh scripts Then you can call netcat from the HA container. Then copy that file to /config/ and rename it to “nc” What you need to do is download a static binary for netcat from this location: To send raw ip packet data to any device in your network all you need to do is the following: I finally found a working solution for this problem on HASSIO (or the new HA)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |