Giter Club home page Giter Club logo

Comments (14)

nfarina avatar nfarina commented on June 1, 2024

So the only way to know for sure is to debug the call that you found. I would try dumping the raw data submitted by Siri here:

And see what exactly Siri is sending. If it's 29, then it would point to a bug in HomeKit.

from homebridge.

corecoding avatar corecoding commented on June 1, 2024

I can confirm that this is Siri or Insteon+. I think it is Insteon+ - although I haven't played with the iOS APIs, I think they can specify the characteristic value type. In this case, it should be a float...

Thanks!

from homebridge.

nfarina avatar nfarina commented on June 1, 2024

It seems like we should be able to have Siri speak in Fahrenheit directly without conversion issues. See #71 for discussion.

from homebridge.

minarcia avatar minarcia commented on June 1, 2024

Fordracerguy,

Did you end up getting your CT50 accessory working with Homebridge?

Thanks.

from homebridge.

skiksc avatar skiksc commented on June 1, 2024

Fordracerguy,

I am also interested if get my CT50 working with homebridge. Any luck?

from homebridge.

corecoding avatar corecoding commented on June 1, 2024

Yes, I got it working. I wrote a custom accessory. From what I recall, the celsius conversion issues were fixed after this posting. I ended up taking my Raspberry Pi to work so I don't use HomeKit right now.

from homebridge.

skiksc avatar skiksc commented on June 1, 2024

That's great. Would you mind sharing the code for the accessory? Iā€™m not much of a programmer, so Iā€™m struggling with how customize my own accessory.

from homebridge.

corecoding avatar corecoding commented on June 1, 2024

Here you go. Add this to your config

"accessories": [
    {
        "accessory": "RadioThermostat",
        "name": "Air Conditioner",
        "host": "x.x.x.x"
    }
]

RadioThermostat.txt

from homebridge.

corecoding avatar corecoding commented on June 1, 2024

Rename file to .js

from homebridge.

skiksc avatar skiksc commented on June 1, 2024

Thank you. However, being a node.js novice, I'm having some trouble getting things in the right spots.

  • I created a directory at: /usr/local/lib/node_modules/homebridge-radiothermostat
  • named the .js file index.js (to match other plugins)
    Do I need a package.json file to register the plugin?

I appreciate the guidance.

Here is the output from homebridge, using a duplicated package.json file from the homebridge-httpthermostat plugin.

Loaded plugin: homebridge-http

Registering accessory 'homebridge-httpstatus.Http'

Loaded plugin: homebridge-http-thermostat

Registering accessory 'homebridge-http-thermostat.http-thermostat'

ERROR LOADING PLUGIN homebridge-radiothermostat:
Error: Cannot find module 'HAP-NodeJS/accessories/types.js'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:289:25)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at Object. (/usr/local/lib/node_modules/homebridge-radiothermostat/index.js:1:75)
at Module._compile (module.js:435:26)
at Object.Module._extensions..js (module.js:442:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:313:12)
at Module.require (module.js:366:17)

at require (module.js:385:17)

Loaded plugin: homebridge-thermostat

Registering accessory 'homebridge-thermostat.Thermostat'

Loaded config.json with 1 accessories and 0 platforms.

Loading 0 platforms...
Loading 1 accessories...
/usr/local/lib/node_modules/homebridge/lib/api.js:47
throw new Error("The requested accessory '" + name + "' was not registered by any plugin.");
^

Error: The requested accessory 'RadioThermostat' was not registered by any plugin.
at API.accessory (/usr/local/lib/node_modules/homebridge/lib/api.js:47:13)
at Server._loadAccessories (/usr/local/lib/node_modules/homebridge/lib/server.js:164:42)
at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:36:38)
at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:23:16)
at Object. (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
at Module._compile (module.js:435:26)
at Object.Module._extensions..js (module.js:442:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:313:12)
at Function.Module.runMain (module.js:467:10)

from homebridge.

minarcia avatar minarcia commented on June 1, 2024

Fordracerguy,

Thanks for the code. I appreciate the work you have done.

skiksc,

I was able to get it working to an extent, although I the project doesn't appear complete. It currently seems to only operate cooling, not heating, but I'm trying to work through and add with my limited js knowledge.

I've added the files that I used, the RadioThermostatindex.txt is largely from Fordracerguy, except that I edited the first line to work with my setup and added lines 5-9. That should become index.js in your /usr/local/lib/node_modules/homebridge-radiothermostat/ directory.

The RadioThermostatpackage.txt file can be copied to package.json in the same directory. I just hacked that one together from the sample one, but it works.

You'll also need the request function available. I found it in /usr/local/lib/node_modules/homebridge-legacy-plugins/node_modules/request/. You'll need to copy that over (or symlink) to /usr/local/lib/node_modules/homebridge-radiothermostat/node_modules/request/.

Hopefully when you restart homebridge it should work. I had some initial problems with it taking any commands after adding the thermostat, so if you can't get it to work, delete ~/.homebridge/persist and reboot. Then delete and re-add the homebridge on your iOS device and it should work. Hopefully you won't need that step, but I did.

I hope this helps!

RadioThermostatindex.txt
RadioThermostatpackage.txt

from homebridge.

corecoding avatar corecoding commented on June 1, 2024

I finally got around to making an updated home bridge plugin. I would say another week and I can upload it.

from homebridge.

namannik avatar namannik commented on June 1, 2024

@fordracerguy, I'm very interested in this plugin as well! I was considering starting to create one on my own since it didn't seem like one exists, but it looks like you've nearly completed it. When it's complete, will you be publishing it on the NPM web site?

from homebridge.

corecoding avatar corecoding commented on June 1, 2024

I (think) I have published it under the name homebridge-radiothermostat - first time doing this... It could have bugs, but it's a whole lot better than the previous one I wrote! Please see the github at https://github.com/fordracerguy/radiothermostat please feel free to help out

from homebridge.

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.