Jump to content
alanchow

Chowmain - Generic TCP Command Driver

Recommended Posts

1 hour ago, jfh said:

I want to issue a telnet command to a device that does not require login.  Can I use this driver to do it?  If so, how?

If its a singular command upon sending it as a TCP command will be fine.  Just end it with \r\n

Share this post


Link to post
Share on other sites

On 7/14/2020 at 6:47 PM, zaphod said:

Ok, first feature request on the incoming http get.  Would it be possible to pass parameters?  It would be great to be able to pass numeric , text or boolean values into C4, as in:

http://192.168.1.12:52690/OfficeOn?level=92
http://192.168.1.12:52690/SetVolume?level=32
http://192.168.1.12:52690/TeslaChargeStatus?status=charging

Obviously you would want to then be able to use these values in C4, presumably as a variable.

 

I have just started using this driver and seems very impressive.  Did anything come of this feature request? Would certainly reduce the amount of programming I need to do.  If not, I am thinking of multiple commands inside a short period to reduce the programming load.

Share this post


Link to post
Share on other sites

There is a way to do this if you have the Homebridge driver by @Joshua Pressnell.  Homebridge creates a web API of a sort on port 8070. So the command http://192.168.1.12:8070/38/level/22 will set the level to 22 on device 38 for my controller which is at 192.168.1.12.  Here is the JSON info for this device from the Homebridge driver Lua screen:

{
  "accessory":"Control4",
  "name":"Office Pots",
  "service":"Dimmer",
  "base_url":"http://192.168.1.12:8070/38",
  "has_level_control":"yes",
  "switchHandling":"realtime",
  "brightnessHandling":"realtime",
  "refresh_interval":900000,
  "manufacturer":"Control4",
  "model":"ldz-101-w"
},

Also http://192.168.1.12:8070/38/on or http://192.168.1.12:8070/38/off will turn the dimmer on and off.

The main purpose of the Homebridge driver also allows you to control C4 devices from Apple Homekit, including Siri.

Share this post


Link to post
Share on other sites

Has anyone got any experience with modbus TCP? I am wanting to change register 2703 on unit 100 at IP address 192.168.0.27 to, say, 200.  This is a Victron setup which allows communication via modbus TCP (which I had never heard of until a few weeks ago).  The register is writeable...

I would assume that this driver would allow me to do this? Does anyone know what I would enter into this driver and would I need more information?

I have not got very far investigating via google!

Share this post


Link to post
Share on other sites
11 hours ago, South Africa C4 user said:

Has anyone got any experience with modbus TCP? I am wanting to change register 2703 on unit 100 at IP address 192.168.0.27 to, say, 200.  This is a Victron setup which allows communication via modbus TCP (which I had never heard of until a few weeks ago).  The register is writeable...

I would assume that this driver would allow me to do this? Does anyone know what I would enter into this driver and would I need more information?

I have not got very far investigating via google!

Try these http://www.yatundev.eu/drivers/modbus-rtu-driver-control4 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...