Giter Site home page Giter Site logo

home-assistant-skydance's Introduction

Overview

A Home Assistant integration for communication with Skydance lighting Wi-Fi relay.

hacs_badge

Based on skydance Python library.

Usage

  1. Plug in your Skydance Wi-Fi relay. Set up its Wi-Fi connection so that you are able to ping it from both: a) Home Assistant, b) your mobile phone.
  2. Install the official SkySmart Android application.
  3. Inside the app: setup Zone names, types, pair the physical LED controllers. (link to the manual) Verify everything works using the app.
  4. Go to Home Assistant. Install this integration (see below).
  5. Set up the integration in Configuration > Integrations > Add Integration.
  6. During the setup, enter the Wi-Fi relay IP configured in step 1. The integration discovers Zones configured in step 3 automatically.
  7. Enjoy.

Installation

HACS

This install method is preferred since it allows automatic updates in the future.

Install by searching for Skydance integration in HACS.

Manual

  1. Download an integration.
  2. Copy the folder custom_components/skydance from the zip to your config directory.
  3. Restart Home Assistant.

Known issues / limitations

  • The integration does not know what is the current state of the lights. It is technically not possible. Therefore, "assumed state" light type is used, which results in rendering on/off buttons in Lovelace UI, instead of a toggle switch. If you plan to controll lights from Home Assistant only, you may want to "customize all lights in skydance domain to have assumed_state: false" (link to the docs), which results in showing toggle switches instead.
  • The Wi-Fi relay is able to process at most N commands per second (sequentially). This can be an issue for example when activating a Scene containing multiple Zones. Currently, this is addresed by adding sleep(X) between each command sent. Despite that, the relay is sometimes slower than expected resulting in some commands not being processed. Should this happen to you, please report an issue so that we can experimetally set the right sleep length.

home-assistant-skydance's People

Contributors

ktibow avatar tomasbedrich avatar wrt54g avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

home-assistant-skydance's Issues

Need to reload integration after "Error fetching skydance data"

Sometimes the integration crashes and it needs to be manually reloaded.
In the logs there is this error:

Logger: custom_components.skydance.light
Source: helpers/update_coordinator.py:219
Integration: Skydance (documentation, issues)
First occurred: 17:48:38 (2 occurrences)
Last logged: 20:02:49

Error fetching skydance data: 165 is not a valid ZoneType
Error fetching skydance data: 212 is not a valid ZoneType

5 zones configured in total: 2 white + 3 RGBW.

System Health

version: core-2021.11.3
installation_type: Home Assistant Container
dev: false
hassio: false
docker: true
user: root
virtualenv: false
python_version: 3.9.7
os_name: Linux
os_version: 5.10.0-0.bpo.8-amd64
arch: x86_64
timezone: Europe/Prague


GitHub API: ok
Github API Calls Remaining: 4954
Installed Version: 1.17.2
Stage: running
Available Repositories: 918
Installed Repositories: 7


logged_in: false
can_reach_cert_server: ok
can_reach_cloud_auth: ok
can_reach_cloud: ok


dashboards: 1
resources: 2
views: 4
mode: storage

api_endpoint_reachable: ok

Do you want me to add GitHub Actions?

If you want, I can add some advanced CI to your repo in a PR. Let me know if you want that. If you do, mind answering these questions:

  • Do you want to enable auto-formatting whenever pushed?
  • Do you want packaged or independent (I recommend packaged because I can send updates)?

Detected integration that called async_setup_platforms instead of awaiting async_forward_entry_setups

Hello,

Thanks for great integration!
In Home Assistant version 2023.2 I see following message in the log:

Detected integration that called async_setup_platforms instead of awaiting async_forward_entry_setups; this will fail in version 2023.3. Please report issue to the custom integration author for skydance using this method at custom_components/skydance/__init__.py, line 20: hass.config_entries.async_setup_platforms(entry, PLATFORMS)

I think something similar to this should be a solution.
Thanks in advance.

Regards

having issue with WiFi Relay and the app

Hi there, I didn't have a chance to work with your integration, because I have problems with the relay selbst and I am not sure in which community I can look for help.
My landlord has installed these led dimmers with remote control and I've purchased the WiFi Relay from China. The app isn't available for my samsung galaxy s21 fe in play store.
I've downloaded and installed the app from evozi.

my main problem is that the relay doesn't stay in network. it got kicked out every time.
when I give the password of my ssid I see the led turns to blue but after 3 4 minutes it turns green again and I am not able to do any thing in app.

have you had same issues with your WiFi Relay?

Best Regards, Shahram

Zones Order when deleting items in SkySmart App

Hi,

Just found this bug today and wanted to talk to you if it is a bug of yours or Skydance's.

I had 10 lights added to app, then I deleted the item position 8 or zone=8 what happened is that Zone10 was made unavailable in HASS but visible in SkySmart app. I found a workaround that if I add one more zone (just a dummy), it works again.

Proof from debug log:

Before deleting ZONE 8

023-07-25 20:36:40.270 DEBUG (MainThread) [custom_components.skydance.light] Zone=8 has type=ZoneType.Dimmer, name=teste123
2023-07-25 20:36:40.270 INFO (MainThread) [custom_components.skydance.light] Getting info about zone=9
2023-07-25 20:36:40.270 DEBUG (MainThread) [skydance.network.session] Sending: 55 aa 5a a5 7e 0a 80 00 80 e1 80 00 00 00 01 78 00 00 00 7e
2023-07-25 20:36:40.531 DEBUG (MainThread) [skydance.network.session] Received: 55 aa 5a a5 7e 0a 80 00 80 e1 80 57 ff 00 01 f8 10 00 11 00 50 61 72 65 64 65 20 53 61 6c 61 20 20 20 00 7e
2023-07-25 20:36:40.532 DEBUG (MainThread) [custom_components.skydance.light] Zone=9 has type=ZoneType.Dimmer, name=Parede Sala
2023-07-25 20:36:40.532 INFO (MainThread) [custom_components.skydance.light] Getting info about zone=10
2023-07-25 20:36:40.532 DEBUG (MainThread) [skydance.network.session] Sending: 55 aa 5a a5 7e 0b 80 00 80 e1 80 00 00 00 02 78 00 00 00 7e
2023-07-25 20:36:40.773 DEBUG (MainThread) [skydance.network.session] Received: 55 aa 5a a5 7e 0b 80 00 80 e1 80 57 ff 00 02 f8 10 00 11 00 50 61 72 65 64 65 20 43 6f 7a 69 6e 68 61 00 7e
2023-07-25 20:36:40.773 DEBUG (MainThread) [custom_components.skydance.light] Zone=10 has type=ZoneType.Dimmer, name=Parede Cozinha
2023-07-25 20:36:40.773 DEBUG (MainThread) [custom_components.skydance.light] Finished fetching skydance data in 2.681 seconds (success: True)

After deleting ZONE8 in SkySmart app

2023-07-25 20:38:03.405 DEBUG (MainThread) [custom_components.skydance.light] Zone=8 has type=ZoneType.Dimmer, name=teste123
2023-07-25 20:38:03.406 INFO (MainThread) [custom_components.skydance.light] Getting info about zone=9
2023-07-25 20:38:03.406 DEBUG (MainThread) [skydance.network.session] Sending: 55 aa 5a a5 7e 0a 80 00 80 e1 80 00 00 00 01 78 00 00 00 7e
2023-07-25 20:38:03.745 DEBUG (MainThread) [skydance.network.session] Received: 55 aa 5a a5 7e 0a 80 00 80 e1 80 57 ff 00 01 f8 10 00 11 00 50 61 72 65 64 65 20 53 61 6c 61 20 20 20 00 7e
2023-07-25 20:38:03.745 DEBUG (MainThread) [custom_components.skydance.light] Zone=9 has type=ZoneType.Dimmer, name=Parede Sala
2023-07-25 20:38:03.746 DEBUG (MainThread) [custom_components.skydance.light] Finished fetching skydance data in 3.400 seconds (success: True)

Now just fetch's until Zone9.

Zone10 was gone and Zone8 its still here. In SkySmart I can't see Zone8.

Get current state of Lights

Thank you so much for your integration. I love it!

Is it possible to fetch the current state (on/off, brightness, color)? Currently HA is not aware of the current state of the lights. This causes some issues when e.g. HA thinks the lights are on but they are off. When i toggle the switch nothing happens and the second toggle turns the light on.

Failed to call service light/turn_off. [Errno 32] Broken pipe

After integration everything works ok, but after a while I get the error "Failed to call service light / turn_off. [Errno 32] Broken pipe", after restarting the home assistant everything works ok for a while, and again an error occurs. Do you have any idea ?

Screenshot 2020-11-28 104051

How to install?

I installed it and nothing happened. Is there any config? Do i need other plugins for it to work? (e.g. node red?)

Version core-2021.6.3 / doesn't work

Hi there,
after upgrade core to version 2021.6.3 SKYDANCE integration stop working.
In logs shows me this:

Logger: homeassistant.setup
Source: setup.py:172
First occurred: 9:36:25 AM (1 occurrences)
Last logged: 9:36:25 AM

Setup failed for skydance: Integration not found.

I tried to reinstal it.. with same result. If i downgrade to older version it is still working.
Is there any advice to solve it?
Than you!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.