Comments (14)
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.
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.
It seems like we should be able to have Siri speak in Fahrenheit directly without conversion issues. See #71 for discussion.
from homebridge.
Fordracerguy,
Did you end up getting your CT50 accessory working with Homebridge?
Thanks.
from homebridge.
Fordracerguy,
I am also interested if get my CT50 working with homebridge. Any luck?
from homebridge.
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.
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.
Here you go. Add this to your config
"accessories": [
{
"accessory": "RadioThermostat",
"name": "Air Conditioner",
"host": "x.x.x.x"
}
]
from homebridge.
Rename file to .js
from homebridge.
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.
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.
I finally got around to making an updated home bridge plugin. I would say another week and I can upload it.
from homebridge.
@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.
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)
- Device falls out of sync with HomeKit - multiple plugins HOT 3
- PETLIBRO Support HOT 1
- Homebridge v1.8.0 fails to install because of unknown git error HOT 4
- Cannot install the hb-service on OSX with M2 chipset HOT 5
- Update to Homebridge 1.8.0 from 1.7.0 fails HOT 6
- Upgrade to 1.8.0 fails HOT 3
- v1.8.0 leads to error when starting homebridge in development environment HOT 7
- Can't get the latest homebridge on vm hyper-v according to guide with node.js update necessary and not working as instructed and more HOT 1
- Homebridge rebooting every 15 minutes approximately - SIGTERM HOT 1
- GLIBC_2.29' not found HOT 2
- Getting target temperatures (setpoints) in Fahrenheit? HOT 3
- Installing Homebridge Mac OS
- Homebridge hangs and stops responding to HomeKit inputs HOT 3
- How to schedule a child bridge restart - raspberry pi - config UI
- Homebridge Process Ended. Code: 1, Signal: null HOT 1
- Multiple HomeBridge instance (in multiple location) issue HOT 2
- Question about how does volume control of TV remote work?
- NAS native package vs docker advantage (Avahi via dbus)?
- Error: send EAFNOSUPPORT 224.0.0.251:5353 HOT 3
- Homebridge not starting after update - cachedAccessories HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebridge.