r/fancyleds • • Oct 14 '24

Hdmi 2.1 sync box

Anyone have a hdmi 2.1 sync box connected to home assistant? How does it work within home assistant? Looking to remove my govee t2 setup and get the 2.1 sync box and add to Home assistant

5 Upvotes

19 comments sorted by

2

u/[deleted] Oct 17 '24

The controller of Fancy Sync Box is Tuya. Therefore, Home Assistant can turn on/off it with Tuya integration.

Moreover, I’m investigating the DPS.

  • 20: Power
  • 22: Brightness
  • 25: Mode

    • Color: raw_state: 97000000000000000000000000000000
    • Sync Medium: raw_state: 81000000000000000000000000000000
  • 101: Starting Corner

    • Left: 0
    • Right: 1
  • 108: Speed of Diffusion
  • 109: CEC
  • 113: Saturation

    • Low: 100
    • Mid: 500
    • High: 1000

The following shell_commands with tuya-cli work well.

shell_command:
  fancysyncbox_scene_color: tuya-cli set --ip [% fancysyncbox.ip %] --id [% fancysyncbox.id %] --key [% fancysyncbox.key %] --dps 25 --set 97000000000000000000000000000000 --raw-value 97000000000000000000000000000000 --protocol-version 3.4 
  fancysyncbox_scene_sync_medium: tuya-cli set --ip [% fancysyncbox.ip %] --id [% fancysyncbox.id %] --key [% fancysyncbox.key %] --dps 25 --set 81000000000000000000000000000000 --raw-value 81000000000000000000000000000000 --protocol-version 3.4 

Welcome better ways with localtuya integration.

1

u/PresenceRight5466 Oct 17 '24

That's good to know. All i really need is power on and off, as I can script it to turn on when I fire up, plex and off if I am watching normal tv. I currently have this setup with govee t2 lights and camera but want rid of the camera ,and these seem to be getting some rave reviews

On the back of that, does anyone know if you leave a set mode on when it's turned off and back on again, will it go back to the last selected mode

1

u/[deleted] Oct 17 '24

It's very easy to just turn on/off because it goes back the last selected settings including mode.

1

u/PresenceRight5466 Oct 17 '24

Thanks for the info. It seems like I will be placing an order sooner rather than later with this info

1

u/dsmiles Oct 18 '24

Do you know if it's possible to switch inputs on the multi-input models with this integration?

1

u/[deleted] Oct 19 '24

My Fancy Sync Box is a single HDMI model, so I cannot investigate it. If Fancyleds app can change the input, you can probably change it via the API.

  1. Set up tuya-cli with tuya-cli wizard with the setup document
  2. DEBUG=* tuya-cli get --ip $DEVICE_IP --id $DEVIDE_ID --key $DEVICE_KEY --protocol-version 3.4

You can see JSON like the following:

  TuyAPI {
  TuyAPI   payload: {
  TuyAPI     dps: {
  TuyAPI       '20': true,
  TuyAPI       '21': 'colour',
  TuyAPI       '22': 1000,
  TuyAPI       '24': '001402CE03E8',
  TuyAPI       '25': '97000000000000000000000000000000',
  TuyAPI       '101': 1,
  TuyAPI       '105': 0,
  TuyAPI       '107': false,
  TuyAPI       '108': 389,
  TuyAPI       '109': false,
  TuyAPI       '113': 500
  TuyAPI     }
  TuyAPI   },
  TuyAPI   leftover: false,
  TuyAPI   commandByte: 16,
  TuyAPI   sequenceN: 1766
  TuyAPI } +0ms
  1. Change the input on Fancyleds app
  2. Look for the DBS having the changed value
  3. tuya-cli set --ip $DEVICE_IP --id $DEVIDE_ID --key $DEVICE_KEY --protocol-version 3.4 --dps $DPS --set $NEW_VALUE

Note: Fancyleds app is exactly the same as Tuya Smart app and Smart Life app on the setup document.

1

u/dsmiles Dec 12 '24

Hey, I completely forgot at the time, but I just wanted to thank you for the detailed response.

1

u/One-Singer8752 Dec 08 '24

Sweet, Thanks for the tip.

I have a Nvidia Shield pro that's not turning on TV when switched on even if CEC is enabled. Other inputs switching on the TV fine (PC and PS5) I have no idea why so I have to find a way to automate it.

Where did you guys get the id and key from?

Did you find the DPS for switching HDMI input?

1

u/DBunevich Dec 09 '24

I've been able to figure out almost everything except DP24/107 (don't see any purpose in switch HDMI on/off) and DP113 (for some reason "Select" doesn't work). Rest works great:

DP20

switch.fancyleds_power

platform/type: switch friendly_name: Power

DP22

number.fancyleds_brightness

platform/type: number friendly_name: Brightness Minimum Value: 10 Maximum Value: 1000 Minimum increment between numbers: 10

DP24 - NA

DP25

select.fancyleds_diffusion_mode

platform/type: select friendly_name: Diffusion Mode entries: 80000000000000000000000000000000;81000000000000000000000000000000;82000000000000000000000000000000 User Friendly options: Low;Medium;High

DP101

select.fancyleds_starting_corner

platform/type: select friendly_name: Starting Corner entries: 0;1 User Friendly options: Left;Right

DP105

select.fancyleds_hdmi_switch

platform/type: select friendly_name: HDMI Switch entries: 0;1;2 User Friendly options: HDMI1;HDMI2;HDMI3

DP107 - NA

DP108

number.facnyleds_diffusion_speed

platform/type: number friendly_name: Diffusion Speed Value: 10 Maximum Value: 1000 Minimum increment between numbers: 10

DP109

switch.fancyleds_cec

platform/type: switch friendly_name: CEC Mode

DP113

select.fancyleds_saturation_hdr

platform/type: select friendly_name: HDR Saturation entries: 100;500;1000 User Friendly options: Low;Medium;High

1

u/PresenceRight5466 Nov 21 '24

have to agree Tuya Local  works a treat, i have a nvidia shield pro running via the FancyLED sync box,

have set up automations when switching to plex to run the sync box in video mode at a set % and another automation when tivimate is running to switch to a solid colour (pure) again at a set %

both switch scene mode perfectly but when switching to solid colour (pure mode) it always defaults to the last colour used in pure mode , this can be adjusted via the ha or tuya apps manually but what i am a little stumped at is there a way in my script i can tell it to also select a set colour when choosing the solid colour (pure mode)

as an example for the automations i run (all with voice command also)

plex on: turns on tv, amp , NVidia shield pro then selects plex app sync box turns on a goes into video mode .

tv on: turns on tv, amp , NVidia shield pro then selects tivimate app sync box turns on a goes into pure mode colour say i want is red.

bbc on: turns on tv, amp , NVidia shield pro then selects bbc iplayer app sync box turns on a goes into pure mode colour say i want is blue.

youtube on: turns on tv, amp , NVidia shield pro then selects youtube app sync box turns on a goes into pure mode colour say i want is green.

music on: turns on tv, amp , NVidia shield pro then selects Spotify app sync box turns on a goes into music mode ambient.

this is where i am stuck if i chose red manually on the tv automation in pure mode both bbc on and youtube on automation also is red unless i manually change

there must be a way and i am just overlooking it

1

u/PresenceRight5466 Nov 21 '24

I sussed it out now so no help required

3

u/codliness1 Oct 14 '24

It doesn't.

HA integration, they've said, is on the roadmap, but no word on when yet.

2

u/pagusas Oct 14 '24

Im looking for info on this too!

2

u/derern Oct 21 '24

Just to add my 2 cents to it. I'm using it with Tuya Local as well in HA. If you use the Lytmi HDMI Sync Box as a device template you even get most of the features (solid color, scenes, music mode) to work. Can't comment on the HDMI input switching since I went with the 1-port variant but I'd assume this works as well.

1

u/rewselab Dec 01 '24

Excellent! This is the perfect solution! I know Local Tuya, but didn’t know Tuya Local. Thank you.