From a4292035a8ef0dd8c9e58dc1d32a61807dd36f4d Mon Sep 17 00:00:00 2001 From: V-R-E <75820619+V-R-E@users.noreply.github.com> Date: Sat, 25 Jan 2025 04:02:12 -0500 Subject: [PATCH 1/2] Update json_infrared.md Added note and tip about UDP Sync notifications only working with JSON API --- docs/interfaces/json-ir/json_infrared.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/interfaces/json-ir/json_infrared.md b/docs/interfaces/json-ir/json_infrared.md index 1c44132ec..385ec7345 100644 --- a/docs/interfaces/json-ir/json_infrared.md +++ b/docs/interfaces/json-ir/json_infrared.md @@ -17,7 +17,7 @@ The default sensor pin is GPIO4. It can be changed in the WLED settings. ### JSON IR Remote The JSON IR remote allows users to customize IR remote behavior without writing custom C code or compiling. Using the JSON IR remote, you can map buttons from any compatible -remote to any HTTP request API or JSON API command. +remote to any HTTP request API or JSON API command. **_NOTE: UDP Sync notifications on IR events will only work with JSON API commands_** The map of IR codes to API commands is stored on your ESP's file system in `ir.json`. From the "LED Preferences" page, set the IR pin and remote type to "JSON remote". Once "JSON remote" is selected, @@ -101,6 +101,7 @@ IR recv You should get a 24-bit hex encoded integer. If you get 0xFFFFFFFF, that means the button has been pressed repeatedly or held down. Try tapping quickly. ### Tips +* If enabling "Send notifications on button press or IR" use the JSON API in the `CMD` key, use of the HTTP request API will not initiate notifications on IR events. * Map `play` or `auto` buttons to a playlist. They currently just turn on preset cycling `CY=1` or load a playlist of presets 1-5. You can define the playlist in ir.json as in the sample below, or save a playlist as a preset and load that. * Save your 'every day' presets in one range of ids, maybe 1-30; your 'holiday' presets in another range, maybe 31-40. Then you can devote two buttons to cycle through presets. In our example, the command on the 'holiday cycle' button would be `P1=31&P2=40&PL=~` * You can also group your presets by color; for instance reddish animations in 1-10, greenish in 11-20, bluish in 21-30. The 44-key remote has up and down arrows for red, green and blue. So the command on the 'blue down' button would be `P1=21&P2=30&PL=~-` From 7e9d2872ceba61a598662e3d747a4212ba7a929a Mon Sep 17 00:00:00 2001 From: V-R-E <75820619+V-R-E@users.noreply.github.com> Date: Sat, 25 Jan 2025 14:19:26 -0500 Subject: [PATCH 2/2] Update json_infrared.md Added "last noted in v0.15.0" to the UDP sync issue notes --- docs/interfaces/json-ir/json_infrared.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/interfaces/json-ir/json_infrared.md b/docs/interfaces/json-ir/json_infrared.md index 385ec7345..b3d77ec95 100644 --- a/docs/interfaces/json-ir/json_infrared.md +++ b/docs/interfaces/json-ir/json_infrared.md @@ -17,7 +17,7 @@ The default sensor pin is GPIO4. It can be changed in the WLED settings. ### JSON IR Remote The JSON IR remote allows users to customize IR remote behavior without writing custom C code or compiling. Using the JSON IR remote, you can map buttons from any compatible -remote to any HTTP request API or JSON API command. **_NOTE: UDP Sync notifications on IR events will only work with JSON API commands_** +remote to any HTTP request API or JSON API command. **_NOTE: UDP Sync notifications on IR events will only work with JSON API commands last noted in v0.15.0_** The map of IR codes to API commands is stored on your ESP's file system in `ir.json`. From the "LED Preferences" page, set the IR pin and remote type to "JSON remote". Once "JSON remote" is selected, @@ -101,7 +101,7 @@ IR recv You should get a 24-bit hex encoded integer. If you get 0xFFFFFFFF, that means the button has been pressed repeatedly or held down. Try tapping quickly. ### Tips -* If enabling "Send notifications on button press or IR" use the JSON API in the `CMD` key, use of the HTTP request API will not initiate notifications on IR events. +* If enabling "Send notifications on button press or IR" use the JSON API in the `CMD` key, use of the HTTP request API will not initiate notifications on IR events last noted in v0.15.0. * Map `play` or `auto` buttons to a playlist. They currently just turn on preset cycling `CY=1` or load a playlist of presets 1-5. You can define the playlist in ir.json as in the sample below, or save a playlist as a preset and load that. * Save your 'every day' presets in one range of ids, maybe 1-30; your 'holiday' presets in another range, maybe 31-40. Then you can devote two buttons to cycle through presets. In our example, the command on the 'holiday cycle' button would be `P1=31&P2=40&PL=~` * You can also group your presets by color; for instance reddish animations in 1-10, greenish in 11-20, bluish in 21-30. The 44-key remote has up and down arrows for red, green and blue. So the command on the 'blue down' button would be `P1=21&P2=30&PL=~-`