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


Honeywell_Lyric_API 1.0.0

   (0 reviews)

Guest

2 Screenshots

About This File

This is an API for Honeywell Lyric T6. The idea is based on Remco B's version for the Honeywell Evo.

 

Using a virtual device with API scene, you can change setpoint and set away, holiday and schedule modes. Because it is a virtual device, you can call these buttons from any other scene. For example I use it while tracking my phones location, this creates options for GeofenceMode in combination with ScheduleMode

 

You will need a webserver (or access to a webserver) for the initial setup. This is to retrieve some keys from Honeywell. As soon as you have the keys, you do not need the webserver anymore. For further details please follow instruction in the pdf and use at own risk.

 

release 1.1 added checkCertificate option to bypass https check.

 

 

Installation instructions Honeywell Lyric API.pdf

 

Fibaro_Lyric_API.lua


Other Files from Guest


User Feedback

Recommended Comments

Dag Remco

 

Ik krijg het niet werkend. Kan je mij misschien helpen. Ik moet een app maken op de honeywell developers site. Maar dan vragen ze om een callback url wat moet ik daar invullen. En wat moet ik als url invullen in de Honeywell_Lyric.php

 

Mvg Tom

Link to comment
Share on other sites

Guest azevenhuizen

Posted

Hoi Tom,

 

Dit is het adres van je eigen webserver waar je het php scriptje op gekopieerd hebt.

Bijvoorbeeld: http://www.yourdomain.com/Honeywell_Lyric.php

 

Arno
 

Link to comment
Share on other sites

Oke vul ik dat bij beide in. Zowel op de site van honeywell en in het php script. Ik heb niet echt een domain naam maar kan ik daar ook het externe ipadres invullen inc de poort van mijn webserver ik heb namelijk mijn webserver draaien op een synology.

Link to comment
Share on other sites

Guest azevenhuizen

Posted

Zeker kan dat.

Ik heb zelf een RaspberryPi ingericht als webserver en gebruik ook gewoon het ip van kpn met een port forwarder.

 

Werkt best even lastig allemaal, maar als je eenmaal door de authentication heen bent is het wel weer te doen.

 

Link to comment
Share on other sites

ja het werkt best wel lastig. Ik kom nu wel in het inlog scherm van honeywell alleen zodra ik mijn thermostaat selecteer en op volgende drukt krijg ik de melding server is niet bereikbaar. Nogmaals de vraag moet ik de url in beide ingeven zowel op de site van honeywell developers en in het script?

 

Bedankt alvast

het is gelukt om de honeywell api token te krijgen:)

 

Moet ik nog ergens anders opletten dat jij weet bij het toevoegen in fibaro

Link to comment
Share on other sites

Guest azevenhuizen

Posted

Als je de url in de je browser kopieert doet hij het dan wel?

Heb je in de .php file de variabelen aangepast?

		// First setup some variables.
		// Please change the [BRACKETSONCE] to your own.
		// For example '[YOURREDIRECTURL]' will become 'http://www.yourdomain.com/Honeywell_Lyric.php'
		$AuthorizeUrl = 'https://api.honeywell.com/oauth2/authorize';
		$RequestUrl = 'https://api.honeywell.com/oauth2/token';

		$RedirectUrl = '[YOURREDIRECTURL]';
		$Consumer_Key = '[YOURCONSUMERKEY]';
		$Consumer_Secret = '[YOURCONSUMERSECRET]';
		$AuthorizationKey = '[YOURBASE64AUTHORIZATIONKEY]';

 

1 hour ago, Tjensen said:

het is gelukt om de honeywell api token te krijgen:)

 

Moet ik nog ergens anders opletten dat jij weet bij het toevoegen in fibaro

 

Bedoel je dat hij het doet?
Je hebt 3 codes gekregen als het goed is.

 

In het Lyric_API script moet je 1 extra 'option' toevoegen:

      options = {headers = headers, method = 'GET', checkCertificate = false, timeout = 5000},

Dit komt door een security wijziging van Honeywell.

 

 

Link to comment
Share on other sites

ja klopt ik heb 3 codes ontvangen. acces token, refresh token,expires in en nog een authorization code.

 

Moet ik bovenstaande optie toevoegen in de lua scene script. Kan dat gewoon onderaan geplakt worden

Link to comment
Share on other sites

Guest azevenhuizen

Posted

Je kunt het beste even door alle functies van het script heen bladeren en overal waar je "options = {headers..." ziet staan de optie "checkCertficate = false," toevoegen.

Vergeet de komma niet.

Link to comment
Share on other sites

Guest azevenhuizen

Posted (edited)

Volgens mij moet dit het zijn.

 

Edited by azevenhuizen
Link to comment
Share on other sites

Guest azevenhuizen

Posted

Ik heb de header van deze post ook aangepast met de nieuwe file en de instructies wat aangepast.

Probeer die anders even

Link to comment
Share on other sites

 

Het deviceID is dat het zelfde als het mac-adres want zie voor de rest niks anders staan.

 

Ik krijg ook een foutmelding.

fout.png.00a389ad19ab3ef091f4e066a0f43e30.png

Link to comment
Share on other sites

Guest azevenhuizen

Posted

Device ID staat op de sticker dacht ik.

Begint met: "LCC-00..."

 

Volgens mij kun je die ook zien als de codes ophaalt bij Honeywell.

Misschien die webpage nog eens openen?

 

 

Link to comment
Share on other sites

Ik denk dat ik het opgeef.

 

Ik heb achter op mijn lyric alleen een rode sticker met daarop alleen het mac adres. De code is ook niet te zien in de webpage.

Link to comment
Share on other sites

Guest azevenhuizen

Posted

Heb het nog even nagekeken.

deviceID is inderdaad LCC- gevolgd door je mac adress. Dus LCC-[mac adress] 

Je mac kun je opzoeken in het apparaat info menu van je lyric

Link to comment
Share on other sites

Guest azevenhuizen

Posted

Http error 400 is een Bad Request error.

Weet je zeker dat je al je data goed ingevuld hebt in de Lyric_Api?

Link to comment
Share on other sites

Ik zou het niet weten. Ik heb alles verwijderd en helemaal opnieuw ingesteld en toen deed hij het. Wel met de oudste script zonder die certificaat aanpassing. Weet jij wat voor probleem het gaf zonder die certificaat aanpassing?

Link to comment
Share on other sites

Hallo Remco,

 

Ik heb een HCLite en probeer het bestand Thermostat.vfib te importeren als een Virtual Device maar krijg onderstaande foutmelding.

 

"Operation could not be performed successfully and was interrupted. Error text:
Illegal file format. Unable to import lua code on HCLite platform."

 

Ik neem aan dat de code niet geschikt is voor de HCLite, is het mogelijk om het bestand aan te passen dat de HCLite het wel accepteert. Ik heb alleen de real-time temperatuur uitlezing nodig.

 

Ik neem aan dat Fibaro_Lyric_API.lua ook moet worden aangepast.

 

Api aanmelden is allemaal goed gegaan op de Honeywell site.

 

Hoor graag van je.

Groetjes Rene

 

Edited by Webbie
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...