home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
69.7k stars 28.86k forks source link

Tuya: Genio Nebula & Blue Star Projector #83299

Open macf0x opened 1 year ago

macf0x commented 1 year ago

The problem

Device is detected, but not controllable.

Smart LED & Laser Projector

Tuya Device details (iot.tuya.com) Device Information Product Name: Genio Nebula & Blue Star Projector Device ID: bffdc51cda0fc31855ptvh Product Category: xktyd

Device schema

Standard Instruction Set Standard Status Set Standard Instruction Set.txt

Manufacture Page Product Image Standard Status Set.txt Control.json.txt

What version of Home Assistant Core has the issue?

2022.11.4

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Tuya

Link to integration documentation on our website

https://www.home-assistant.io/integrations/tuya

Diagnostics information

tuya-e0740f20d09b547f54c24a3xx-ae248eead-Genio Nebula & Blue Star Projector-e7398cb39d436ea47c5bd77376599dee.json.txt

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 1 year ago

Hey there @tuya, @zlinoliver, @frenck, mind taking a look at this issue as it has been labeled with an integration (tuya) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `tuya` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Change the title of the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign tuya` Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


tuya documentation tuya source (message by IssueLinks)

helgek commented 1 year ago

Just wanted to share this if this may be helpful: https://github.com/SeydX/homebridge-star-projector#readme

pergolafabio commented 1 year ago

I have the same issue, is there a work in progress?

macf0x commented 1 year ago

Just wanted to share this if this may be helpful: https://github.com/SeydX/homebridge-star-projector#readme

Appears to be the same projector. Case is slightly different, but the control/values seem to match.

pergolafabio commented 1 year ago

Any update on this one?

macf0x commented 1 year ago

Happy to test.

helgek commented 1 year ago

Have you seen this one? https://community.home-assistant.io/t/how-do-i-change-nebula-color-on-tuya-star-projector/336126/7?u=helge_k

pergolafabio commented 1 year ago

Yeah , using local Tuya right now with 3 entities, but it's still not working 100 like it should, does it work for you?

helgek commented 1 year ago

@pergolafabio I experimented a bit with local tuya some time ago and it looked like to me that it should be possible to cover most of the functionality but I have postponed setting it up due to other things I need to take care of first. So my overall experience is still limited, especially I lack long-term experience regarding stability.

macf0x commented 1 year ago

I might revisit localtuya. I've gone the standard tuya cloud route, as it had better support for the more exotic devices OOB. I typically reflashed the commodity/dumb switches, but some of the more expensive devices or those lacking (Tasmota/ESPHome) a supported MCU (ie. xmas string lights), I've left with Tuya cloud.

Surely adding support for this isn't too difficult?

pergolafabio commented 1 year ago

With official Tuya , if I remember correctly, only 1 entity was created, so was quite limited...

With localtuya, I create 3, for power , for laser , for nebula....

It works, but not perfect, when , probably the settings are not 100% correct, with the Tuya smartife app it's better

helgek commented 1 year ago

@pergolafabio yes, that's what I planned to do as well, create multiple entities. Would you mind to share your settings for these entities? I also wanted to share my settings once I figured out the best working configuration. But of course it may not be possible to achieve the same outcome like with Tuya Smartlife app.

pergolafabio commented 1 year ago

Ok, will share later

pergolafabio commented 1 year ago

I have it like below, but not perfect, sometimes i can not control laser anymore when i change something in nebula or visa versa

              "entities": [
                {
                  "id": 20,
                  "friendly_name": "Star Alessio",
                  "brightness_lower": 10,
                  "brightness_upper": 1000,
                  "color_temp_min_kelvin": 2700,
                  "color_temp_max_kelvin": 6500,
                  "color_temp_reverse": false,
                  "music_mode": false,
                  "brightness": 101,
                  "platform": "light"
                },
                {
                  "id": 102,
                  "friendly_name": "Star Alessio Laser",
                  "brightness_lower": 10,
                  "brightness_upper": 1000,
                  "color_temp_min_kelvin": 2700,
                  "color_temp_max_kelvin": 6500,
                  "color_temp_reverse": false,
                  "music_mode": false,
                  "brightness": 22,
                  "platform": "light"
                },
                {
                  "id": 103,
                  "friendly_name": "Star Alessio Nebula",
                  "brightness_lower": 29,
                  "brightness_upper": 1000,
                  "color_temp_min_kelvin": 2700,
                  "color_temp_max_kelvin": 6500,
                  "color_temp_reverse": false,
                  "music_mode": false,
                  "color_mode": 21,
                  "color": 24,
                  "scene": 25,
                  "platform": "light"
                }
              ],
issue-triage-workflows[bot] commented 1 year ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

macf0x commented 1 year ago

This issues is still not resolved.

issue-triage-workflows[bot] commented 9 months ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

pergolafabio commented 9 months ago

Unstale please

rohrsh commented 7 months ago

I'm interested in this too. Happy to help test

PieterHattinghZA commented 5 months ago

I have a Bneta Galaxy Projector, and I was able to get it "working" with Local Tuya and some tinkering. I can adjust the Power (On/Off), Motor (On/Off, Rotation and Speed), Laser (On/Off, Brightness), Countdown. I am unable to adjust the colour, mode, control data and scenes. I am convinced that the DP's needed for these are not the same on any of the flavours of projectors out there, and some are left out on purpose.

rohrsh commented 5 months ago

Hi Pieter - that level of control is all I need. Would you mind sharing the relevant DP's? I just want to be able to turn it off at bedtime together with everything else in the house. My kid can interact with the device button/app/whatever.

PieterHattinghZA commented 5 months ago

This is what I can provide. I used LocalTuya and had to play around, but the "fan_switch" and "fan_speed" is actually the Laser switch and the Rotation speed Code, desc, name, DP, type, Values switch_led, switch led, switch led, 20, Boolean, {} colour_data, colour data, colour data, 24, String, {"maxlen":255} countdown, countdown, countdown, 26, Integer, {"unit":"s","min":0,"max":86400,"scale":0,"step":1} mic_music_data, mic music data, mic music data, 42, String, {"maxlen":255} star_work_mode, star work mode, star work mode, 51, Enum, {"range":["manual","scene","music"]} colour_switch, colour switch, colour switch, 52, Boolean, {} laser_switch, laser switch, laser switch, 53, Boolean, {} laser_bright, laser bright, laser bright, 54, Integer, {"min":10,"max":1000,"scale":0,"step":1} star_control_data, star control data, star control data, 57, Raw, {"maxlen":"255"} star_scene_data, star scene data, star scene data, 58, Raw, {"maxlen":"255"} fan_switch, Motor Switch, Motor Switch, 60, Boolean, {} fan_speed, Motor Speed, Motor Speed, 62, Integer, {"unit":"%","min":1,"max":100,"scale":0,"step":1}

pergolafabio commented 5 months ago

Can you make share the diagnostics? in Localtuya, you can go to the device and then download the diag file... thats easier to read, here is mine, i have it seperated in 3 lights

  "data": {
    "device_config": {
      "friendly_name": "Star Eleonora",
      "local_key": "xxx",
      "host": "192.168.0.68",
      "device_id": "xxx",
      "protocol_version": "3.3",
      "dps_strings": [
        "20 (value: False)",
        "21 (value: white)",
        "22 (value: 67)",
        "24 (value: 012c02c60043)",
        "25 (value: 000e0d0000000000000000c80000)",
        "26 (value: 0)",
        "101 (value: 1000)",
        "102 (value: False)",
        "103 (value: False)"
      ],
      "entities": [
        {
          "id": 20,
          "friendly_name": "Star Eleonora",
          "brightness_lower": 10,
          "brightness_upper": 1000,
          "color_temp_min_kelvin": 2700,
          "color_temp_max_kelvin": 6500,
          "color_temp_reverse": false,
          "music_mode": false,
          "brightness": 101,
          "platform": "light"
        },
        {
          "id": 102,
          "friendly_name": "Star Eleonora Laser",
          "brightness_lower": 10,
          "brightness_upper": 1000,
          "color_temp_min_kelvin": 2700,
          "color_temp_max_kelvin": 6500,
          "color_temp_reverse": false,
          "music_mode": false,
          "brightness": 22,
          "platform": "light"
        },
        {
          "id": 103,
          "friendly_name": "Star Eleonora Nebula",
          "brightness_lower": 29,
          "brightness_upper": 1000,
          "color_temp_min_kelvin": 2700,
          "color_temp_max_kelvin": 6500,
          "color_temp_reverse": false,
          "music_mode": false,
          "color_mode": 21,
          "color": 24,
          "scene": 25,
          "platform": "light"
PieterHattinghZA commented 5 months ago

bf871d3256ac4eb898idvi_response.json

pergolafabio commented 5 months ago

You have it configured as 1 entity in localtuya?

PieterHattinghZA commented 5 months ago

No. I created a Entity for each of the DP's

Here is the redacted Diagnostic log { "home_assistant": { "installation_type": "Home Assistant OS", "version": "2024.1.5", "dev": false, "hassio": true, "virtualenv": false, "python_version": "3.11.6", "docker": true, "arch": "x86_64", "timezone": "Africa/Johannesburg", "os_name": "Linux", "os_version": "6.1.71-haos", "supervisor": "2023.12.1", "host_os": "Home Assistant OS 11.4", "docker_version": "24.0.7", "chassis": "vm", "run_as_root": true }, "custom_components": { "hacs": { "version": "1.33.0", "requirements": [ "aiogithubapi>=22.10.1" ]

},
"smartlife": {
  "version": "0.1.0",
  "requirements": [
    "tuya-device-sharing-sdk==0.1.9"
  ]

},
"localtuya": {
  "version": "5.2.1",
  "requirements": []
},

"integration_manifest": { "domain": "localtuya", "name": "LocalTuya integration", "codeowners": [ "@rospogrigio", "@postlund" ], "config_flow": true, "dependencies": [], "documentation": "https://github.com/rospogrigio/localtuya/", "iot_class": "local_push", "issue_tracker": "https://github.com/rospogrigio/localtuya/issues", "requirements": [], "version": "5.2.1", "is_built_in": false }, "data": { "device_config": { "friendly_name": "Projector", "host": "-----", "local_key": "-----", "protocol_version": "3.3", "enable_debug": true, "manual_dps_strings": "21,22,23,24,25", "entities": [ { "friendly_name": "Laser Switch", "restore_on_reconnect": false, "is_passive_entity": false, "id": 53, "platform": "switch" }, { "friendly_name": "Motor Switch", "restore_on_reconnect": false, "is_passive_entity": false, "id": 60, "platform": "switch" }, { "friendly_name": "Laser Brightness", "min_value": 10.0, "max_value": 1000.0, "step_size": 10.0, "restore_on_reconnect": false, "is_passive_entity": false, "id": 54, "platform": "number" }, { "friendly_name": "Motor Speed", "min_value": 0.0, "max_value": 100.0, "step_size": 1.0, "restore_on_reconnect": false, "is_passive_entity": false, "id": 62, "platform": "number" }, { "friendly_name": "Count Down", "min_value": 0.0, "max_value": 86400.0, "step_size": 1.0, "restore_on_reconnect": false, "is_passive_entity": false, "id": 26, "platform": "number" }, { "id": 20, "friendly_name": "Nebula Power", "restore_on_reconnect": false, "is_passive_entity": false, "platform": "switch" } ], "add_entities": true, "model": "Bneta Smart Galaxy Projector", "device_id": "-------", "dps_strings": [ "20 (value: True)", "24 (value: 00f003e803e8)", "26 (value: 0)", "51 (value: scene)", "52 (value: True)", "53 (value: True)", "54 (value: 321)", "60 (value: True)", "62 (value: 78)" ], "product_key": "keyd9wr9fr3mcf7s" }, "device_cloud_info": { "active_time": 1704399027, "biz_type": 0, "category": "xktyd", "create_time": 1704285719, "icon": "smart/icon/ay1567074618806CXHUE/ad8817b83b76c2de2f06a0525dffdf5d.png", "id": "------", "ip": "41.133.81.229", "lat": "-25.7900", "local_key": -------", "lon": "28.2900", "model": "S23", "name": "Projector", "online": true, "owner_id": "166789548", "product_id": "gag5475oobwmgkbc", "product_name": "Bneta Smart Galaxy Projector", "status": [ { "code": "switch_led", "value": true }, { "code": "colour_data", "value": "{\"h\":251,\"s\":770,\"v\":398}" }, { "code": "countdown", "value": 0 }, { "code": "mic_music_data", "value": "000000013264" }, { "code": "star_work_mode", "value": "manual" }, { "code": "colour_switch", "value": true }, { "code": "laser_switch", "value": true }, { "code": "laser_bright", "value": 870 }, { "code": "star_scene_data", "value": "AAUBAAABASwD6APoAQMyAQPoATI=" }, { "code": "fan_switch", "value": true }, { "code": "fan_speed", "value": 64 } ], " } } }

PieterHattinghZA commented 5 months ago

The laser motor should be a switch, rotation speed should be a select, brighness also a select

pergolafabio commented 5 months ago

Great, thnx for sharing! I have 3 entities with multiple purposes

PieterHattinghZA commented 5 months ago

Are you able to control the scenes and Nebula colour changes?

pergolafabio commented 5 months ago

Yeah, i believe so, created a scene for that

- id: '1672646658870'
  name: scene1
  entities:
    light.star_alessio:
      min_color_temp_kelvin: 2702
      max_color_temp_kelvin: 6535
      min_mireds: 153
      max_mireds: 370
      effect_list:
      - Night
      - Read
      - Meeting
      - Leasure
      - Soft
      - Rainbow
      - Shine
      - Beautiful
      supported_color_modes:
      - color_temp
      - hs
      raw_state: false
      friendly_name: Star Alessio
      supported_features: 23
      state: 'off'
  metadata: {}
- alias: Star Alessio Scenes
  initial_state: 'on'
  trigger:
    platform: state
    entity_id: input_select.star_alessio
  action:    
  - service: scene.turn_on
    data_template:
      entity_id: scene.{{trigger.to_state.state}}

input_select:
  star_alessio:
    name: Mode
    options:
      - star_alessio_off
      - star_alessio_color1
      - star_alessio_laser      
      - star_alessio_color2      
    initial: star_alessio_off
    icon: mdi:palette
PieterHattinghZA commented 5 months ago

Would you be so kind as to share your DP list with me?

pergolafabio commented 5 months ago

I posted it a few post back :-)

PieterHattinghZA commented 5 months ago

Ahaa. I only saw it now. I see my device and yours have different DPS. I am a real noob with coding but I am figuring things out. Just noticed on the one thread there is default support for the projectors in Local Tuya. Just rename back to yaml galaxy_projector_light - .txt

pergolafabio commented 5 months ago

What thread? I don't believe there is default support.. What device do you have? Can you show me a link?

helgek commented 3 months ago

Big news: There's now a solution available to flash ESPHome on the original microcontroller that comes with the Star Projector which even doesn't require to open the device (!). Everything works via direct WiFi connection between your computer and the Star Projector (the projector provides a WiFi access point). So no more replacement of the original microcontroller requiring soldering, this is the most convenient jailbreak one can think of.

I found only two minor issues at the moment (minor because they can both be addressed via Home Assistant automations for instance):

I immediately bought a second device after I had successfully flashed the first one. Both devices show the same behaviour described above.

This is how this jailbreak miracle looks like in HA:

Screenshot 2024-03-08 at 00 37 39

And you'll find all the magic here: https://github.com/M4GNV5/esphome-SK20-Nebula-Light

issue-triage-workflows[bot] commented 3 weeks ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

PieterHattinghZA commented 3 weeks ago

I solved my Galaxy Star Projector issue with some tinkering


From: Robert Ardill @.> Sent: Thursday, 06 June 2024 03:16 To: home-assistant/core @.> Cc: Pieter Hattingh @.>; Comment @.> Subject: Re: [home-assistant/core] Tuya: Genio Nebula & Blue Star Projector (Issue #83299)

Unstale

— Reply to this email directly, view it on GitHubhttps://github.com/home-assistant/core/issues/83299#issuecomment-2151221514, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AUX4Y4D3QY43YWEOA6VF53TZF6Z7PAVCNFSM6AAAAAASUFWDMSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJRGIZDCNJRGQ. You are receiving this because you commented.Message ID: @.***>

macf0x commented 3 weeks ago

Was this via Tuya, Tuya Local or via ESPHome?

I like the ESPHome option, but the rest of my Christmas lights aren't supported (String/fairy/Icicle), which complicates operation.

PieterHattinghZA commented 3 weeks ago

I used Local Tuya with some interesting Creative thinking. What is the ESPHome method? From: Macfox @.> Sent: Friday, June 7, 2024 1:46 AM To: home-assistant/core @.> Cc: Pieter Hattingh @.>; Comment @.> Subject: Re: [home-assistant/core] Tuya: Genio Nebula & Blue Star Projector (Issue #83299)

Was this via Tuya, Tuya Local or via ESPHome?

I like the ESPHome option, but the rest of my Christmas lights aren't supported (String/fairy/Icicle), which complicates operation.

— Reply to this email directly, view it on GitHubhttps://github.com/home-assistant/core/issues/83299#issuecomment-2153578957, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AUX4Y4CHHFGLFXHW6WSLYL3ZGDYBVAVCNFSM6AAAAAASUFWDMSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJTGU3TQOJVG4. You are receiving this because you commented.Message ID: @.**@.>>

macf0x commented 3 weeks ago

Helgek pointed to this site above that provides an ESP template https://github.com/M4GNV5/esphome-SK20-Nebula-Light

Flumeded commented 3 weeks ago

Has anybody had success with new version of the projector? (more square-ish one)?

macf0x commented 3 weeks ago

Do you have a picture. I wouldn't consider mine new, but it certainly more square than the white variety.

https://www.mirabellagenio.com.au/product-range/mirabella-genio-wi-fi-nebula-blue-star-projector/

I003879-20210705-CBOX-GENIO-WEBSITE-min-2048x1920

Flumeded commented 3 weeks ago

Do you have a picture. I wouldn't consider mine new, but it certainly more square than the white variety.

https://www.mirabellagenio.com.au/product-range/mirabella-genio-wi-fi-nebula-blue-star-projector/

I003879-20210705-CBOX-GENIO-WEBSITE-min-2048x1920

Ah-a, that a new one. Haven't seen the black version though. This is an old one:
OldVers

Thank you, it's finally time to order one myself!