Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Dafang camera (isa.camera.df3) support #996

Closed
Dorozhko opened this issue Mar 28, 2021 · 2 comments
Closed

Add Dafang camera (isa.camera.df3) support #996

Dorozhko opened this issue Mar 28, 2021 · 2 comments

Comments

@Dorozhko
Copy link

Dorozhko commented Mar 28, 2021

Device information:

https://miot-spec.org/miot-spec-v2/instance?type=urn:miot-spec-v2:device:camera:0000A01C:isa-df3:1

miiocli -d -o json_pretty device --ip 192.168.1.121 --token xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx raw_command miIO.info 2>&1

INFO:miio.cli:Debug mode active
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\x03\x8c\x8e\x06\xcaC' (total 16) value = Container: length = 32 unknown = 0 device_id = unhexlify('038c8e06') ts = 2021-03-28 18:26:11 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 038c8e06 with ts: 2021-03-28 18:26:11, token: b'ffffffffffffffffffffffffffffffff' DEBUG:miio.miioprotocol:192.168.1.121:54321 >>: {'id': 1, 'method': 'miIO.info', 'params': []} DEBUG:miio.miioprotocol:Retrying with incremented id, retries left: 3 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\x03\x8c\x8e\x06\xcaH' (total 16)
value = Container:
length = 32
unknown = 0
device_id = unhexlify('038c8e06')
ts = 2021-03-28 18:26:16
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 038c8e06 with ts: 2021-03-28 18:26:16, token: b'ffffffffffffffffffffffffffffffff'
DEBUG:miio.miioprotocol:192.168.1.121:54321 >>: {'id': 102, 'method': 'miIO.info', 'params': []}
DEBUG:miio.miioprotocol:Retrying with incremented id, retries left: 2
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\x03\x8c\x8e\x06``\xcaM' (total 16)
value = Container:
length = 32
unknown = 0
device_id = unhexlify('038c8e06')
ts = 2021-03-28 18:26: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 038c8e06 with ts: 2021-03-28 18:26:21, token: b'ffffffffffffffffffffffffffffffff'
DEBUG:miio.miioprotocol:192.168.1.121:54321 >>: {'id': 203, 'method': 'miIO.info', 'params': []}
DEBUG:miio.miioprotocol:192.168.1.121:54321 (ts: 2021-03-28 18:26:21, id: 203) << {'partner_id': '', 'id': 203, 'code': 0, 'message': 'ok', 'result': {'hw_ver': 'Linux', 'fw_ver': '5.5.1.243', 'ap': {'ssid': 'Test12345', 'bssid': 'XX:D7:XX:40:XX:3A'}, 'netif': {'localIp': '192.168.1.121', 'mask': '255.255.255.0', 'gw': '192.168.1.1'}, 'model': 'isa.camera.df3', 'mac': '34:XX:00:XX:FE:XX', 'token': 'xxxxxx4749665859696a30414cxxxxxx', 'life': 120}}
{
"hw_ver": "Linux",
"fw_ver": "5.5.1.243",
"ap": {
"ssid": "Test12345",
"bssid": "XX:D7:XX:40:6C:XX"
},
"netif": {
"localIp": "192.168.1.121",
"mask": "255.255.255.0",
"gw": "192.168.1.1"
},
"model": "isa.camera.df3",
"mac": "34:XX:00:XX:FE:XX",
"token": "xxxxxx4749665859696a30414cxxxxxx",
"life": 120
}

@Dorozhko
Copy link
Author

miiocli -d miotdevice --ip 192.168.1.121 --token 5541634749665859696a30414c4e5537 raw_command get_prop "[{'did': 'state', 'siid': 3, 'piid': 2 }]"

Error: No response from the device

miiocli -d miotdevice --ip 192.168.1.121 --token 5541634749665859696a30414c4e5537 info

Error: No response from the device

miiocli -d miotdevice --ip 192.168.1.121 --token 5541634749665859696a30414c4e5537 miot_info

Error: No response from the device

miiocli -d device --ip 192.168.1.121 --token 5541634749665859696a30414c4e5537 info

Error: No response from the device

@Dorozhko
Copy link
Author

Dorozhko commented Mar 29, 2021

Logs - MiHome&vevs
192.168.1.121
isa.camera.df3
5541634749665859696a30414c4e5537

DaFang "did": 59543046

2021-03-29 16:58:21 -> {"params":[{"did":"59543046","siid":2,"piid":1},{"did":"313277057","siid":2,"piid":1},{"did":"311356128","siid":2,"piid":1},{"did":"blt.4.165ntolksgk00","siid":2,"piid":1},{"did":"blt.4.165ntolksgk00","siid":2,"piid":2}],"datasource":3} /miotspec/prop/get
2021-03-29 16:58:21 <- {"code":0,"message":"","result":[{"did":"59543046","siid":2,"piid":1,"value":false,"code":0,"updateTime":1617025348},{"did":"313277057","siid":2,"piid":1,"value":false,"code":0,"updateTime":1616988632},{"did":"311356128","siid":2,"piid":1,"value":false,"code":0,"updateTime":1617024772},{"did":"blt.4.165ntolksgk00","siid":2,"piid":1,"value":24.8,"code":0,"updateTime":1617024867},{"did":"blt.4.165ntolksgk00","siid":2,"piid":2,"value":59.9,"code":0,"updateTime":1617026128}]}
2021-03-29 16:58:22 -> {"params":[{"did":"59543046","siid":2,"piid":1},{"did":"313277057","siid":2,"piid":1},{"did":"311356128","siid":2,"piid":1},{"did":"blt.4.165ntolksgk00","siid":2,"piid":1},{"did":"blt.4.165ntolksgk00","siid":2,"piid":2}],"datasource":3} /miotspec/prop/get
2021-03-29 16:58:22 <- {"code":0,"message":"","result":[{"did":"59543046","siid":2,"piid":1,"value":false,"code":0,"updateTime":1617025348},{"did":"313277057","siid":2,"piid":1,"value":false,"code":0,"updateTime":1616988632},{"did":"311356128","siid":2,"piid":1,"value":false,"code":0,"updateTime":1617024772},{"did":"blt.4.165ntolksgk00","siid":2,"piid":1,"value":24.8,"code":0,"updateTime":1617024867},{"did":"blt.4.165ntolksgk00","siid":2,"piid":2,"value":59.9,"code":0,"updateTime":1617026128}]}
2021-03-29 16:58:23 -> {"params":[{"did":"59543046","siid":2,"piid":1},{"did":"313277057","siid":2,"piid":1},{"did":"311356128","siid":2,"piid":1},{"did":"blt.4.165ntolksgk00","siid":2,"piid":1},{"did":"blt.4.165ntolksgk00","siid":2,"piid":2}],"datasource":3} /miotspec/prop/get
2021-03-29 16:58:23 <- {"code":0,"message":"","result":[{"did":"59543046","siid":2,"piid":1,"value":false,"code":0,"updateTime":1617025348},{"did":"313277057","siid":2,"piid":1,"value":false,"code":0,"updateTime":1616988632},{"did":"311356128","siid":2,"piid":1,"value":false,"code":0,"updateTime":1617024772},{"did":"blt.4.165ntolksgk00","siid":2,"piid":1,"value":24.8,"code":0,"updateTime":1617024867},{"did":"blt.4.165ntolksgk00","siid":2,"piid":2,"value":59.9,"code":0,"updateTime":1617026128}]}
2021-03-29 16:58:32 -> {"params":[{"did":"59543046","siid":2,"piid":1,"value":true}]} /miotspec/prop/set
2021-03-29 16:58:32 <- {"code":0,"message":"","result":[{"did":"59543046","siid":2,"piid":1,"code":0}]}
2021-03-29 16:58:35 -> {"params":[{"did":"59543046","siid":2,"piid":1,"value":false}]} /miotspec/prop/set
2021-03-29 16:58:35 <- {"code":0,"message":"","result":[{"did":"59543046","siid":2,"piid":1,"code":0}]}

rytilahti added a commit that referenced this issue May 5, 2021
[Full Changelog](0.5.5.2...0.5.6)

**Implemented enhancements:**

- RFC: Add a script to simplify finding supported properties for miio [\#919](#919)
- Improve test\_properties output [\#1024](#1024) ([rytilahti](https://github.com/rytilahti))
- Relax zeroconf version requirement [\#1023](#1023) ([rytilahti](https://github.com/rytilahti))
- Add test\_properties command to device class [\#1014](#1014) ([rytilahti](https://github.com/rytilahti))
- Add discover command to miiocli [\#1013](#1013) ([rytilahti](https://github.com/rytilahti))
- Fix supported oscillation angles of the dmaker.fan.p9 [\#1011](#1011) ([syssi](https://github.com/syssi))
- Add additional operation mode of the deerma.humidifier.jsq1 [\#1010](#1010) ([syssi](https://github.com/syssi))
- Roborock S7: Parse history details returned as dict [\#1006](#1006) ([fettlaus](https://github.com/fettlaus))

**Fixed bugs:**

- zeroconf 0.29.0 which is incompatible [\#1022](#1022)
- Remove superfluous decryption failure for handshake responses [\#1008](#1008)
- Skip pausing on Roborock S50 [\#1005](#1005)
- Roborock S7 after Firmware Update 4.1.2-0928 - KeyError [\#1004](#1004)
- No air quality value when aqi is 1 [\#958](#958)
- Fix exception on devices with removed lan\_ctrl [\#1028](#1028) ([Kirmas](https://github.com/Kirmas))
- Fix start bug and improve error handling in walkingpad integration [\#1017](#1017) ([dewgenenny](https://github.com/dewgenenny))
- gateway: fix zigbee lights [\#1016](#1016) ([starkillerOG](https://github.com/starkillerOG))
- Silence unable to decrypt warning for handshake responses [\#1015](#1015) ([rytilahti](https://github.com/rytilahti))
- Fix set\_mode\_and\_speed mode for airdog airpurifier [\#993](#993) ([alexeypetrenko](https://github.com/alexeypetrenko))

**Closed issues:**

- Add Dafang camera \(isa.camera.df3\) support [\#996](#996)
- Roborock S7 [\#989](#989)
- WalkingPad A1 Pro [\#797](#797)

**Merged pull requests:**

- Add basic dmaker.fan.1c support [\#1012](#1012) ([syssi](https://github.com/syssi))
- Always return aqi value \[Revert PR\#930\] [\#1007](#1007) ([bieniu](https://github.com/bieniu))
- Added S6 to skip pause on docking [\#1002](#1002) ([Sian-Lee-SA](https://github.com/Sian-Lee-SA))
- Added number of dust collections to CleaningSummary if available [\#992](#992) ([fettlaus](https://github.com/fettlaus))
- Reformat history data if returned as a dict/Roborock S7 Support \(\#989\) [\#990](#990) ([fettlaus](https://github.com/fettlaus))
- Add support for Walkingpad A1 \(ksmb.walkingpad.v3\) [\#975](#975) ([dewgenenny](https://github.com/dewgenenny))
rytilahti added a commit that referenced this issue May 5, 2021
[Full Changelog](0.5.5.2...0.5.6)

**Implemented enhancements:**

- RFC: Add a script to simplify finding supported properties for miio [\#919](#919)
- Improve test\_properties output [\#1024](#1024) ([rytilahti](https://github.com/rytilahti))
- Relax zeroconf version requirement [\#1023](#1023) ([rytilahti](https://github.com/rytilahti))
- Add test\_properties command to device class [\#1014](#1014) ([rytilahti](https://github.com/rytilahti))
- Add discover command to miiocli [\#1013](#1013) ([rytilahti](https://github.com/rytilahti))
- Fix supported oscillation angles of the dmaker.fan.p9 [\#1011](#1011) ([syssi](https://github.com/syssi))
- Add additional operation mode of the deerma.humidifier.jsq1 [\#1010](#1010) ([syssi](https://github.com/syssi))
- Roborock S7: Parse history details returned as dict [\#1006](#1006) ([fettlaus](https://github.com/fettlaus))

**Fixed bugs:**

- zeroconf 0.29.0 which is incompatible [\#1022](#1022)
- Remove superfluous decryption failure for handshake responses [\#1008](#1008)
- Skip pausing on Roborock S50 [\#1005](#1005)
- Roborock S7 after Firmware Update 4.1.2-0928 - KeyError [\#1004](#1004)
- No air quality value when aqi is 1 [\#958](#958)
- Fix exception on devices with removed lan\_ctrl [\#1028](#1028) ([Kirmas](https://github.com/Kirmas))
- Fix start bug and improve error handling in walkingpad integration [\#1017](#1017) ([dewgenenny](https://github.com/dewgenenny))
- gateway: fix zigbee lights [\#1016](#1016) ([starkillerOG](https://github.com/starkillerOG))
- Silence unable to decrypt warning for handshake responses [\#1015](#1015) ([rytilahti](https://github.com/rytilahti))
- Fix set\_mode\_and\_speed mode for airdog airpurifier [\#993](#993) ([alexeypetrenko](https://github.com/alexeypetrenko))

**Closed issues:**

- Add Dafang camera \(isa.camera.df3\) support [\#996](#996)
- Roborock S7 [\#989](#989)
- WalkingPad A1 Pro [\#797](#797)

**Merged pull requests:**

- Add basic dmaker.fan.1c support [\#1012](#1012) ([syssi](https://github.com/syssi))
- Always return aqi value \[Revert PR\#930\] [\#1007](#1007) ([bieniu](https://github.com/bieniu))
- Added S6 to skip pause on docking [\#1002](#1002) ([Sian-Lee-SA](https://github.com/Sian-Lee-SA))
- Added number of dust collections to CleaningSummary if available [\#992](#992) ([fettlaus](https://github.com/fettlaus))
- Reformat history data if returned as a dict/Roborock S7 Support \(\#989\) [\#990](#990) ([fettlaus](https://github.com/fettlaus))
- Add support for Walkingpad A1 \(ksmb.walkingpad.v3\) [\#975](#975) ([dewgenenny](https://github.com/dewgenenny))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant