We have moved at community.getvera.com

Author Topic: Board for LG 3 Wire  (Read 2925 times)

Offline doinitsideways

  • Jr. Member
  • **
  • Posts: 98
  • Karma: +2/-0
Board for LG 3 Wire
« on: October 15, 2018, 09:30:42 pm »
Hi,

I?ve posted this in HVAC as well, but thought maybe someone here could help me with the below???

My experience with vera is purely plug and play, I?m hoping someone out there might have a read of this article and be interested in trying to get it to work with vera?? I?m happy to purchase the required hardware and assemble it, but I?m lost with any type of coding know-how... even happy to send a little cash for anyone?s help if we can get this to work??

https://www.instructables.com/id/Hacking-an-LG-Ducted-Split-for-Home-Automation/

GitHub link
https://github.com/ahuxtable/LG_Aircon_MQTT_interface

Offline doinitsideways

  • Jr. Member
  • **
  • Posts: 98
  • Karma: +2/-0
Re: Board for LG 3 Wire
« Reply #1 on: October 15, 2018, 09:56:11 pm »
Update from Andrew who created the mqtt hack...

It all really depends. I am not familiar with z-wave or Vera. It all depends on how vera can communicate with connected devices.

I see that you can add a 'custom' device but not further than that - I don't know how 'custom' you can get. Presumably it would give you the ability to generate HTTP requests to a device? If so, then we could use that sort of control somewhat easily but I am not sure how the device could actively update Vera (or does it just poll the device constantly?).

I don't mind helping you out but I can't do all the work - If you can tell me the methods/protocols Vera can use to control the device, we should be able to come up with a method that will work for you.



Offline zedrally

  • Moderator
  • Hero Member
  • *****
  • Posts: 1224
  • Karma: +15/-5
  • Black Cat Control Systems
Re: Board for LG 3 Wire
« Reply #2 on: October 15, 2018, 11:42:50 pm »
Quickly reading the article seems to indicate to me that as they used an Arduino then you would be able to use a ZUNO and have native Z-Wave Integration.....but.....that may depend a lot on how Vera resolves the Command Classes needed.
I dont see any circuit diagrams or schematics to give me a better understanding of what he built so I can't offer any further advice ATM but would like to if anyone can dig them up.
Living in the Land of Oz, give me a vegemite sandwich. Home Seer, Vera Lite & Edge, Popp, Black Cat Smart Hub & Vera G, Black Cat Lite 1 & 2's a Black Cat Dimmer or 2, Fantem Tec and then some  Black Cat Cat's Eye PIR's & Door-Window Sensors, RFXComm, Broadlink RMPro & Mini plus a Z-UNO or 2.

Offline doinitsideways

  • Jr. Member
  • **
  • Posts: 98
  • Karma: +2/-0
Re: Board for LG 3 Wire
« Reply #3 on: October 16, 2018, 04:07:26 am »
Hi zedrally,

This attached picture is on the github link I posted???

Below from him earlier today re Zuno ...



By the looks of it the Z Wave stuff does not look too complicated (based on some code examples I saw from the Zuno). But this is then hindered by the fact that it does not seem to support the low baud rates required on the SoftwareSerial port to communicate with the controller which is only 104bps (https://z-uno.z-wave.me/Reference/Software-Serial/)
The MySensors stuff does help but but if Vera supports direct Wifi or other network protocols/calls it will probably be a more elegant/reliable solution to use an ESP8266 directly on the controller.
If you go the MySensors route, it will probably need to go Vera -> MySensors Gateway Arduino connected to Controller.
I dabbled with some of the MySensors stuff but have not touched it for a long time.
What plugins are available for Vera? MQTT?
« Last Edit: October 16, 2018, 05:23:31 am by doinitsideways »

Offline doinitsideways

  • Jr. Member
  • **
  • Posts: 98
  • Karma: +2/-0
Re: Board for LG 3 Wire
« Reply #4 on: October 17, 2018, 05:38:23 am »
From Zwave.me forum


Z-Uno s/w serial can be extended to this baud rate. But such slow data can also be ruled via digitalWrite directly

Offline elnino

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
Re: Board for LG 3 Wire
« Reply #5 on: October 17, 2018, 06:29:36 pm »
I am Andrew - The author of the Instructable referenced here. I have come here to help out.

If the Z-Uno will go to that low baud rate, then it should be able to run the bulk of the code I have written.  Sure, you can bit bang it but why reinvent the wheel if you don't have to*. All that we would need to do is remove the MQTT stuff and replace it with Z-Wave functions/capability.

However, I know nothing about Z-Wave (or Vera).  From what I can tell, it Z-Wave uses defined data structure 'packets' which should work well in this application if i'm correct (better than MQTT).

If someone can fill me in on how we create the association between Vera and a random Z-Wave product we should be able to suss it.

Is there some sort of object definition we can create?  i.e
Device: AC
Paramater 1 - {binary}
Parameter 2 - {DEC, minX, MaxY}
etc?

*Does anyone have a Z-Uno that can actually TEST this baud rate (104bps)?  My initial tests with the ESP8266 and the standard softwareserial implementation compiled fine but would not actually work.

Edit - This looks like a pretty good start http://z-uno.z-wave.me/examples/Certified10Channels/
« Last Edit: October 17, 2018, 06:40:30 pm by elnino »

Offline doinitsideways

  • Jr. Member
  • **
  • Posts: 98
  • Karma: +2/-0
Re: Board for LG 3 Wire
« Reply #6 on: October 17, 2018, 08:00:30 pm »
Andrew,

I?m going to order the z-uno.

Given I?m a newbie, aside from the z-uno, have you got a list of parts I?d need that I could take to Jaycar to pickup everything else??

Offline Mike Yeager

  • Hero Member
  • *****
  • Posts: 603
  • Karma: +11/-12
Re: Board for LG 3 Wire
« Reply #7 on: October 17, 2018, 08:12:52 pm »
You're going to cost yourself a lot of money and aggravation. Since you admit to not being a proficient coder, you're going to be stabbing in the dark at something you know very little about. If this is one of the ThinQ compatible units, there is a topic in one of the Home Assistant forums concerning controlling it. Looks like they're making pretty good headway...

Offline doinitsideways

  • Jr. Member
  • **
  • Posts: 98
  • Karma: +2/-0
Re: Board for LG 3 Wire
« Reply #8 on: October 17, 2018, 08:25:46 pm »
These units are pre LG ThinQ.

And yes, I?m not a coder, but hopefully there are a few people around who might have the same LG system that could help/input and get it to work...

Offline Mike Yeager

  • Hero Member
  • *****
  • Posts: 603
  • Karma: +11/-12
Re: Board for LG 3 Wire
« Reply #9 on: October 18, 2018, 08:32:31 am »
Ah. Well, in that case, best of luck! Be careful and don't do anything you can't undo...

Offline doinitsideways

  • Jr. Member
  • **
  • Posts: 98
  • Karma: +2/-0
Re: Board for LG 3 Wire
« Reply #10 on: October 19, 2018, 06:05:16 am »
Andrew,

This is apparently the way to set the z-uno down to 104...

https://z-uno.z-wave.me/Reference/Software-Serial/

Josh

Offline doinitsideways

  • Jr. Member
  • **
  • Posts: 98
  • Karma: +2/-0
Re: Board for LG 3 Wire
« Reply #11 on: October 19, 2018, 04:31:15 pm »
From zuno zwave.me forum


I have not tested it, but I don't see any reason not to work. Here https://github.com/Z-Wave-Me/Z-Uno-Core ... Serial.cpp baud is used only to calculate bit_time and it fits in the data type size.

Please try it and if it will not work we will check it. Please use a logical analyser if you have one.

Offline elnino

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
Re: Board for LG 3 Wire
« Reply #12 on: October 21, 2018, 06:48:56 am »
If you want to send me the Z-Uno, I should be able to program it up and board up the interface to at least talk with he LG unit - I have a CNC machine that I can use to make PCbs so it would be a proper solution.  However, I can't test the z-wave unless you have something else you can send me to test it with (or someone else here).  If nothing else, it would give us a good base point that we could then build up the z-wave stuff.

Up to you though, just trying to come up with a workable solution for you.

You should be able to find the parts you need at Jaycar to at least breadboard the interface up but I am not sure if they sell the opto-isolator.

I also have a logic analyser that we can use to test the baud rate but looking at the code for the softwareserial implementation it should work.

FFS: How many posts do I have to get to on this forum before I don't need to answer all the questions before I can post anything!!!???
« Last Edit: October 21, 2018, 06:52:02 am by elnino »

Offline zedrally

  • Moderator
  • Hero Member
  • *****
  • Posts: 1224
  • Karma: +15/-5
  • Black Cat Control Systems
Re: Board for LG 3 Wire
« Reply #13 on: October 21, 2018, 06:13:30 pm »
snip:
FFS: How many posts do I have to get to on this forum before I don't need to answer all the questions before I can post anything!!!???


5 posts, 2 to go....
Living in the Land of Oz, give me a vegemite sandwich. Home Seer, Vera Lite & Edge, Popp, Black Cat Smart Hub & Vera G, Black Cat Lite 1 & 2's a Black Cat Dimmer or 2, Fantem Tec and then some  Black Cat Cat's Eye PIR's & Door-Window Sensors, RFXComm, Broadlink RMPro & Mini plus a Z-UNO or 2.

Offline zedrally

  • Moderator
  • Hero Member
  • *****
  • Posts: 1224
  • Karma: +15/-5
  • Black Cat Control Systems
Re: Board for LG 3 Wire
« Reply #14 on: October 21, 2018, 06:48:34 pm »
I could loan you a Black Cat UZB which is a static controller but you would need to download free software such as Homeseer 930day), OpenHAB etc off the net.
Probably not ideal as Josh is using Vera as a HAC.
Living in the Land of Oz, give me a vegemite sandwich. Home Seer, Vera Lite & Edge, Popp, Black Cat Smart Hub & Vera G, Black Cat Lite 1 & 2's a Black Cat Dimmer or 2, Fantem Tec and then some  Black Cat Cat's Eye PIR's & Door-Window Sensors, RFXComm, Broadlink RMPro & Mini plus a Z-UNO or 2.