Coder Social home page Coder Social logo

Comments (5)

PJCzx avatar PJCzx commented on September 9, 2024

Hello,

Don’t the API Expectations section of the ReadMe or the working demo of the fake.js API helps you?

Thx in advance for providing specific questions that I may answer ;)

Best,
PJCzx

from homebridge-thermostat.

Tangston311 avatar Tangston311 commented on September 9, 2024

It does, and sorry for the basic questions - I've just never done this before so I'm stumbling my way through it! I suppose my two questions are:

  1. I'm not sure what values within the fake.js file I need to update to get it functioning. Which values should I update to get the fake.js file to become a real.js and actually pull the correct data from my system?

  2. Once I've updated the fake.js file, what do I do then? I'm running homebridge off an old MacBook Pro, so do I need to store the file in a specific location on my Mac and have the API URL use the IP of my Mac and the directory where the .js file is stored?

Thank you so much!

from homebridge-thermostat.

PJCzx avatar PJCzx commented on September 9, 2024

Hello,

Well, it depends on what are you using. I don’t know Infinitude not Bryant systems but I assume you can mesure température somewhere and heat somewhere else :)

Basically, you have the target values that you would like to reach and the current values that are facts. Eg

targetHeatingCoolingState = 3 (AUTO) (see [HAP|https://github.com/KhaosT/HAP-NodeJS/blob/master/lib/gen/HomeKitTypes.js] mean you want the heating to manage by itself. So if you use the app to click Auto, you will receive this in the fake.js and you will need to manage the case.

Remember this plugin is made to build something and cannot work as a standalone solution. I suggest you start both side by side and play with your Home iOS app while looking at the logs.

My setup was 2 raspberries pies, one with homeBridge and one with the heating system mechanism and temperature measurement.

I used a similar implementation of the fake.js on the hardware rPi to store temperature and give heater orders.

If you try it, you will see each time you open Home app on iOS device Homebrige will ask your Fake status, and each time you will change some settings in the app, it will call target temperature or target heating.

Hope this is useful for you, please remember the IP must be fully writen, like http://127.0.0.1, not just the numbers.

Best,

from homebridge-thermostat.

PJCzx avatar PJCzx commented on September 9, 2024

No news after >10 days. Good news ? I Close :) Best

from homebridge-thermostat.

Tangston311 avatar Tangston311 commented on September 9, 2024

Sorry I didn't see your reply! Thank you for all of the info - I haven't had a chance to work on it over the past week but this is helpful and gives me something to go on; I'll see how far I can get. Really appreciate your help.

from homebridge-thermostat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.