AlexanderBabel / homebridge-broadlink-rm

[This fork supports TV accessories] Broadlink RM Mini and Pro plugin for homebridge: https://github.com/nfarina/homebridge
Apache License 2.0
46 stars 11 forks source link

Is possible to control RF thermostats with RM Pro? #39

Closed Olepir closed 4 years ago

Olepir commented 4 years ago

Is possible to control RF thermostats and read temperature with RM Pro? Thanks

kiwi-cam commented 4 years ago

Absolutely. If you don’t specify a file, w1 device, or mqtt the RM device will be used.

Olepir commented 4 years ago

Absolutely. If you don’t specify a file, w1 device, or mqtt the RM device will be used.

Can you explain more – what you meant by “specify a file, w1 device, or mqtt”? Thanks!

kiwi-cam commented 4 years ago

Just don't include w1DeviceID, temperatureFilePath, or mqttURL in your config.json file. It'll fall back to trying the Broadlink device to read the temperature if they're missing.

Olepir commented 4 years ago

Just don't include w1DeviceID, temperatureFilePath, or mqttURL in your config.json file. It'll fall back to trying the Broadlink device to read the temperature if they're missing.

Can you post a sample for settings?

kiwi-cam commented 4 years ago

Sure thing. This should work:

.....
            "accessories": [{
                    "name": "Heat Pump",
                    "type": "air-conditioner",
                    "defaultCoolTemperature": 21,
                    "defaultHeatTemperature": 23,
                    "data": {
                        "off": "260076006d.......",
                        "on": "260006016d......."
....

Feel free to post your config.json if you can't get it to work.

Olepir commented 4 years ago

"off": "260076006d.......", "on": "260006016d……." is these settings for on/off your “Heat Pump”?

kiwi-cam commented 4 years ago

is these settings for on/off your “Heat Pump”?

Haha, no. I truncated it so it was easier to read.

If you'd like, my actual config.json is here.

Olepir commented 4 years ago

Here’s settings for a floor heater that I trying to control with no luck { "platform": "BroadlinkRM", "name": "Broadlink RM", "hideScanFrequencyButton": false, "hideLearnButton": false, "hideWelcomeMessage": false, "accessories": [{ "name": "Floor Heater", "type": "air-conditioner", "data": { "temperature22": { "pseudo-mode": "heat", "data": "b200ba000..." }, "temperature18": { "pseudo-mode": "cool", "data": "b200ba000..." } } }] }

kiwi-cam commented 4 years ago

Which part isn't working, the control or reading the temperature?

Also, can you share your logs so we can see what is happening?

Olepir commented 4 years ago

0|homebrid | [11/6/2019, 9:30:30 PM] There was a problem reading your config.json file. 0|homebrid | [11/6/2019, 9:30:30 PM] Please try pasting your config.json file here to validate it: http://jsonlint.com 0|homebrid | [11/6/2019, 9:30:30 PM] 0|homebrid | SyntaxError: Unexpected end of JSON input 0|homebrid | at JSON.parse () 0|homebrid | at Server._loadConfig (/usr/local/lib/node_modules/homebridge/lib/server.js:212:19) 0|homebrid | at new Server (/usr/local/lib/node_modules/homebridge/lib/server.js:56:38) 0|homebrid | at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:32:16) 0|homebrid | at Object. (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22) 0|homebrid | at Module._compile (internal/modules/cjs/loader.js:689:30) 0|homebrid | at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10) 0|homebrid | at Module.load (internal/modules/cjs/loader.js:599:32) 0|homebrid | at tryModuleLoad (internal/modules/cjs/loader.js:538:12) 0|homebrid | at Function.Module._load (internal/modules/cjs/loader.js:530:3)

kiwi-cam commented 4 years ago

Well the config.json you pasted validates fine on http://jsonlint.com. Are you sure that's the config file it's reading? Does homebridge run with a -U paramter pointing to the directory holding that file?

Olepir commented 4 years ago

Yes, that’s the file… ((