Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


codowd

Member
  • Posts

    46
  • Joined

  • Last visited

About codowd

Profile information

  • Country
    Sydney. Australia
  • Gateway/s
    Home Center 2

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

codowd's Achievements

Learner

Learner (2/8)

7

Reputation

  1. I cannot get this to work with the new Daikin units that use https. They do not use the security features of https so it should be easy but the coding is beyond me. I can Google how to do this in other home automation software (the one that has the initials HA for example) but when I try to code this in LUA I get no response from the unit. I know HC has very flaky https implementation, it only works in scenes and then not always. I assume this is the problem... Anyone got any hints or tips? I have already posted my code in this thread:
  2. Indeed, thank you. The global variable is being set to "ERROR: Operation canceled". Trying to get the simpler HTTP call working, I do (rarely) see the red error message in the debug window. if I change "POST" to "PUT" I get a different error "End of file". and it always shows. I never see the debug message with the HTTPS call.
  3. Hi I'm updating the Daikin air conditioner VD to support thenew model wifi interface (Model BRP072C42), which use https rather than http to connect. I have found (and greatly cleaned up) the existing Daikin VD on this forum. Now i am trying to add support for the https interface. I understand this will need the https request to be handled by a scene. The VD will submit the request via a global variable and receive the results similarly. A sample request, which works using curl is as follows: curl --insecure -H "X-Daikin-uuid: 7b9c9a47c9c64ee19063848e67cc23edf" -v "https://10.100.100.99/aircon/get_model_info" This doesn't appear to use any security (user, password) so will the following code work: --[[ %% properties %% weather %% events %% globals x_Daikin_htpps --]] -- when the value in x_Daikin_htpps changes then this code gets run -- Message() function function Message(color, text) if color and color ~= "" then fibaro:debug('<span style="color:'..color..';">'..(text or '<i>nil</i>')..'</span>') else fibaro:debug(text or '<i>nil</i>') end end function httpResponse(response) if (response.status == 200) then Message("green","success: "..response.data); else Message("yellow","Request rejected: " .. response.status); Message("yellow"," reported error: " .. response.data); end fibaro:setGlobal('x_Daikin_response', json.encode(response)); end; function httpError(error) Message("red", 'ERROR: '..error) fibaro:setGlobal('x_Daikin_response', "ERROR: "..error); end; local url = fibaro:getGlobal('x_Daikin_https') --local url = "https://192.168.1.41/aircon/get_model_info" --local url = "http://192.168.1.11/aircon/get_model_info" Message("grey","URL: "..url) local uuid = fibaro:getGlobal('x_Daikin_uuid') --local uuid = "81035024560123456789" Message("grey","UUID: "..uuid) local selfhttp = net.HTTPClient() selfhttp:request(url, { success = httpResp, error = httpError, options = { header = {["X-Daikin-uuid"] = '"'..uuid..'"'}, method = 'POST', timeout = 5000, checkCertificate = false, data = json.encode({strict=true}) } }) Sadly this code works but produces no output from the HTTPS request call, and even if I overwrite the url to the HTTP request shown (commented out) in the code, which produces a valid response in my web browser. Obviously I will upload the finished VD and scene when done.
  4. The point about plugins is that they are integrated with the system. Virtual devices are just a kludge. There is a certain other forum where you can download a "virtual sensor" and "virtual switch" plugins. These no longer work, of course, but when they did I could code my Daikin air conditioner's TCP/IP interface so that the thermostat appeared as a thermostat and the heat and cool functions appeared as switches. These then integrated with the HC2 heating and cooling panels. The coding was altogether simple. VD's are not simple and have no real application in the system, and the coding is inefficient and quite hard. I am not going to whip out my iPhone, open an app, wait patiently for it to load and connect, navigate 4 screens and press a "Cool" button. Yes I can do more limited automation by creating a scene that monitors the thermostat and then presses the button, but why force me into this when there is a panel already sitting there, completely useless??? Another example? Look at the complexity of scenes like Sankotronic's amazing Main Scene - it is replicating functionality that should be right there out of the box. You need a degree in LUA coding just to figure out the code. This is what needs to be fixed before you can take Home Automation seriously. Everything should be a plugin, and connect out of the box. That was the original promise of HC2 which was betrayed by some stupid decisions.
  5. Support for Daikin Wifi is available on this forum. No need for IR devices. I wish Fibaro would bring out a plugin though, since one has been available for several years...
  6. This. I have had to hand-code and buy other controllers (skaro automation-bridge) to get support for devices in my home thanks to Fibaro deciding to not support 3rd party plugins and stop developing their own. Sonos, Harmony Remote, Daikin air conditioners, intercoms, Lifx lights, Hue, Alexa etc. etc.the list goes on. Fibaro - I want home automation, not just to turn some lights on and off (I could do that in 1978 using X10).
  7. Hoping someone can give me a steer here. I have a light on a Fibaro Dimmer (S1) and I have associated S2 on this dimmer to a Fibaro RGBW module. S1 and S2 on the Dimmer 2 are physically wired to a wall plate. Switch S1 works just as expected. Also on the Web UI switch S2 works as expected. However Physical switch S2 does not work - no action whatever. Nothing recorded in the Fibaro event log. Now I know the physical wiring is OK - when I turn on Parameter 29 on the Dimmer 2 to switch S1 and S2 then the behaviour is replicated on the opposite switch. What am I missing?
  8. For the same price as 2 Global Cache iTach's you can buy an automationBridge from skarotech.com.au and take advantage of their plugin for the Harmony Hub (they also have a plugin for the iTach, as it happens). Along with LIFX, Hue and a bunch of other non-Zwave devices. This device is fast becoming the answer to the non-availability of third party plugins in HC2. It works like a dream and gets frequent additions and updates. The Harmony works brilliantly, BTW, and I will have to sell my 2 iTachs, which are much more of a pain to program.
  9. You can upload using an interface called Postman and instructions on a certain french forum I'm probably not allowed to mention. It also has some interesting plugins. BUT... you lose your installed plugins when you update Fibaro HC2 - which since it happens every 2 weeks or so is a big drawback... It is interesting that Fibaro apparently won't let us accept the risks at our own cost. I would be willing. Also compare how many useless non-working plugins there are because Fibaro cannot keep them updated. Also look at (say) Homey and see how many apps there are...
  10. I would like virtual devices to be recognised as switches in the system - This could be a property (along with TCP Port and IP Address "Recognise as switch" + a checkbox). That would allow a VD to be linked with a thermostat and used with heating/cooling panels. Handy if you have (say) Wifi switches for your heaters. Also an option for a virtual sensor (a dropdown allowing selection of which sensor type: temperature, humidity etc.). Handy if you have (for example) an AC system supported through e.g. Wifi. At the moment this cannot be used with heating/cooling/humidity panels. Alternatively add virtual switch/virtual sensor to the available plugins. But I think VDs already exist so its easier.
  11. I have this problem - had 4 of these in a normal size living room, each operating 1 light. Had a scene that turned the lights on. Essentially a random number of lights come on - eventually (over a few weeks) all the lights stop responding. Factory reset and add back to HC2, repeat yada yada. Solved my problem by adding one of the previous generation Aeon switches - this seems to be able to connect with the Gen 6 switches okay. But they can't connect to each other or even to the HC2 over modest distances (4-5 metres). The distance you get appears to be essentially random for each device, but consistent for that particular device. I have one that consistently is recognised at 30cm but fails beyond that. One of the switches will not respond even if only centimetres from the HC2, though it will join the network successfully, it never turns off or on remotely. The result is that in real world usage they eventually they end up as dead nodes. Piece of crap, in other words. Which is a pity because they ARE pretty.
  12. I have a Fingbox, it has excellent presence detection capabilities. The main benefit is it racts quickly to people arrigin home, is not fooled by e.g. iPhones going asleep for long periods, and does not require static IDs. You associate MAC addresses with users. It has also just been updated to support IFTTT. I plan to test a Fibaro presence monitor using this over the weekend.
  13. The automationbridge from skaro is much more professional than a "home-rolled" Pi with habridge etc. It works seamlessly with Alexa and Homekit. Haven't checked out Google Home yet but this should work too. Updates are frequent and the additional plugins are surprisingly useful. I was able to get my Lifx bulbs, Sonos and now Global iTach devices all working with Fibaro with just a few clicks. It would have taken forever if I had to assemble the bits and pieces from here. Admittedly there's a cost to consider. The saving in time makes up for it straight away.
  14. 1. Buy a Vera 2. Set up the Vera independently and add the plugins you need - in my case the Daikin plugin, plus the RFXTRX433E for some old sensors I have. 3. NOTE I am not adding any actual Z-Wave devices or scenes to the Vera, just the add-ins needed to operate plugins etc. 4. In the Vera, disable the option to "Automatically configure devices" 5. In the HC2, add a secondary controller. Configuration - ZWave Network - Add secondary controller. 6. Put the Vera in learn mode and it should be added to the HC2. 7. ZWave devices on the HC2 will be transferred to the Vera. 8. Ignore this as it is not really usable (new devices will not transfer, device node IDs are not the same etc.). In other words, adopt the principle of always manipulating ZWave devices from the HC2. You will send the HC2 device ID in these commands. 9. Use Vera to trigger scenes or send device command to the HC2 using HTTP interface. Do this by creating scenes or triggers in the Vera. This is what works for me. There are a million plugins available for Vera, some of which actually work ;). But there is an enthusiastic developer community over on forum.micasaverde.com to help.
  15. You can buy the Lockwood/Yale Zwave module (AU/NZ frequency) separately in New Zealand. Search the web/eBay. There is definitely one online re-seller but sadly I can’t remember the URL. Careful, as there are two separate US modules and lock systems but the AU/NZ version is only for the first US one (I think the same as the pic you posted). The more up-to-date locks from the US (the version without the keyhole) takes the second module type which is not available yet for AU/NZ.
×
×
  • Create New...