Closed oleg-d closed 1 year ago
There is no support for video feed locally, as far as I can tell video support requires the cloud for Tuya cameras. I do see a still image in the log though, but it is the only data coming from the device, which may not be the case all the time.
@oleg-d , according to this website, this camera offers onvif and local stream via rtsp. Could you confirm this? If so, I might buy one too :) and then I could try to create tuya-local setup...
The dp data contains onvif settings, but it is not clear whether that is enough to get local camera streaming working. In any case, onvif video would be best handled by another integration which I think already exists.
confirmed that model WIFICO11CWT works with ONVIF integration on Home Assistant. ONVIF must switched on with mobil app (e.g. Nedis SmartLife), user:admin and pass: admin (by default).
ONFIL streams (with credentials above): onvif://admin:admin@your-camera-ip:8000?subtype=IPCProfilesToken0 (HD) onvif://admin:admin@your-camera-ip:8000?subtype=IPCProfilesToken1 (low res)
works also with VLC player on network stream (with credentials above):: rtsp://admin:admin@your-camera-ip:8554/Streaming/Channels/101 (HD) rtsp://admin:admin@your-camera-ip:8554/Streaming/Channels/102 (low res)
I've just got the same camera and rtsp working, but it does not seem to broadcast any dpids by itself (tried with tinytuya). I do however see it changing the values on the mobile app request. Sadly, tuya-local seems to wait for dpid 115, and I have no idea how to force the camera to broadcast. @oleg-d, did you do any tricks with mobile app to do that? I can smell "new firmware" issues again...
@make-all , is there a way to force tuya-local to use a manually-selected yaml config file for a device?
@szupi-ipuzs I didn't do any tricks on the mobile app, I am simply using the Smart Life app (not the Nedis app).
Just for the record, I managed to make the camera return dpids values by using this simple tinytuya script:
import tinytuya
#tinytuya.set_debug(True)
dpids = [101, 103, 104, 106, 108, 109, 110, 111, 115, 117, 134, 139, 140, 141, 150, 151, 168, 169, 253, 254, 255]
for dpid in dpids:
d = tinytuya.Device('REDACTED', 'REDACTED',
'REDACTED',
'device22')
d.set_version(3.3)
print(" > Send Request for dpid " + str(dpid) + " < ")
d.add_dps_to_request(dpid)
payload = d.generate_payload(tinytuya.DP_QUERY)
d.send(payload)
data = d.receive()
while data:
print('Received Payload: %r' % data)
data = d.receive()
So it seems I got a "device22" issue, where each dpid needs to be requested separately (as described eg. here) @make-all , any chance for integrating this way of device detection in tuya-local? Maybe as an option, for the "advanced" users? If we know the device is of "22" type and we know the dpids...
UPDATE: I've just noticed that simply querying the dpids with the above scripts resets the values to defaults and even triggers formatting of sd-card. So right now I don't recommend using this solution...
Log Message
Information about DPS mappings
Product ID
Information about how the device functions
Link to product page on Nedis website https://nedis.com/en-us/product/safety-and-security/cameras/outdoor-cameras/550671323/smartlife-outdoor-camera-wi-fi-hd-720p-ip65-internal-16gb-12-v-dc-with-motion-sensor-night-vision-silver-white
To be honest I am just looking to get the video feed into Tuya Local HA I would be happy. Not planning on using any of the settings through HA.