Hinkley Fan using Tuya-local

I struggled to get my Hinkley Tiburon Ceiling Fan with upper and lower nights working in Home Assistant and didn’t find much info out there. Now that I’ve got it figured thought i’d share.

Using Tuya-local it was able to get the device id, key and IP address, but no matter what device type I told it to create I at most only got one light and the fan working, never both the upper and lower lights.

-Remove the fan from the Hinkley app and add it to the SmartLife app.
-Add this yaml to your Tuya-Local folder (/homeassistant/custom_components/tuya_local/devices/hinkley_fan_dual_light.yaml)

name: Hinkley ceiling fan with dual lights
products:
  - id: 88zpiybkbyjmpqhb
entities:
  - entity: fan
    dps:
      - id: 60
        name: switch
        type: boolean
      - id: 62
        name: speed
        type: integer
        range:
          min: 1
          max: 100
      - id: 63
        name: direction
        type: string
        mapping:
          - dps_val: forward
            value: forward
          - dps_val: reverse
            value: reverse
      - id: 61
        name: preset_mode
        type: string
        mapping:
          - dps_val: fresh
            value: Fresh
  - entity: light
    name: Main Light
    dps:
      - id: 20
        name: switch
        type: boolean
      - id: 22
        name: brightness
        type: integer
        range:
          min: 10
          max: 1000
  - entity: light
    name: Secondary Light
    dps:
      - id: 103
        name: switch
        type: boolean
      - id: 102
        name: brightness
        type: integer
        range:
          min: 10
          max: 1000

Save and restart (not certain this is necessary)

Now when you add the device using the usual Tuya-Local process it should automatically discover everything and give you the correct device type. Once set up both light entities should be present along with the fan.

Hello warriorcookie,

Thanks for coming here and asking a question.
Would you be so kind as to adjusting the format of your code so that we can read it properly & check the YAML spacing, etc. Editing your original is the preferred way. It is very hard for us to tell what is what when the text formatter jumbles everything like that.
You can use the </> button like this… How to format your code in forum posts
OR… Here is an example of how to fix formatting from the site FAQ Page.
How to help us help you - or How to ask a good question.

Thank you for posting this, I was working on how to fix the formatting as you posted. Saved me a headache!

1 Like