scrypted-tuya 0.1.0-beta.9 → 0.1.1-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,47 +1,103 @@
1
- <details>
2
- <summary>Changelog</summary>
1
+ # Changelog
3
2
 
4
- ### 0.1.0-beta.7
3
+ ## 0.1.1-beta
4
+
5
+ - Tuya RTSP Bridge port 8600 default across full stack.
6
+ - Smart Life P2P HD RTSP stream integration with online auto-status, dynamic UI naming, and unconstrained HEVC/H.264 FFmpeg negotiation for Rebroadcast and snapshots.
7
+
8
+ ## 0.1.0-beta.17
9
+
10
+ - Initialize `online: true` in `TuyaCamera` constructor when P2P RTSP URL is configured.
11
+ - Remove hardcoded `codec: "h264"` constraint in `getVideoStreamOptions` to support HEVC/H.265 streams from Tuya RTSP Bridge without parsing errors.
12
+
13
+ ## 0.1.0-beta.16
14
+
15
+ - Set stream display name to `Smart Life P2P HD` dynamically when P2P RTSP is configured.
16
+ - Bypass Tuya Cloud offline check when P2P RTSP URL is present and mark camera online locally.
17
+ - Remove hardcoded audio codec requirement to allow FFmpeg dynamic audio negotiation.
18
+
19
+ ## 0.1.0-beta.15
20
+
21
+ - Restore stable `cloud-rtsp` stream ID and `MediaStreamUrl` output to fix Rebroadcast stream bindings.
22
+ - Let Scrypted's standard FFmpeg Camera mixin handle snapshot extraction from the P2P RTSP stream.
23
+ - Set `source: "local"` when P2P RTSP is configured so Scrypted enables unthrottled local rebroadcast and prebuffering.
24
+
25
+ ## 0.1.0-beta.14
26
+
27
+ - Return `ScryptedMimeTypes.FFmpegInput` with `-rtsp_transport tcp` in `getVideoStream` for reliable Rebroadcast and FFmpeg streaming.
28
+ - Convert video streams to JPEG image buffers in `takePicture` for working snapshot generation.
29
+ - Dynamically label stream as `Smart Life P2P HD RTSP` (`id: p2p-hd-rtsp`) when P2P RTSP is configured.
30
+
31
+ ## 0.1.0-beta.13
32
+
33
+ - Implement `Camera` interface (`takePicture` & `getPictureOptions`) using the active video stream (P2P HD RTSP or Cloud RTSP) for snapshots.
34
+ - Dynamic stream source classification (`local` when P2P RTSP is configured, `cloud` otherwise).
35
+ - Advertise all standard stream destinations (`local`, `remote`, `local-recorder`, `remote-recorder`, etc.) for seamless Scrypted stream auto-routing.
36
+ - Fire `onDeviceEvent` on P2P RTSP URL setting change to immediately re-route streams and snapshots.
37
+
38
+ ## 0.1.0-beta.12
39
+
40
+ - Switch Tuya RTSP Bridge default RTSP port to 8600 across the engine, backend, and Web UI.
41
+ - Cleanly patch upstream bridge code during Docker build and startup.
42
+ - Update RTSP URL documentation and camera placeholder to port 8600.
43
+
44
+ ## 0.1.0-beta.11
45
+
46
+ - Add ingress and webui support to Tuya RTSP Bridge add-on (sidebar integration + Open Web UI button).
47
+ - Add ffprobe resolution hint and camera stream URL logging in getVideoStream.
48
+ - Add qualityToResolution() mapping for stream options hint.
49
+ - 1.5s delay between quality command and RTSP allocation.
50
+ - Improved logging for quality command acceptance/rejection.
51
+ - Rename tuya_rtsp_bridge to bridge.
52
+ - Remove chat.json from repo.
53
+
54
+ ## 0.1.0-beta.10
55
+
56
+ - Add per-camera Smart Life P2P HD RTSP override while preserving Tuya events and controls.
57
+ - Add a Home Assistant add-on definition for QR-authenticated Smart Life WebRTC/P2P to RTSP bridging.
58
+ - Pin the bridge backend to `DanEng1982/tuya-rtsp-bridge` v1.2.4.
59
+ - Fix the add-on startup log command outside the Supervisor bashio shell and add an HTTP health check.
60
+
61
+ ## 0.1.0-beta.9
62
+
63
+ - Request the highest recognised writable quality advertised by the camera schema before RTSP allocation.
64
+ - Safely fall back to Tuya's server-selected quality.
65
+
66
+ ## 0.1.0-beta.7
5
67
 
6
68
  fix: fix setTimeout undefined function
7
69
  bump version
8
70
 
9
-
10
- ### 0.1.0-beta.6
71
+ ## 0.1.0-beta.6
11
72
 
12
73
  chore: update changelog
13
- fix: ensure timeout is actually correct and bound corretly
74
+ fix: ensure timeout is actually correct and bound correctly
14
75
  chore: bump version
15
76
 
16
-
17
- ### 0.1.0-beta.5
77
+ ## 0.1.0-beta.5
18
78
 
19
79
  chore: update changelog
20
80
  fix: use correct property for checking connection state
21
81
  chore: bump version
22
82
 
23
-
24
- ### 0.1.0-beta.4
83
+ ## 0.1.0-beta.4
25
84
 
26
85
  fix: resolve mqtt connection issues
27
86
  bump version
28
87
 
29
-
30
- ### 0.1.0-beta.3
88
+ ## 0.1.0-beta.3
31
89
 
32
90
  fixchangelog
33
91
  changelog
34
92
  quick fix
35
93
  bump to beta 3
36
94
 
37
-
38
- ### 0.1.0-beta.2
95
+ ## 0.1.0-beta.2
39
96
 
40
97
  update commit
41
98
  bump version
42
99
 
43
-
44
- ### 0.1.0-beta.1
100
+ ## 0.1.0-beta.1
45
101
 
46
102
  improve mqtt reconnect, also update status
47
103
  wip: prevent setting motion if device has no motion detection
@@ -49,77 +105,57 @@ fix: resolve indicator not updating
49
105
  feat: add support for light accessory in camera
50
106
  wip: fetch rtsp from Tuya Sharing SDK
51
107
 
52
-
53
- ### 0.1.0
108
+ ## 0.1.0
54
109
 
55
110
  wip: allow changing between different login methods
56
111
  wip: remove websocket for cameras since they are not supported
57
112
 
58
-
59
- ### 0.0.9
113
+ ## 0.0.9
60
114
 
61
115
  wip: update components
62
116
 
63
-
64
- ### 0.0.8
117
+ ## 0.0.8
65
118
 
66
119
  format code
67
120
  replace tool to use `ffmpeg` and bump v0.0.8
68
121
 
69
-
70
- ### 0.0.7
122
+ ## 0.0.7
71
123
 
72
124
  plugins: update tsconfig.json
73
125
  Updated Tuya to v0.0.7 (#408)
74
126
 
75
-
76
- ### 0.0.7-beta.2
127
+ ## 0.0.7-beta.2
77
128
 
78
129
  tuya: fix crlf in candidate, fix empty stream name in rebroadcast, webrtc logging
79
130
  remove null candidate
80
131
 
132
+ ## 0.0.7-beta.1
81
133
 
82
- ### 0.0.7-beta.1
83
-
84
- Fix issue not being able to select your prebufffer
85
-
134
+ Fix issue not being able to select your prebuffer
86
135
 
87
- ### 0.0.7-beta.0
136
+ ## 0.0.7-beta.0
88
137
 
89
138
  Added support for webrtc, testing needed
90
139
 
91
-
92
- ### 0.0.6
140
+ ## 0.0.6
93
141
 
94
142
  Improvements in WebRTC
95
143
  add initial support for webrtc
96
- alllow triggering doorbell (#361)
97
-
144
+ allow triggering doorbell (#361)
98
145
 
99
- ### 0.0.5
146
+ ## 0.0.5
100
147
 
101
148
  [Tuya Plugin] Fixed issue with devices not loading (#355)
102
149
 
103
-
104
- ### 0.0.4
150
+ ## 0.0.4
105
151
 
106
152
  Fix race condition for Tuya Devices (#351)
107
153
 
108
-
109
- ### 0.0.3
154
+ ## 0.0.3
110
155
 
111
156
  tuya: publish
112
157
 
113
-
114
- ### 0.0.1
158
+ ## 0.0.1
115
159
 
116
160
  tuya: project cleanups, remove unnecessary dependencies
117
161
  Add Tuya Camera (and Doorbell Cameras) Support (#350)
118
-
119
-
120
- </details>
121
-
122
- ## 0.1.0-beta.9
123
-
124
- - Request the highest recognised writable quality advertised by the camera schema before RTSP allocation.
125
- - Safely fall back to Tuya's server-selected quality.
package/README.md CHANGED
@@ -76,3 +76,18 @@ This repository is a standalone extraction rather than a GitHub network fork bec
76
76
  The upstream Scrypted repository uses directory-specific licensing and does not declare a conventional SPDX license specifically for `plugins/tuya`. The original upstream notice is preserved in `UPSTREAM-LICENSE-NOTICE.md`.
77
77
 
78
78
  Review the upstream terms and obtain any required permission before redistributing this fork or publishing derived packages. Copyright remains with the original contributors.
79
+
80
+ ## Smart Life P2P HD through the Home Assistant add-on
81
+
82
+ For cameras that remain in **Smart Life**, Tuya Cloud RTSP may be fixed at 640×360. This repository therefore also exposes a Home Assistant add-on based on [DanEng1982/tuya-rtsp-bridge](https://github.com/DanEng1982/tuya-rtsp-bridge), which uses the MIT-licensed [seydx/tuya-ipc-terminal](https://github.com/seydx/tuya-ipc-terminal) WebRTC/P2P engine.
83
+
84
+ 1. In Home Assistant, open **Settings → Add-ons → Add-on Store → Repositories**.
85
+ 2. Add `https://github.com/resonaura/scrypted-tuya`.
86
+ 3. Install and start **Tuya RTSP Bridge**.
87
+ 4. Open `http://HOME_ASSISTANT_IP:8787`, create a QR code, then scan and confirm it in Smart Life.
88
+ 5. Copy the camera HD URL. It has the form `rtsp://HOME_ASSISTANT_IP:8600/CameraName/hd`.
89
+ 6. In Scrypted, open the matching camera created by this Tuya plugin and set **Smart Life P2P HD RTSP URL** to that URL.
90
+
91
+ The Tuya plugin will keep handling discovery, online state, motion, doorbell events, and controls. Video will come from the P2P/WebRTC bridge using the camera's main/HD stream. Removing the override restores the Tuya Cloud RTSP fallback.
92
+
93
+ The add-on is pinned to Tuya RTSP Bridge `v1.2.4` rather than an unversioned branch.