eufy-security-client icon indicating copy to clipboard operation
eufy-security-client copied to clipboard

[Feature request]: Add support for Smart safe

Open Krhern18 opened this issue 3 years ago • 9 comments

Describe the solution you'd like

Smart safe

Krhern18 avatar Jul 18 '22 04:07 Krhern18

@Krhern18

In order for me to support this device, I need access to it. Could you please share your device with me (i need admin rights):

Thanks!

bropat avatar Jul 20 '22 14:07 bropat

Eufy security does not support device sharing with Smart Safe Wifi S12. What else can we do?

Krhern18 avatar Jul 20 '22 16:07 Krhern18

Maybe you can create a temporary account where you register the device. You can then share this with me. The prerequisite is that the device is accessible via Internet.

bropat avatar Jul 20 '22 18:07 bropat

Ok, I sent the info to the email that you previously provided.

Krhern18 avatar Jul 20 '22 19:07 Krhern18

Small update:

  • P2P connection up and running
  • Decrypted P2P communication (AES-128-CBC) for sending P2P commands to the device / receiving p2p notifications etc.

bropat avatar Jul 31 '22 08:07 bropat

@Krhern18

While testing the functionalities, I changed the setting in the Power Manager from "High-Performance Mode" to "Power-Save Mode". Now I can no longer change any settings via Wi-Fi. Could you please change the setting back to "High-Performance Mode".

Thanks and sorry ;)

bropat avatar Jul 31 '22 13:07 bropat

No problem, it's back on.

Krhern18 avatar Aug 01 '22 13:08 Krhern18

Update:

  • Sending commands to Smart Safe works (set settings, unlock, etc.).

bropat avatar Aug 06 '22 16:08 bropat

@Krhern18

I have almost completed the integration. I just need to test everything a last time, but the device is no longer visible under the shared account.

Could you please check this?

Thank you!

bropat avatar Aug 16 '22 16:08 bropat

@bropat Do you still need access to this device? I have the similar model T7400 that I'd like to get working in home assistant. Right now I can see the device in HA (with a motion sensor and a streaming sensor) - but I can't get the device to unlock.

didgeriwho avatar Oct 14 '22 00:10 didgeriwho

@didgeriwho Yes

bropat avatar Oct 14 '22 11:10 bropat

@bropat - sent to your email

didgeriwho avatar Oct 14 '22 13:10 didgeriwho

@didgeriwho

I need the PIN to test some features. Could you send it to me?

Thx!

bropat avatar Oct 29 '22 14:10 bropat

@didgeriwho

Thank you very much for sharing the device. In the next release, the device will be supported.

bropat avatar Oct 30 '22 17:10 bropat

@didgeriwho

Thank you very much for sharing the device. In the next release, the device will be supported.

🙏🙏🙏

didgeriwho avatar Oct 30 '22 19:10 didgeriwho

Hi @bropat

Seems like the client is still not allowing unlocking the device https://github.com/fuatakgun/eufy_security/issues/521#issuecomment-1366867281

didgeriwho avatar Dec 28 '22 19:12 didgeriwho

I might be missing some context here, I have used set_property(locked, False) and it is failing.

Do I need to use some other service with entering pin?

I have tried with device.unlock command.

I think, I understand it now, first I need to send device.verify_pin and later device.unlock

I am still working on this

fuatakgun avatar Dec 28 '22 19:12 fuatakgun

I have tried this order;

{
  "messageId": "verify", 
  "pin": "XXXXXX",
  "command": "device.verify_pin",
  "serialNumber": "T7400XXXXX" 
}

response:

{'type': 'result', 'success': False, 'errorCode': 'unknown_error'}

Of course, device.unlock also had failed.

{
  "messageId": "unlock", 
  "command": "device.unlock",
  "serialNumber": "T7400XXX" 
}

Result: {'type': 'result', 'success': False, 'errorCode': 'unknown_error'}

@bropat , looking for your guidance on;

  • correct flow of commands
  • result is missing message id for errors

fuatakgun avatar Dec 28 '22 20:12 fuatakgun

my bad, all is working, thanks again for your work @bropat

fuatakgun avatar Dec 31 '22 08:12 fuatakgun

correct order;

  • call verify_pin
  • wait for pin_verified event
  • call unlock

fuatakgun avatar Dec 31 '22 08:12 fuatakgun