App not supported for Homey v2.x

Issue #35 resolved
Olof created an issue

I'm running Homey v2.0, but with this version, it is not possible to install this app because it is not compatible. Is it possible to update the app so it will run on v2?

Thanks already, Olof

Comments (19)

  1. Terry Hendrix

    I've stopped development on the App for now. Feel free to make a Pull Request to this repository.

  2. Jack Hiddes

    +1 ;-) Would love to help but i'm not a developer. Perhaps Homey developers are willing to help? This will directly solve their problem with built-in home/away presence.

    Anyone willing to help Terry with making SmartPresence great again?

  3. Terry Hendrix

    It would be great if Athom made this method build-in. But I don't think they want it, it's been out there for a while.

  4. Jack Hiddes

    Home/away detection worked awesome with your app! Hope someone is willing to help get it working on v2 again. *hashisfingerscrossed

  5. Jack Hiddes

    The solution (for now) to be able to use Smart Presence again on Homey v2.0 !

    I have found some usefull information on the internet and created a manual.

    You can find the manual here

    Hope this helps for now! Best would be that someone could create a new version of the app here and upload it into the Homey app-store.

    Cheers

  6. Bas van den Bosch

    Upping the compatibility is not eough. The app is still written in sdk-v1 and not in sdk-v2. If you only up the compatibility, the app will crash after adding a device but will work after a restart. With help on Slack I created a workaround, if Terry can give me rights, I'll up the PR. However, I don't know if Athom will allow the app in the store... @terryhendrix-kate you can also apply the fix in the function Device yourself. Exchange the this.loadsettings... for

    this.loadSettings(function() {
        console.log(this.getName(), ": Loaded device with settings", this.settings, "for", this.device_data);
        if(this.settings == null || !this.settings.hasOwnProperty('away_delay')){
            console.error('Could not retrieve away delay from settings');
        }else{
            this.last_seen_at = new Date().getTime() - (this.settings.away_delay * 1001);
        }
    
    }.bind(this));
    }
    
  7. Bas van den Bosch

    Because the V1-api has been decrepated long time ago already....

    The master-branch is still protected probably:

    remote: Permission denied to update branch master.        
    To https://bitbucket.org/terryhendrix/homey-smartpresence.git
     ! [remote rejected] master -> master (pre-receive hook declined)
    error: failed to push some refs to 'https://bvdbos@bitbucket.org/terryhendrix/homey-smartpresence.git'
    

    See https://stackoverflow.com/questions/21407962/error-on-git-push-remote-rejected-master-master-pre-receive-hook-decli

  8. Terry Hendrix

    You may not push on master. Please push a feature/branch and create a Pull Request to the development branch.

  9. Jack Hiddes

    Awesome! Hopefully Athom will fix the majority of issues also. My Homey is almost unuseable after installing V2.

    Really looking forward installing the update!!! Thanks!!!

  10. Log in to comment