PhilippEngler / eufy-security-hm

AddOn for HomeMatic CCU and compatible devices to interact with eufy security devices.
MIT License
13 stars 2 forks source link

Support for Eufy Solocam S340 #13

Closed Zolle04 closed 2 weeks ago

Zolle04 commented 1 month ago

It would be nice to get support for S340 (T8170). thx

PhilippEngler commented 1 month ago

The device should be compatible since v3.0.0. If you are running an CCU3 with original firmware from eq-3, you must upgrade to RaspberryMatic to use v3.0.0. I am not able to back-port this to get it working with the original firmware from eq-3.

If you receiving the messages in the device settings, that the device is not fully compatible, please generate the json-files linked in the message and send them to me. Then I can finish the implementation of the device.

Zolle04 commented 1 month ago

I'm running on Raspberrymatic. The indoor cam shows the settings as expected but the S340 have problems. image

PhilippEngler commented 1 month ago

Could you please open the web developer tools (on Firefox for example click on the "hamburger menu" than 'More tools' and 'Web Developer Tools'. There, please select "Console".

Now please reload the device page and try to access the settings again. Than there should be logged an error there. Can you please post this error here?

Zolle04 commented 1 month ago

image

PhilippEngler commented 1 month ago

Thank you. Also for making the screenshots. Could you please get the JSON-files from the following link and send them to me (please replace <CCU3> with the address of your ccu and <SERIAL> with the serial of your S340 (T8170))?

I have found the place where it comes to problem, but I have no idea why. Maybe I need this files again, if the v3.0.2 will be available (either today or next weekend).

Zolle04 commented 1 month ago

see attachments getDevicePropertiesMetadata.txt getDevicePropertiesTruncated.txt getStationPropertiesMetadata.txt getStationPropertiesTruncated.txt

anyway: thx for your quick response

PhilippEngler commented 1 month ago

The new v3.0.2 is now available. Please check if the device settings are shown with the new version. Anyway, your T8170 should now be shown only once on the device page (the "4G LTE Kameras" section should now be gone). And also I would like to ask you to send me the four files above from the new version, than I hopefully can implement the full support for T8170.

Zolle04 commented 1 month ago

image image 4G Device is gone :-) Properties now available. But no full support

PhilippEngler commented 1 month ago

Great. Than I would like to ask you if you can create the four files again with the new v3.0.2 and send them to me. Than I can fully integrate the device.

Zolle04 commented 1 month ago

getStationPropertiesTruncated.txt getStationPropertiesMetadata.txt getDevicePropertiesTruncated.txt getDevicePropertiesMetadata.txt

PhilippEngler commented 1 month ago

Thank you. It will take some days and I will come back to you...

PhilippEngler commented 1 month ago

So far it looks really nice, but I have some questions a it would be fine if you can answer them:

The other settings seems to be already correctly implemented.

Zolle04 commented 1 month ago

so there will be a Version?

Zolle04 commented 1 month ago

seems to be connection issue. It states: No P2P Connection, although everything is fine after restarting the camera.

PhilippEngler commented 1 month ago

The timezone is an interesting issue, because the timezone in your json is GMT+02:00|1.1375 where it must be CET-1CEST,M3.5.0,M10.5.0/3|1.1375 for Berlin.

The issue with the P2P connection I have already seen in your json files. Are there any info in the log files? As this is the first battery-powered solo device for this add-on, this must not be an error - maybe this is due to energy saving. With the next version (coming hopefully in a couple of days), there will be some changes related to this issue and it would be great, if you can do some tests.

Zolle04 commented 1 month ago

2024-08-05 18:57:53.808 ERROR [addon] Error occured at setGuardMode: Failed to communicate with station. 2024-08-05 18:59:12.349 ERROR [addon] Error occured at setGuardMode: Failed to switch mode for station T8170T1024160C35. 2024-08-05 19:01:13.232 INFO [http] Connected to station T8170T1024160C35 on host 192.168.0.164 and port 17411 2024-08-05 19:01:13.502 WARN [p2p] Command aged out from send queue for station T8170T1024160C35 { commandType: 1350, nestedCommandType: 1306, channel: 0, ageing: 13447338, maxAgeing: 120000

2024-08-11 11:27:11.360 WARN [p2p] Command aged out from send queue for station T8170T1024160C35 { commandType: 1144, nestedCommandType: undefined, channel: 255, ageing: 173628866, maxAgeing: 120000 } 2024-08-11 11:27:12.157 INFO [http] Disconnected from station T8170T1024160C35 2024-08-11 11:27:12.158 INFO [addon] Event "Close": station: T8170T1024160C35 2024-08-11 11:31:08.916 ERROR [p2p] All address lookup tentatives failed. { stationSN: 'T8170T1024160C35' } 2024-08-11 11:31:08.918 INFO [http] Timeout connecting to station T8170T1024160C35 2024-08-11 16:03:38.535 WARN [p2p] Tried all hosts, no connection could be established to station T8170T1024160C35. 2024-08-11 16:03:38.538 INFO [http] Timeout connecting to station T8170T1024160C35 2024-08-11 16:09:35.882 ERROR [addon] Error occured at setGuardMode: Failed to switch mode for station T8170T1024160C35.

Zolle04 commented 1 month ago

I've generated Trace Level Logs. I have no problems if you need further infos...

PhilippEngler commented 1 month ago

I have uploaded a beta release (v3.0.3-b1). Could you please send me the generated trace log files (the mail address you can find in the package.json file). Do you have any other device than the T8170? Please note that in the log files contains the full serial numbers and other personal data.

Zolle04 commented 1 month ago

I have send you the logs. The version seems to work. First tests are successful:-)

Zolle04 commented 1 month ago

image Reaction have a problem. No execution of the program. image

PhilippEngler commented 1 month ago

I have seen the files right now, thank you. We will see what happens, there are some messages that the T8170 have got another ip address. Have you fixed the ip address in your dhcp server? In the case, the p2p connection will get lost again, please also try the setting "fast connection" instead of "local only".

Zolle04 commented 1 month ago

I've a Fritzbox which manage the DNS. I fixed the IP Adress in the seetings. So I expect no unforced switch of the IP

Zolle04 commented 1 month ago

I've double checked the DNS settings. As I said. It is fixed and it is the same IP Adress since I start the ticket

PhilippEngler commented 1 month ago

Reaction have a problem. No execution of the program.

I have checked it, here there is no problem. Error 401 indicate a authentication error. If the ip you have entered is the ip of the ccu the addon is running on, you can try to use localhost.

Zolle04 commented 1 month ago

localhost works 👍

PhilippEngler commented 1 month ago

I've double checked the DNS settings. As I said. It is fixed and it is the same IP Adress since I start the ticket

Fine, I will check it. In the log, there are two or three ip addresses (if you want to check by yourself, search for LOCAL_LOOKUP_RESP - Unwanted device was found, don't connect to it in the log you sent me first).

Zolle04 commented 1 month ago

Does the API supports the use of predefined camera positions?

PhilippEngler commented 1 month ago

Does the API supports the use of predefined camera positions?

Not sure, but I believe it is not supported at the moment. Anyway, I have ordered a T8170 for testing purposes...

PhilippEngler commented 3 weeks ago

Does the API supports the use of predefined camera positions?

The client supports this. I have it for now implemented with a T8416 (IndoorCam S350), where I have found some other problems. The next step is to implement the T8170. If the T8170 supports presets this in the same manner as the T8460, presets will be available...

Zolle04 commented 3 weeks ago

Unfortunately the addon hangs image I'm not able to restart the service

PhilippEngler commented 3 weeks ago

You can restart the addon also via the ccu webui. Go to "Systemsteuerung" | "Zusatzsoftware", there is a restart button. Please have also a look at CCU Addon für eufy Security Kameras - HomeMatic Forum...

PhilippEngler commented 3 weeks ago

With the v3.1.0-b1 the T8170 work now as a standalone device with this add-on. On the info-page you will also find how you can use the preset-positions by scripts...

Zolle04 commented 3 weeks ago

I've some stability issues. But I test the new version.Thx anyway