Closed mcackay closed 2 years ago
Some properties expected by this plugin are not published by your heater cooler.
Try
node_modules/homebridge-echonet-lite-heater-cooler
).node script.js 192.168.1.24
Thank you.
Thanks Yasuharu -
Here's the script output. I have a Mitsubishi Air Conditioning unit, connected with a MAC-568IF-E Wi-Fi interface adapter.
{
inf: [
{ epc: '0x80', desc: 'Operation status' },
{ epc: '0x81', desc: 'Installation location' },
{ epc: '0x88', desc: 'Fault status' },
{ epc: '0x8F', desc: 'Operation power-saving' },
{ epc: '0xA0', desc: 'Air flow rate setting' },
{ epc: '0xB0', desc: 'Operation mode setting' }
],
set: [
{ epc: '0x80', desc: 'Operation status' },
{ epc: '0x81', desc: 'Installation location' },
{ epc: '0x8F', desc: 'Operation power-saving' },
{ epc: '0xA0', desc: 'Air flow rate setting' },
{
epc: '0xA1',
desc: 'Automatic control of air flow direction setting'
},
{ epc: '0xA3', desc: 'Automatic swing of air flow setting' },
{ epc: '0xA4', desc: 'Air flow direction (vertical) setting' },
{ epc: '0xB0', desc: 'Operation mode setting' },
{ epc: '0xB3', desc: 'Set temperature value' }
],
get: [
{ epc: '0x80', desc: 'Operation status' },
{ epc: '0x81', desc: 'Installation location' },
{ epc: '0x82', desc: 'Standard version information' },
{ epc: '0x83', desc: 'Identification number' },
{ epc: '0x86', desc: 'Manufacturer’s fault code' },
{ epc: '0x88', desc: 'Fault status' },
{ epc: '0x89', desc: 'Fault description' },
{ epc: '0x8A', desc: 'Manufacturer code' },
{ epc: '0x8F', desc: 'Operation power-saving' },
{ epc: '0x9D', desc: 'Status change announcement property map' },
{ epc: '0x9E', desc: 'Set property map' },
{ epc: '0x9F', desc: 'Get property map' },
{ epc: '0xA0', desc: 'Air flow rate setting' },
{
epc: '0xA1',
desc: 'Automatic control of air flow direction setting'
},
{ epc: '0xA3', desc: 'Automatic swing of air flow setting' },
{ epc: '0xA4', desc: 'Air flow direction (vertical) setting' },
{ epc: '0xB0', desc: 'Operation mode setting' },
{ epc: '0xB3', desc: 'Set temperature value' },
{ epc: '0xBB', desc: 'Measured value of room temperature' },
{ epc: '0xBE', desc: 'Measured outdoor air temperature' }
]
}
I wasn't sure how to enable debug logging in homebridge -- but made a minor code change temporarily to platform.js, to log the caught error:
[2/26/2022, 10:30:57 PM] [HeaterCooler] Failed to addDeviceToAccessory - address: 192.168.1.24
[2/26/2022, 10:30:57 PM] [HeaterCooler] TypeError: Cannot read property 'code' of null
Thank you for your report. ae584e701036342de0b3a8347e1b939ab67834ed1 may be a fix.
Pls clean install homebridge-echonet-lite-heater-cooler by
npm update homebridge-echonet-lite-heater-cooler
Thank you.
Bingo! That seems to have done the trick. I now have visibility of my aircon units in Homebridge and the Home app. Thanks!
Let me know if you need any further debug information or testing done.
Grad to hear that! Thank you for your log info, it made easier to fix the issue.
Hi - I stumbled across your project today, and though I'd give it a go -- as the other homebridge plugin for EchonetLite i was trying seems to be a bit unstable, and impact performance of homebridge.
I installed it manually in the Homebridge terminal using the npm command and restarted. And am seeing ...
[HeaterCooler] Failed to addDeviceToAccessory - address: 192.168.1.24
[HeaterCooler] Failed to addDeviceToAccessory - address: 192.168.1.27
... in the logs, and the IPs corresponds to my two Mitsubishi Heatpumps that i've enabled the Echonet protocol for.
Is there anything I can do to support the project, and help get these devices recognised in Homebridge? Are there some debug logs/etc that would be useful to diagnose this?
Sorry - i wasn't logged in when starting the bug report, so this reporting template didn't show up:
Describe The Bug: Mitsubishi Heatpump AirConditioners (with Wifi Adapter) not being discovered.
To Reproduce: Installed plugin, restarted Homebridge.
Expected behavior: Was hoping the Aircon units would show up under Homebridge Accessories list.
Logs:
Plugin Config:
Screenshots:
Environment: