Skip to content

epsmae/Homey-.Net

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Homey-.Net

Description Link
Build Build Status
Nuget Nuget
Nuget Prerelease Nuget (with prereleases)

Intro

This repo contains the source code for a C# Api for Athom's Homey. It does not yet cover the complete feature set. There is a java script api client available https://developer.athom.com/docs/api. The Rest Api can be guessed according to the documentation.

Implemented commands

  • Get device for id
  • Get all devices
  • Get devices for zone id
  • Get capability time log
  • Gel all zones
  • Get all flows
  • Get flow for flow id
  • Get all alarms
  • Update alarm
  • Get system info
  • Set boolean capability
  • Enable flow
  • Trigger flow

Sample Application

Screenshot

Obtaining an Access Token

Homey does not yet provide an access token, however you can obtain one with the following steps.

  1. Open https://developer.athom.com/
  2. Press Login
  3. Open the browser dev tools --> F12 and switch to the Network tab
  4. Log in with your Homey mail and password You should find a Get request "api/manager/sessions/session/me" which contains you local homey ip address if you are in the local network. Request URL: "https://LOCAL-HOMEY-IP.homey.homeylocal.com/api/manager/sessions/session/me" There you should fine something like the following under Request Header "authorization: Bearer 888999-19fe-4fa0-9999-b32982499999:9c1a21da-1df4-9999-8594-46fd7e799999:c6d7b6096df10a5fd2d8888888ff447ff1ca0e9c"
  5. Use the whole token after Beaer in that case it would be "888999-19fe-4fa0-9999-b32982499999:9c1a21da-1df4-9999-8594-46fd7e799999:c6d7b6096df10a5fd2d8888888ff447ff1ca0e9c"

Obtaining local IP-Address over App

You can check the local home ip over the app with More/Settings/General/About

About

C# Api for Athom's Homey

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages