Open nbraunstein opened 3 months ago
Bump
I really apologize that I have not touched this issue for over 2 months. I had dug into your problem, but it is really hard to say that I can fix the problem with the error message i was given.
I can provide 3 suggestions that are good to try:
barcode
is not provided properly.[06/09/2024, 16:38:27] [Thermostat] History Loaded from Persistant Storage [06/09/2024, 16:38:27] Homebridge v1.8.4 (HAP v0.12.2) (Homebridge BAB2) is running on port 51004. [06/09/2024, 16:38:27]
NOTICE TO USERS AND PLUGIN DEVELOPERS
Homebridge 2.0 is on the way and brings some breaking changes to existing plugins. Please visit the following link to learn more about the changes and how to prepare: https://github.com/homebridge/homebridge/wiki/Updating-To-Homebridge-v2.0
[06/09/2024, 16:38:27] [midea-platform] Discovered device: {"ip":"192.168.4.59","port":6444,"id":150633093639054,"model":"00000Q14","sn":"000000P0000000Q14435D3A38D5A0000","name":"net_a1_8D5A","type":161,"version":3}
[06/09/2024, 16:38:27] [midea-platform] [Dehumidifier ] Device specific verbose debug logging is set to false
[06/09/2024, 16:38:27] [midea-platform] [Dehumidifier ] Device specific log recoverable errors is set to true
[06/09/2024, 16:38:27] [midea-platform] [Dehumidifier ] Restoring existing accessory from cache: Dehumidifier
[06/09/2024, 16:38:27] [midea-platform] [Dehumidifier ] Cached device, using token/key from config file
[06/09/2024, 16:38:27] [midea-platform] Connecting to device Dehumidifier (192.168.4.59:6444)...
[06/09/2024, 16:38:27] [Coway] [POST REQ] https://id.coway.com/auth/realms/cw-account/login-actions/authenticate?session_code=NGMTuKLhkevUo86TqQKeeeeTvzcU3C_1RejhgMxIVe4&execution=05e45ed4-c033-44fd-bc13-2d51e07bc50e&client_id=cwid-prd-iocare-20240327&tab_id=2Q4dfUuAw7A
[06/09/2024, 16:38:27] [Thermostat] Critical Error - No devices created, please restart.
[06/09/2024, 16:38:27] [Thermostat] Error: TooManyAttempt
[06/09/2024, 16:38:27] [midea-platform] [Dehumidifier ] Authentication success.
[06/09/2024, 16:38:27] [midea-platform] [Dehumidifier ] Starting network listener.
[06/09/2024, 16:38:27] [midea-platform] [Dehumidifier ] Refreshing status...
[06/09/2024, 16:38:27] [midea-platform] No subtype for A1 (dehumidifier) device
[06/09/2024, 16:38:27] [midea-platform] [Dehumidifier ] Subtype: 3, device protocol version: 8
[06/09/2024, 16:38:27] [midea-platform] No subtype for A1 (dehumidifier) device
[06/09/2024, 16:38:27] [midea-platform] [Dehumidifier ] Subtype: 3, device protocol version: 8
[06/09/2024, 16:38:27] [midea-platform] [Dehumidifier ] Value for POWER changed from 'undefined' to 'false'
[06/09/2024, 16:38:27] [midea-platform] [Dehumidifier ] Value for CHILD_LOCK changed from 'undefined' to 'false'
[06/09/2024, 16:38:27] [midea-platform] [Dehumidifier ] Value for MODE changed from '0' to '1'
[06/09/2024, 16:38:27] [midea-platform] [Dehumidifier ] Value for FAN_SPEED changed from '0' to '80'
[06/09/2024, 16:38:27] [midea-platform] [Dehumidifier ] Value for SWING changed from 'undefined' to 'false'
[06/09/2024, 16:38:27] [midea-platform] [Dehumidifier ] Value for TARGET_HUMIDITY changed from '0' to '35'
[06/09/2024, 16:38:27] [midea-platform] [Dehumidifier ] Value for WATER_LEVEL_SET changed from '50' to '100'
[06/09/2024, 16:38:27] [midea-platform] [Dehumidifier ] Value for CURRENT_HUMIDITY changed from '0' to '42'
[06/09/2024, 16:38:27] [midea-platform] [Dehumidifier ] Value for CURRENT_TEMPERATURE changed from '0' to '22'
[06/09/2024, 16:38:27] [midea-platform] [Dehumidifier ] Status unchanged
[06/09/2024, 16:38:27] [midea-platform] [Dehumidifier ] Dehumidifier serviceVersion: 1, currentVersion: 1
[06/09/2024, 16:38:27] [midea-platform] [Dehumidifier ] Existing dehumidifier service version.
[06/09/2024, 16:38:28] [Coway] [POST REQ] https://id.coway.com/auth/realms/cw-account/login-actions/authenticate?session_code=8ye6gsvJpfHnBfwGF1JGqdhS6RvRXNEe-_BEtBFvSdM&execution=9f81ab3f-2ce3-4ccf-b207-1057136c734c&client_id=cwid-prd-iocare-20240327&tab_id=2Q4dfUuAw7A
[06/09/2024, 16:38:28] [midea-platform] Sending discovery message to 192.168.7.255, try 2...
[06/09/2024, 16:38:28] [midea-platform] [Dehumidifier ] GET Active, value: false
[06/09/2024, 16:38:28] [midea-platform] [Dehumidifier ] GET CurrentHumidifierDehumidifierState, value: false,1
[06/09/2024, 16:38:28] [midea-platform] [Dehumidifier ] GET TargetHumidifierDehumidifierState, value: 2
[06/09/2024, 16:38:28] [midea-platform] [Dehumidifier ] GET CurrentRelativeHumidity, value: 42
[06/09/2024, 16:38:28] [midea-platform] [Dehumidifier ] GET RelativeHumidityDehumidifierThreshold, value: 35
[06/09/2024, 16:38:28] [midea-platform] [Dehumidifier ] GET RotationSpeed, value: 80
[06/09/2024, 16:38:28] [midea-platform] [Dehumidifier ] GET WaterLevel, value: 0
[06/09/2024, 16:38:28] [midea-platform] [Dehumidifier ] GET Temperature, value: 22
[06/09/2024, 16:38:28] [midea-platform] [Dehumidifier ] GET CurrentRelativeHumidity, value: 42
[06/09/2024, 16:38:29] [Coway] [POST REQ] https://iocareapi.iot.coway.com/api/v1/com/token
[06/09/2024, 16:38:30] [Coway] [GET REQ] https://iocareapi.iot.coway.com/api/v1/com/user-devices?pageIndex=0&pageSize=100
[06/09/2024, 16:38:30] [Coway] [GET REQ] https://iocareapi.iot.coway.com/api/v1/com/devices-conn?devIds=41102F5O1983000241
[06/09/2024, 16:38:30] [midea-platform] Sending discovery message to 192.168.7.255, try 3...
[06/09/2024, 16:38:30] [Coway] Adding new accessory: Airmega (CONNECTED MIGHTY)
[06/09/2024, 16:38:30] [Coway] [GET REQ] https://iocareapi.iot.coway.com/api/v1/com/devices/41102F5O1983000241/control?devId=41102F5O1983000241&mqttDevice=true&dvcBrandCd=MG&dvcTypeCd=004&prodName=CONNECTED+MIGHTY
[06/09/2024, 16:38:30] [Coway] [GET REQ] https://iocareapi.iot.coway.com/api/v1/air/devices/41102F5O1983000241/home?admdongCd=US&barcode=41102F5O1983000241&dvcBrandCd=MG&prodName=CONNECTED+MIGHTY&stationCd=US&zipCode=&resetDttm=&deviceType=004&mqttDevice=true&orderNo=ORDyyoLEOEoA&membershipYn=N&selfYn=N
[06/09/2024, 16:38:30] [Coway] [GET REQ] https://iocareapi.iot.coway.com/api/v1/air/devices/41102F5O1983000241/filter-info?devId=41102F5O1983000241&orderNo=ORDyyoLEOEoA&sellTypeCd=1&prodName=CONNECTED+MIGHTY&membershipYn=N&mqttDevice=true&selfYn=N
[06/09/2024, 16:38:31] [Coway] [GET REQ] https://iocareapi.iot.coway.com/api/v1/com/devices/41102F5O1983000241/control?devId=41102F5O1983000241&mqttDevice=true&dvcBrandCd=MG&dvcTypeCd=004&prodName=CONNECTED+MIGHTY
[06/09/2024, 16:38:31] [Coway] [GET REQ] https://iocareapi.iot.coway.com/api/v1/air/devices/41102F5O1983000241/home?admdongCd=US&barcode=41102F5O1983000241&dvcBrandCd=MG&prodName=CONNECTED+MIGHTY&stationCd=US&zipCode=&resetDttm=&deviceType=004&mqttDevice=true&orderNo=ORDyyoLEOEoA&membershipYn=N&selfYn=N
[06/09/2024, 16:38:31] [Coway] [GET REQ] https://iocareapi.iot.coway.com/api/v1/air/devices/41102F5O1983000241/filter-info?devId=41102F5O1983000241&orderNo=ORDyyoLEOEoA&sellTypeCd=1&prodName=CONNECTED+MIGHTY&membershipYn=N&mqttDevice=true&selfYn=N
[06/09/2024, 16:38:32] [homebridge-coway] This plugin generated a warning from the characteristic 'Brightness': characteristic value expected valid finite number and received "NaN" (number). See https://homebridge.io/w/JtMGR for more info.
[06/09/2024, 16:38:32] [homebridge-coway] Error:
at Brightness.Characteristic.characteristicWarning (/var/lib/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:3016:105)
at Brightness.Characteristic.validateUserInput (/var/lib/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:2908:14)
at Brightness.Characteristic.setValue (/var/lib/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:2234:20)
at Lightbulb.Service.setCharacteristic (/var/lib/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Service.ts:767:35)
at /var/lib/homebridge/node_modules/homebridge-coway/homebridge/accessories/air-purifiers/marvel-air-purifier.ts:69:36
at MarvelAirPurifier.refreshCharacteristics (/var/lib/homebridge/node_modules/homebridge-coway/homebridge/accessories/accessory.ts:197:19)
at MarvelAirPurifier.refresh (/var/lib/homebridge/node_modules/homebridge-coway/homebridge/accessories/air-purifiers/marvel-air-purifier.ts:60:20)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at CowayPlatform.refreshDevicesParallel (/var/lib/homebridge/node_modules/homebridge-coway/homebridge/coway-platform.ts:77:13)
at HomebridgeAPI.
Still no luck. I sent you an email
@nbraunstein
v1.0.2-beta.0
has been released. Update and check if it works on your machine.
It works! Although, there are a couple issues.
The humidity and temp sensors don't load any information. Is there a way to disable these?
[07/09/2024, 12:04:46] [midea-platform] Discovered device: {"ip":"192.168.4.59","port":6444,"id":150633093639054,"model":"00000Q14","sn":"000000P0000000Q14435D3A38D5A0000","name":"net_a1_8D5A","type":161,"version":3} [07/09/2024, 12:04:46] [midea-platform] [Dehumidifier ] Restoring existing accessory from cache: Dehumidifier [07/09/2024, 12:04:46] [midea-platform] [Dehumidifier ] Cached device, using token/key from config file [07/09/2024, 12:04:46] [midea-platform] [Dehumidifier ] Starting network listener. [07/09/2024, 12:04:46] [Thermostat] Existing TCC accessory (deviceID=9143835) THERMOSTAT [07/09/2024, 12:04:49] [Coway] Restoring existing accessory: Airmega (CONNECTED MIGHTY) [07/09/2024, 12:04:53] [midea-platform] All configured devices added to Homebridge [07/09/2024, 12:05:02] [homebridge-coway] This plugin generated a warning from the characteristic 'Current Temperature': characteristic value expected valid finite number and received "undefined" (undefined). See https://homebridge.io/w/JtMGR for more info. [07/09/2024, 12:05:02] [homebridge-coway] This plugin generated a warning from the characteristic 'Current Relative Humidity': characteristic value expected valid finite number and received "undefined" (undefined). See https://homebridge.io/w/JtMGR for more info.
Also, the light setting doesn't seem to adjust anything but it does make a beep on the device so something is happening lol
It only beeps when switching the light on, not off.
The slider doesn't work to adjust the fan speed either.
Only going into the settings portion and moving the fan speed works but not from the widget. Nothing happens when I move it up and down. The photo I uploaded is the portion that doesn't work. I have go into the actual device settings and move the slider left and right.
So in summary,
Light button doesn't work but beeps when switching to on but not off
Need to hide the humidity and temp sensors since they don't seem to be working at all
Widget slider for fan speed doesn't do anything. Only thing that adjusts fan speed is going into the settings and adjusting it there actually does anything.
I guess your purifier and my purifier works differently. (maybe Marvel vs Airmega) Would you please attach a screenshot of device control panel in IoCare app?
@nbraunstein Show me the control panel.
On the unit itself?
I thought I attached a control panel picture already.
Okay.. This is very different than my one. I guess I need to figure out how Coway distinguishes the devices in depth. I can't touch this problem for business days, so this would take more time.
I appreciate you taking the time to get it fixed. Thank you 🙏
Also, would it be possible to show the PM10 reading on the default widget in favorites? Right now it just displays "all on". Would be helpful it showed that information instead. Otherwise, I have to go to climate and click on it there.
Hi,
I'm getting the same error:
[25/10/2024, 14:24:32] [homebridge-coway] Adding new accessory: AIRMEGA AP-1512HHS (CONNECTED MIGHTY)
[25/10/2024, 14:24:34] [homebridge-coway] This plugin generated a warning from the characteristic 'Brightness': characteristic value expected valid finite number and received "NaN" (number). See https://homebridge.io/w/JtMGR for more info.
[25/10/2024, 14:24:34] [homebridge-coway] This plugin generated a warning from the characteristic 'PM2.5 Density': characteristic value expected valid finite number and received "NaN" (number). See https://homebridge.io/w/JtMGR for more info.
[25/10/2024, 14:24:34] [homebridge-coway] This plugin generated a warning from the characteristic 'VOC Density': characteristic value expected valid finite number and received "NaN" (number). See https://homebridge.io/w/JtMGR for more info.
[25/10/2024, 14:24:34] [homebridge-coway] This plugin generated a warning from the characteristic 'Current Relative Humidity': characteristic value expected valid finite number and received "NaN" (number). See https://homebridge.io/w/JtMGR for more info.
[25/10/2024, 14:24:34] [homebridge-coway] This plugin generated a warning from the characteristic 'Current Temperature': characteristic value expected valid finite number and received "NaN" (number). See https://homebridge.io/w/JtMGR for more info.
TypeError: Cannot read properties of undefined (reading 'barcode')
at CowayService.executeSetPayloads (/var/lib/homebridge/node_modules/homebridge-coway/homebridge/coway.ts:136:31)
at MarvelAirPurifier.executeSetPayloads (/var/lib/homebridge/node_modules/homebridge-coway/homebridge/accessories/accessory.ts:226:35)
at MarvelAirPurifier.executeSetPayload (/var/lib/homebridge/node_modules/homebridge-coway/homebridge/accessories/accessory.ts:230:27)
at /var/lib/homebridge/node_modules/homebridge-coway/homebridge/accessories/air-purifiers/marvel-air-purifier.ts:238:32
at Brightness.<anonymous> (/var/lib/homebridge/node_modules/homebridge-coway/homebridge/accessories/accessory.ts:252:13)
at Brightness.emit (node:events:519:28)
at /var/lib/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:2601:16
at new Promise (<anonymous>)
at Brightness.<anonymous> (/var/lib/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:2599:14)
at step (/var/lib/homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:195:27)
[25/10/2024, 14:24:34] [homebridge-coway] Child bridge process ended
[25/10/2024, 14:24:34] [homebridge-coway] Process Ended. Code: 1, Signal: null
[25/10/2024, 14:24:41] [homebridge-coway] Restarting Process...
[25/10/2024, 14:24:42] [homebridge-coway] Launched child bridge with PID 415264
[25/10/2024, 14:24:42] Registering platform 'homebridge-coway.Coway'
[25/10/2024, 14:24:42] [homebridge-coway] Loaded homebridge-coway v1.0.1 child bridge successfully
[25/10/2024, 14:24:42] Loaded 10 cached accessories from cachedAccessories.0E225AFD76C0.
[25/10/2024, 14:24:42] [homebridge-coway] Failed to reconfigure AIRMEGA AP-1512HHS
[25/10/2024, 14:24:42] [homebridge-coway] Failed to reconfigure AIRMEGA AP-1512HHS
[25/10/2024, 14:24:42] [homebridge-coway] Failed to reconfigure AIRMEGA AP-1512HHS
[25/10/2024, 14:24:42] [homebridge-coway] Failed to reconfigure AIRMEGA AP-1512HHS
[25/10/2024, 14:24:42] [homebridge-coway] Failed to reconfigure AIRMEGA AP-1512HHS
[25/10/2024, 14:24:42] [homebridge-coway] Failed to reconfigure AIRMEGA AP-1512HHS
[25/10/2024, 14:24:42] [homebridge-coway] Failed to reconfigure AIRMEGA AP-1512HHS
[25/10/2024, 14:24:42] [homebridge-coway] Failed to reconfigure AIRMEGA AP-1512HHS
[25/10/2024, 14:24:42] [homebridge-coway] Failed to reconfigure AIRMEGA AP-1512HHS
[25/10/2024, 14:24:42] [homebridge-coway] Failed to reconfigure AIRMEGA AP-1512HHS
[25/10/2024, 14:24:42] Homebridge v1.8.4 (HAP v0.12.2) (homebridge-coway) is running on port 59328.
[25/10/2024, 14:24:42]
NOTICE TO USERS AND PLUGIN DEVELOPERS
> Homebridge 2.0 is on the way and brings some breaking changes to existing plugins.
> Please visit the following link to learn more about the changes and how to prepare:
> https://github.com/homebridge/homebridge/wiki/Updating-To-Homebridge-v2.0
[25/10/2024, 14:24:46] [homebridge-coway] Adding new accessory: AIRMEGA AP-1512HHS (CONNECTED MIGHTY)
[25/10/2024, 14:24:48] [homebridge-coway] This plugin generated a warning from the characteristic 'Brightness': characteristic value expected valid finite number and received "NaN" (number). See https://homebridge.io/w/JtMGR for more info.
[25/10/2024, 14:24:48] [homebridge-coway] This plugin generated a warning from the characteristic 'PM2.5 Density': characteristic value expected valid finite number and received "NaN" (number). See https://homebridge.io/w/JtMGR for more info.
[25/10/2024, 14:24:48] [homebridge-coway] This plugin generated a warning from the characteristic 'VOC Density': characteristic value expected valid finite number and received "NaN" (number). See https://homebridge.io/w/JtMGR for more info.
[25/10/2024, 14:24:48] [homebridge-coway] This plugin generated a warning from the characteristic 'Current Relative Humidity': characteristic value expected valid finite number and received "NaN" (number). See https://homebridge.io/w/JtMGR for more info.
[25/10/2024, 14:24:48] [homebridge-coway] This plugin generated a warning from the characteristic 'Current Temperature': characteristic value expected valid finite number and received "NaN" (number). See https://homebridge.io/w/JtMGR for more info.
TypeError: Cannot read properties of undefined (reading 'barcode')
at CowayService.executeSetPayloads (/var/lib/homebridge/node_modules/homebridge-coway/homebridge/coway.ts:136:31)
at MarvelAirPurifier.executeSetPayloads (/var/lib/homebridge/node_modules/homebridge-coway/homebridge/accessories/accessory.ts:226:35)
at MarvelAirPurifier.executeSetPayload (/var/lib/homebridge/node_modules/homebridge-coway/homebridge/accessories/accessory.ts:230:27)
at /var/lib/homebridge/node_modules/homebridge-coway/homebridge/accessories/air-purifiers/marvel-air-purifier.ts:238:32
at Brightness.<anonymous> (/var/lib/homebridge/node_modules/homebridge-coway/homebridge/accessories/accessory.ts:252:13)
at Brightness.emit (node:events:519:28)
at /var/lib/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:2601:16
at new Promise (<anonymous>)
at Brightness.<anonymous> (/var/lib/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:2599:14)
at step (/var/lib/homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:195:27)
[25/10/2024, 14:24:48] [homebridge-coway] Child bridge process ended
[25/10/2024, 14:24:48] [homebridge-coway] Process Ended. Code: 1, Signal: null
Please let me know if I can provide any more info to help debug this.
Thanks!
Installed the beta and now it is working, thanks! Just one more thing, is it possible to remove some of the features that the device doesn't have (humidity sensor etc.)?
Bump
TypeError: Cannot read properties of undefined (reading 'barcode') at CowayService.executeSetPayloads (/var/lib/homebridge/node_modules/homebridge-coway/homebridge/coway.ts:136:31) at MarvelAirPurifier.executeSetPayloads (/var/lib/homebridge/node_modules/homebridge-coway/homebridge/accessories/accessory.ts:226:35) at MarvelAirPurifier.executeSetPayload (/var/lib/homebridge/node_modules/homebridge-coway/homebridge/accessories/accessory.ts:230:27) at /var/lib/homebridge/node_modules/homebridge-coway/homebridge/accessories/air-purifiers/marvel-air-purifier.ts:238:32 at Brightness. (/var/lib/homebridge/node_modules/homebridge-coway/homebridge/accessories/accessory.ts:252:13)
at Brightness.emit (node:events:519:28)
at /var/lib/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:2601:16
at new Promise ()
at Brightness. (/var/lib/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:2599:14)
at step (/var/lib/homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:195:27)
at Object.next (/var/lib/homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:176:57)
at /var/lib/homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:169:75
at new Promise ()
at Object.__awaiter (/var/lib/homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:165:16)
at Brightness.Characteristic.handleSetRequest (/var/lib/homebridge/node_modules/homebridge/node_modules/hap-nodejs/dist/lib/Characteristic.js:875:24)
at Brightness.Characteristic.setValue (/var/lib/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:2243:10)
at Lightbulb.Service.setCharacteristic (/var/lib/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Service.ts:767:35)
at /var/lib/homebridge/node_modules/homebridge-coway/homebridge/accessories/air-purifiers/marvel-air-purifier.ts:69:36
at MarvelAirPurifier.refreshCharacteristics (/var/lib/homebridge/node_modules/homebridge-coway/homebridge/accessories/accessory.ts:197:19)
at MarvelAirPurifier.refresh (/var/lib/homebridge/node_modules/homebridge-coway/homebridge/accessories/air-purifiers/marvel-air-purifier.ts:60:20)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at CowayPlatform.refreshDevicesParallel (/var/lib/homebridge/node_modules/homebridge-coway/homebridge/coway-platform.ts:77:13)
at HomebridgeAPI. (/var/lib/homebridge/node_modules/homebridge-coway/homebridge/coway-platform.ts:49:17)