make-all / tuya-local

Local support for Tuya devices in Home Assistant
MIT License
1.28k stars 505 forks source link

Request support for BlissLights Sky Lite Evolve [SKY-EVOLVE-B-RCW8] --> Config Attached #1507

Open fireheadman opened 8 months ago

fireheadman commented 8 months ago

Working YAML File is here as well as mentioned in next post REF: https://github.com/fireheadman/tuya-local-yamls/blob/main/sky_lite_evolve_projector_light.yaml

Log Message

No logs, but working config in next post

Information about DPS mappings


**DPS INFO (Name: ID)**
Work mode: 51
Switch: 20 
Color switch: 52
Laser switch: 53 
Bright value: 101 
Laser brightness:   54
Color: 24 
Timer: 26 
Scene: 58 
Motor Switch: 60 
Motor Speed: 62

Product ID

Information about how the device functions

id: jteg9ktrhbxtiicz

REF: https://blisslights.com/products/sky-lite-evolve A really nice night light that shows a cloud nebula with stars

image image

fireheadman commented 8 months ago

YAML File created and Test image image image

homeassistant:/config/custom_components/tuya_local/devices# cat sky_lite_evolve_projector_light.yaml

name: Sky Lite Evolve
products:
  - id: jteg9ktrhbxtiicz
    model: SKY-EVOLVE-B-RCW8
    name: BlissLights Sky Lite Evolve
primary_entity:
  entity: light
  name: Globe Light
  icon: "mdi:globe-model"
  dps:
    - id: 20
      type: boolean
      name: switch
    - id: 52
      type: boolean
      name: color_mode
      mapping:
        - dps_val: false
          value: white
        - dps_val: true
          value: hs
    - id: 24
      name: rgbhsv
      type: hex
      format:
        - name: h
          bytes: 2
          range:
            min: 0
            max: 360
        - name: s
          bytes: 2
          range:
            min: 0
            max: 1000
        - name: v
          bytes: 2
          range:
            min: 10
            max: 1000
    - id: 51
      name: effect
      type: string
      mapping:
        - dps_val: scene
          value: Scene
        - dps_val: laser
          value: Laser
        - dps_val: colour
          value: Color
secondary_entities:
  - entity: number
    icon: "mdi:timer"
    name: Timer
    category: config
    dps:
      - id: 26
        type: integer
        name: value
        range:
          min: 0
          max: 86400
        unit: min
        mapping:
          - scale: 60
            step: 60
  - entity: light
    icon: "mdi:laser-pointer"
    name: Laser
    dps:
      - id: 53
        type: boolean
        name: switch
      - id: 54
        name: brightness
        type: integer
        range:
          min: 10
          max: 1000
        mapping:
          - scale: 3.92
  - entity: select
    icon: "mdi:movie-open-play"
    name: Theme
    category: config
    dps:
      - id: 58
        name: option
        type: string
        optional: true
        mapping:
          - dps_val: "AAA="
            value: Cosmos
          - dps_val: "AAE="
            value: Sky
          - dps_val: "AAI="
            value: Space
          - dps_val: "AAM="
            value: Ocean
  - entity: fan
    icon: "mdi:rotate-3d-variant"
    name: Nebula Movement
    dps:
      - id: 60
        type: boolean
        name: switch
      - id: 62
        type: integer
        name: speed
        range:
          min: 0
          max: 100
fireheadman commented 8 months ago

Was able to tweak the code based off the galaxy projector yaml file, this light does have some differences on the theme/scene and I added icons as well as split out a couple items into the configuration category.

janitha commented 3 months ago

@fireheadman Thanks for the config for the skylight evolve, works great. Any plans opening a PR to merge this in? (if not, I'd be happy to)

fireheadman commented 3 months ago

I did but guess it never made it. I do not use Tuya local that much anymore unfortunately.

On Sat, Jun 29, 2024 at 7:50 PM Janitha Karunaratne < @.***> wrote:

@fireheadman https://github.com/fireheadman Thanks for the config for the skylight evolve, works great. Any plans opening a PR to merge this in? (if not, I'd be happy to)

— Reply to this email directly, view it on GitHub https://github.com/make-all/tuya-local/issues/1507#issuecomment-2198400282, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEXNQG7LJFNQTLBQLZ7CXADZJ5P63AVCNFSM6AAAAABBVSHM4KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJYGQYDAMRYGI . You are receiving this because you were mentioned.Message ID: @.***>

make-all commented 1 week ago

Merged with galaxy_projector_light, as the only incompatibility is the different scene list (effect) - I added the new list to the other light as you have it here, so users can learn what works for their light, and use that.