Needs some assistance as a Homeseer Refugee…
A critical part of my HS system is integration with my older QMotion shade control. The plug-in I had been using was no longer supported and there was no easy transition path to HS4 and my venture into HA
I have thus far been unable to really figure out how to get HA to make a call to my shade controller. The controller itself is a serial device connected to Ethernet by an old Lantronix box to do the TCP/IP to Serial conversion. I need to send C-escaped hex commands to the Lantronix via IP and port.
# SHADE 25% \x01\x07\x00\x05\x01\x01\x0B\x00\xF6 # SHADE 50% \x01\x07\x00\x05\x01\x01\x09\x00\xF4 # SHADE 75% \x01\x07\x00\x05\x01\x01\x07\x00\xFA # SHADE DOWN \x01\x07\x00\x05\x01\x01\x02\x00\xFF # SHADE UP \x01\x07\x00\x05\x01\x01\x01\x00\xFC
I’d love to be able to send these to the shade, I’m happy to start simply with up and down (i.e. open and close) but for the life of me I have no idea where to begin to make this work in HA. The commands must be C-escaped and sent to a IP and Port (192.168.0.100 : 10001 for example). Any help here would be welcome!
This is what I’ve tried thus far based on what I’ve been able to find searching the forums…
- platform: command_line switches: master_suite_blackout: command_on: ech -e "\x01\x07\x00\x05\x01\x01\x01\x00\xFC" | nc 192.168.0.100 10001 command_off: ech -e "\x01\x07\x00\x05\x01\x01\x02\x00\xFF" | nc 192.168.0.100 10001 friendly_name: Master Suite Blackout
I’ve also added a x0D to the end of the string as well and get nothing. I tried to sniff using Wireshark to see what the difference in the end results were and can’t catch the packets from either HS or HA, so I’m at a bit of a loss.