Skip to content

Fishtank hfjh.fishbowl.v2 #1001

@joseant

Description

@joseant

Before submitting a new request, use the search to see if there is an existing issue for the device.

Device information:

Use miiocli device --ip <ip address> --token <token>.

Model: hfjh.fishbowl.v2
Hardware version: esp8266
Firmware version: 2.1.3

Additional context

I have already obtained the services and properties :

Device 'urn:miot-spec-v2:device:fish-tank:0000A0A2:hfjh-v2:1': Fish Tank with 3 services

  • Service siid 1: (Device Information): 4 props, 0 actions

      ## Properties ##
              siid 1: piid: 1 (Device Manufacturer): (string, unit: None) (acc: ['read'])
              siid 1: piid: 2 (Device Model): (string, unit: None) (acc: ['read'])
              siid 1: piid: 3 (Device Serial Number): (string, unit: None) (acc: ['read'])
              siid 1: piid: 4 (Current Firmware Version): (string, unit: None) (acc: ['read'])
    
  • Service siid 2: (Fish Tank): 3 props, 0 actions

      ## Properties ##
              siid 2: piid: 1 (Switch Status): (bool, unit: None) (acc: ['read', 'write', 'notify'])
              siid 2: piid: 2 (Water Pump): (bool, unit: None) (acc: ['read', 'write', 'notify'])
              siid 2: piid: 3 (Pump Flux): (uint8, unit: none) (acc: ['read', 'write', 'notify'])
                      Range: [5, 100, 1]
    
  • Service siid 4: (function): 17 props, 1 actions

      ## Properties ##
              siid 4: piid: 1 (mcu-type): (uint8, unit: none) (acc: ['read', 'notify'])
                      {'value': 0, 'description': 'None'}
                      {'value': 1, 'description': 'One'}
              siid 4: piid: 2 (ledboard-model): (uint8, unit: none) (acc: ['read', 'notify', 'write'])
                      {'value': 0, 'description': 'Sun'}
                      {'value': 1, 'description': 'Color'}
                      {'value': 2, 'description': 'Stream'}
              siid 4: piid: 3 (ledboard-brightness): (uint8, unit: none) (acc: ['read', 'notify', 'write'])
                      Range: [0, 100, 1]
              siid 4: piid: 4 (): (uint32, unit: rgb) (acc: ['read', 'notify', 'write'])
                      Range: [0, 16777215, 1]
              siid 4: piid: 5 (ledboard-color): (uint32, unit: rgb) (acc: ['read', 'notify', 'write'])
                      Range: [0, 16777215, 1]
              siid 4: piid: 6 (ledboard-stream): (uint16, unit: none) (acc: ['read', 'notify', 'write'])
                      Range: [0, 360, 1]
              siid 4: piid: 7 (ledboard-speed): (uint8, unit: none) (acc: ['read', 'notify', 'write'])
                      Range: [0, 100, 1]
              siid 4: piid: 8 (ledboard-time-switch): (bool, unit: none) (acc: ['read', 'notify', 'write'])
              siid 4: piid: 9 (ledboard-time-open): (string, unit: none) (acc: ['read', 'notify', 'write'])
              siid 4: piid: 10 (ledboard-time-close): (string, unit: none) (acc: ['read', 'notify', 'write'])
              siid 4: piid: 11 (feed-time-switch): (bool, unit: none) (acc: ['read', 'notify', 'write'])
              siid 4: piid: 12 (feed-time): (string, unit: none) (acc: ['read', 'notify', 'write'])
              siid 4: piid: 13 (feed-num): (uint8, unit: none) (acc: ['read', 'notify', 'write'])
                      Range: [1, 30, 1]
              siid 4: piid: 14 (key-switch): (bool, unit: none) (acc: ['read', 'notify', 'write'])
              siid 4: piid: 15 (feed-time-week): (uint8, unit: none) (acc: ['read', 'notify', 'write'])
                      Range: [0, 127, 1]
              siid 4: piid: 16 (feed-record): (string, unit: none) (acc: [])
              siid 4: piid: 17 (log): (string, unit: none) (acc: [])
    
      ## Actions ##
              siid 4: aiid 1 set-feed-single: in: [13] -> out: []
    
      ## Events ##
              siid 4: eiid 1 (feed-record): (args: [16])
              siid 4: eiid 2 (log-up): (args: [17])
    

The problem is I get this error, when I try to get properties:

miiocli -d device --ip 192.0.3.171 --token xxxxxxxxxxxxxxxxxxxxxxxxx raw_command get_properties "[{'did': '245935661', 'siid': 1, 'piid': 1}]"
INFO:miio.cli:Debug mode active
Running command raw_command
DEBUG:miio.protocol:Unable to decrypt, returning raw bytes: b''
DEBUG:miio.miioprotocol:Got a response: Container:
data = Container:
data = b'' (total 0)
value = b'' (total 0)
offset1 = 32
offset2 = 32
length = 0
header = Container:
data = b'!1\x00 \x00\x00\x00\x00\x0e\xa8\xae-\x00\x00/\xa9' (total 16)
value = Container:
length = 32
unknown = 0
device_id = unhexlify('0ea8ae2d')
ts = 1970-01-01 03:23:21
offset1 = 0
offset2 = 16
length = 16
checksum = b'\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff' (total 16)
DEBUG:miio.miioprotocol:Discovered 0ea8ae2d with ts: 1970-01-01 03:23:21, token: b'ffffffffffffffffffffffffffffffff'
DEBUG:miio.miioprotocol:192.0.3.171:54321 >>: {'id': 1, 'method': 'get_properties', 'params': [{'did': '245935661', 'siid': 1, 'piid': 1}]}
DEBUG:miio.miioprotocol:192.0.3.171:54321 (ts: 1970-01-01 03:23:22, id: 1) << {'id': 1, 'result': [{'did': '245935661', 'siid': 1, 'piid': 1, 'code': -4004}], 'exe_time': 60}
[{'did': '245935661', 'siid': 1, 'piid': 1, 'code': -4004}]

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions