Forum Replies Created

Viewing 15 posts - 1 through 15 (of 23 total)
  • Author
    Posts
  • in reply to: Apple's homekit – control light using siri #19225
     rhamnett says:

    rhamnett
    Participant

    I can get the lights to turn on and off now with my changes. You should apply them to your git repo (it shouldn’t change the dimmer functionality at all.

    Siri still gets totally confused about which rooms to turn lights on and off with. I cannot name multiple devices “light” either.

    in reply to: Apple's homekit – control light using siri #19187
     rhamnett says:

    rhamnett
    Participant

    String comparators should probably be triple equals ===

    in reply to: Apple's homekit – control light using siri #19186
     rhamnett says:

    rhamnett
    Participant

    I’ve fixed two things in accessories/LightwaveRF_accessories.js

    Identifying the type so that it sets the power to “on” not “100″ for switches not dimmers (this allows it to turn on properly)


    var executePower = function(room,accessory,value,type){
    var cmd = "lightwaverf \'" + room + "\' \'" + accessory + "\' ";
    if(value == true) {
    if(type == 'O') {
    cmd += 'on';
    }else{
    cmd += getBrightness(room + accessory);
    }
    }
    else{
    cmd += "off";
    }
    console.log("executePower: " + cmd);

    lightwaveRFController.exec(cmd);
    }

    var executeBrightness = function(room,accessory,value, type){
    if(type == 'D') {
    var cmd = "lightwaverf \'" + room + "\' \'" + accessory + "\' ";
    cmd += value;
    console.log("executeBrigtness: " + cmd);

    setBrightness(room + accessory, value);

    lightwaveRFController.exec(cmd);
    }
    }

    Then at the bottom of the definitions add type as a parameter to the execute method calls:

    cType: types.POWER_STATE_CTYPE,
    onUpdate: function(value) { console.log("Change:",value); executePower(room, name, value, type); },

    cType: types.BRIGHTNESS_CTYPE,
    onUpdate: function(value) { console.log("Change:",value); executeBrightness(room, name, value, type); },

    in reply to: Apple's homekit – control light using siri #19180
     rhamnett says:

    rhamnett
    Participant

    Hi Roy, I’ve got the HAP server working with BridgedCore.js and can add all my devices.

    However I have the same issue where asking to turn on a specific device turns on all the devices. Would really like to get this working and am happy to debug but need you to suggest somewhere I should start.

    Thanks

    Richard

    in reply to: Apple's homekit – control light using siri #17511
     rhamnett says:

    rhamnett
    Participant

    Yeah its creating the controller file now not sure what was happening.

    Problem is, after the first time it loses connection I cannot get it to reconnect (devices stay red) and until I re-pair the device and start again it will not go green. I’m too busy at work to be able to do any debugging at the moment so afraid it will just have to wait.

    You mentioned that your connection drops and you have to restart PHK do you have to recreate the devices/repair? Or does it just all automatically connect back up?

    Richard

    in reply to: Apple's homekit – control light using siri #17490
     rhamnett says:

    rhamnett
    Participant

    Thanks Roy,

    I deleted the “controller” keys file and did a make clean; make all; ./PHK

    Now I deleted the “Home” from within the app and recreated a “Home” then re-added the accessory. The rooms were green but the controller config file does not get created in the specified directory (where it was created before). Do you know why this would be?

    Many thanks again,

    Richard

    in reply to: Apple's homekit – control light using siri #17465
     rhamnett says:

    rhamnett
    Participant

    rooi, thanks … yes I seem to have to restart PHK every now and again.

    It’s a bit annoying as when it restarts, it turns all my devices to the OFF state so that it can synchronise.

    Richard

    in reply to: Apple's homekit – control light using siri #17431
     rhamnett says:

    rhamnett
    Participant

    Do your accessories sometimes all list in colour RED? Mine were green but now are only showing RED and will not respond to commands. No clue what I have done differently for that to happen.

    in reply to: Apple's homekit – control light using siri #17427
     rhamnett says:

    rhamnett
    Participant

    Thanks, that is what I did try (using the default code of 523-12-643 but it did not work.

    I have just re-launched everything and tried it again and it worked!

    I have successfully turned on a light.

    Now the final part is if you would be so kind as to explain what words to speak to Siri in order to get him to turn on a light and set brightness

    Great work!

    in reply to: Apple's homekit – control light using siri #17423
     rhamnett says:

    rhamnett
    Participant

    Fixed that by signing in and out of icloud as it said.

    Now I can get to add a home device.

    When i go to add the accessory, it shows up as “HomeKit-Bridge”. After tapping it it asks to enter the code for “HomeKit-Bridge”. Where would I understand what the “code” is?

    Thanks again!

    in reply to: Apple's homekit – control light using siri #17422
     rhamnett says:

    rhamnett
    Participant

    So is it like below?

    ====
    my@email.com
    password
    ====

    Also I have got the app compiled, healthkit accepted in xcode (using developer licence) and i can execute the app on the physical device Iphone 6 but I get an error after asking to name the house:

    “For iOS < 8.1, there is a issue syncing with CloudKit that may causes HomeKit database locked up. Currently there is no known reliable workaround on this issue, Sign out and sign in iCloud sometime may resolve this issue"

    Have you had this?

    Thanks

    in reply to: Apple's homekit – control light using siri #17420
     rhamnett says:

    rhamnett
    Participant

    What format does the file expect?

    in reply to: Apple's homekit – control light using siri #17419
     rhamnett says:

    rhamnett
    Participant

    Roy, thanks for the reply.

    I was using the wrong branch, should have checked out dynamic.

    in reply to: Apple's homekit – control light using siri #17417
     rhamnett says:

    rhamnett
    Participant

    Ahh I had missed that I had to run the ./PHK executable.

    in reply to: Apple's homekit – control light using siri #17416
     rhamnett says:

    rhamnett
    Participant

    Hi im also trying to get this to work, a few questions:

    What file should I hard code the lightwave login details in?

    I have compiled successfully the two projects: PersonalHomekit and Homekit-Demo

    I can run HomeKit-Demo in the emulator but I am unsure as to how to load/incorporate the files compiled in PersonalHomekit?

    Some more detailed explanation would be very helpful. I will reciprocate by improving the codebase.

Viewing 15 posts - 1 through 15 (of 23 total)