0x5e / homebridge-tuya-platform

Make homebridge-tuya-platform great again.
MIT License
206 stars 58 forks source link

Multifunction alarm Missing one of the required schema: [ 'sos_state' ] #443

Open ShayL1987 opened 5 months ago

ShayL1987 commented 5 months ago

Prerequisite

Cache

Version

1.7.0-beta.53

Device Infomation JSON File

[ { "code": "master_mode", "value": "disarmed" }, { "code": "delay_set", "value": 20 }, { "code": "alarm_time", "value": 1 }, { "code": "switch_alarm_sound", "value": true }, { "code": "switch_alarm_light", "value": true }, { "code": "switch_mode_sound", "value": true }, { "code": "switch_kb_sound", "value": false }, { "code": "switch_kb_light", "value": true }, { "code": "zone_attribute", "value": "MODE_HOME_ARM" }, { "code": "muffling", "value": true }, { "code": "alarm_message" }, { "code": "switch_alarm_propel", "value": true }, { "code": "alarm_delay_time", "value": 20 }, { "code": "master_state", "value": "normal" }, { "code": "factory_reset", "value": false }, { "code": "sub_class", "value": "remote_controller" }, { "code": "sub_type", "value": "OTHER" }, { "code": "sub_admin" }, { "code": "alarm_call_unit" } ]

{
  "result": [
    {
      "active_time": 1683100983,
      "bind_space_id": "45759039",
      "category": "mal",
      "create_time": 1681991455,
      "custom_name": "Security Alarm ",
      "icon": "smart/icon/ay15500268672065IQ53/e34e9fa4032bbee6fe6c47f52a6358a4.jpg",
      "id": "bfe9497220b00ec8dckavz",
      "ip": "xxxxxxxxx",
      "is_online": true,
      "lat": "31.8000",
      "local_key": "38c200271b0a045c",
      "lon": "34.7900",
      "model": "PG103/PG105/PG106/PG107/PG109",
      "name": "Multifunction alarm",
      "product_id": "gyitctrjj1kefxp2",
      "product_name": "报警主机V2.4",
      "sub": false,
      "time_zone": "+03:00",
      "update_time": 1706445701,
      "uuid": "xxxxxx"
    }
  ],
  "success": true,
  "t": 1706537238826,
  "tid": "xxxxxxxxxx"

Device Control Mode

DP Instruction

Logs

[29/01/2024, 14:04:46] [Tuya] [Security Alarm ] Missing one of the required schema: [ 'sos_state' ]
[29/01/2024, 14:04:46] [Tuya] [Security Alarm ] Please switch device control mode to "DP Insctrution", and set `deviceOverrides` manually.
[29/01/2024, 14:04:46] [Tuya] [Security Alarm ] Detail information: https://github.com/0x5e/homebridge-tuya-platform#faq
[29/01/2024, 14:04:46] [Tuya] [Security Alarm ] Existing schema: [
  {
    code: 'OtherEvent',
    mode: 'ro',
    type: 'Enum',
    property: { range: [ 'Normal', 'TAMPER', [length]: 2 ] }
  },
  {
    code: 'PowerEvent',
    mode: 'ro',
    type: 'Enum',
    property: {
      range: [ 'normal', 'powerDisconnect', 'BatteryIsLow', [length]: 3 ]
    }
  },
  { code: 'alarm_call_unit', mode: 'rw', type: 'Raw', property: {} },
  {
    code: 'alarm_delay_time',
    mode: 'rw',
    type: 'Integer',
    property: { unit: 's', min: 0, max: 1000, scale: 0, step: 1 }
  },
  { code: 'alarm_message', mode: 'rw', type: 'Raw', property: {} },
  {
    code: 'alarm_time',
    mode: 'rw',
    type: 'Integer',
    property: { unit: 'min', min: 0, max: 1000, scale: 0, step: 1 }
  },
  {
    code: 'delay_set',
    mode: 'rw',
    type: 'Integer',
    property: { unit: 's', min: 0, max: 1000, scale: 0, step: 1 }
  },
  { code: 'factory_reset', mode: 'rw', type: 'Boolean', property: {} },
  {
    code: 'master_mode',
    mode: 'rw',
    type: 'Enum',
    property: { range: [ 'disarmed', 'arm', 'home', 'sos', [length]: 4 ] }
  },
  {
    code: 'master_state',
    mode: 'rw',
    type: 'Enum',
    property: { range: [ 'normal', 'alarm', [length]: 2 ] }
  },
  { code: 'muffling', mode: 'rw', type: 'Boolean', property: {} },
  { code: 'sub_admin', mode: 'rw', type: 'Raw', property: {} },
  {
    code: 'sub_class',
    mode: 'rw',
    type: 'Enum',
    property: {
      range: [ 'remote_controller', 'detector', 'socket', [length]: 3 ]
    }
  },
  {
    code: 'sub_state',
    mode: 'ro',
    type: 'Enum',
    property: { range: [ 'normal', 'alarm', 'fault', 'others', [length]: 4 ] }
  },
  {
    code: 'sub_type',
    mode: 'rw',
    type: 'Enum',
    property: {
      range: [
        'OTHER',      'DOOR',
        'PIR',        'SOS',
        'ROOM',       'WINDOW',
        'BALCONY',    'FENCE',
        'SMOKE',      'GAS',
        'CO',         'WATER',
        [length]: 12
      ]
    }
  },
  {
    code: 'switch_alarm_light',
    mode: 'rw',
    type: 'Boolean',
    property: {}
  },
  {
    code: 'switch_alarm_propel',
    mode: 'rw',
    type: 'Boolean',
    property: {}
  },
  {
    code: 'switch_alarm_sound',
    mode: 'rw',
    type: 'Boolean',
    property: {}
  },
  {
    code: 'switch_kb_light',
    mode: 'rw',
    type: 'Boolean',
    property: {}
  },
  {
    code: 'switch_kb_sound',
    mode: 'rw',
    type: 'Boolean',
    property: {}
  },
  {
    code: 'switch_mode_sound',
    mode: 'rw',
    type: 'Boolean',
    property: {}
  },
  {
    code: 'telnet_state',
    mode: 'ro',
    type: 'Enum',
    property: {
      range: [
        'normal',
        'network_no',
        'phone_no',
        'sim_card_no',
        'network_search',
        'signal_level_1',
        'signal_level_2',
        'signal_level_3',
        'signal_level_4',
        'signal_level_5',
        [length]: 10
      ]
    }
  },
  {
    code: 'zone_attribute',
    mode: 'rw',
    type: 'Enum',
    property: {
      range: [
        'MODE_HOME_ARM',
        'MODE_ARM',
        'MODE_24',
        'MODE_OFF',
        'MODE_DOORBELL',
        'MODE_24_SILENT',
        'HOME_ARM_NO_DELAY',
        'ARM_NO_DELAY',
        [length]: 8
      ]
    }
  },
  { code: 'zone_number', mode: 'ro', type: 'Raw', property: {} },
  [length]: 24
]

Other Infomations

.

yusufd1 commented 4 months ago

@0x5e do you have any solution for this. I have the same problem.

yusufd1 commented 3 months ago

@ShayL1987 have you made any progress on this one?

ShayL1987 commented 2 months ago

Any update?

ShayL1987 commented 2 months ago

@ShayL1987 have you made any progress on this one?

No. I ain't able to integrate via the plugin.