Code Monkey home page Code Monkey logo

ha-dukaone's People

Contributors

dingusdk avatar sdahl1234 avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

ha-dukaone's Issues

Fails to work with HA Core version 2022.40

I get the following failure from the log, after updating:

Unable to prepare setup for platform dukaone.fan: Platform not found (cannot import name 'SPEED_HIGH' from 'homeassistant.components.fan' (/usr/src/homeassistant/homeassistant/components/fan/init.py)).

Issues in having multiple device on the same network

Thank you for a great integration.

I have been having issues adding two devices on the same network.
I have suddenly got it to work, but I am still not entirely sure how.

From what I can debug, also using the locale PY library with the example, something is faulty when the device password is set.
When I added my first device, I could easily do it using "1111", but when I tried with the second device, no passwords worked.
This resultet in the error "Failed to setupup dukaone device".

The only thing I could do to get it to work, was to change the files config_flow.py and fan.py from "1111" to "1112" and do the same on the second device, suddenly it worked.

I have no clue if this is a caching error, the password not being assigned correctly or something completely different.

Is it possible to set speed as an integer?

I have noticed that you can set the speed from high, medium and low. I know that high is usually 80%, sometimes I need to set it to 100% is this possible?
Is it also possible to mute the sound (The fan makes a beep/sound every time it receives a command)?

Thanks for making the plugin! I'm using it for a Twinfresh fan

Issues with ventilators running synced

I suddenly have problems controlling two Duka Ones running as one in Master-Slave mode / sync mode. It has been working fine until lately.

I have tried removing the device and adding it again to HA, but it doesn't make a difference. Upon re-adding it I only see one entity (fan) and not the humidity, which I believe was there before.

Any other experiencing the same issue? Or is it just a local problem?

Sensors exposed

Hi

What sensors and entities are exposed via this integration?

Plan on installing ventelators but want to be sure.

Thanks

HomeAssistantType is a deprecated alias which will be removed in HA Core 2025.5

Hi am seeing this error in logs:

Logger: homeassistant.helpers.typing
Source: helpers/deprecation.py:206
First occurred: 21:26:09 (8 occurrences)
Last logged: 21:26:26

HomeAssistantType was used from dukaone, this is a deprecated alias which will be removed in HA Core 2025.5. Use homeassistant.core.HomeAssistant instead, please report it to the author of the 'dukaone' custom integration

[Feeature request] Allow switching "mode"

Thanks for the integration!

I noticed a few times that my ventilator had switched from "Varmegenvindings funktion" to "Ventilationsfunktion". Would it be possible to add a switch or service call to set this?

Polymer is not defined

Hi
Im getting this in my dashboard.

image

And see this log in my log files
Logger: frontend.js.latest.202307051
Source: components/system_log/init.py:257
First occurred: 12 July 2023 at 18:58:07 (5 occurrences)
Last logged: 09:19:06
https://ha.domain.dk/hacsfiles/duka-control-entity-row/duka-control-entity-row.js:2:32 Uncaught ReferenceError: Polymer is not defined
http://ha.domain.dk:8123/hacsfiles/duka-control-entity-row/duka-control-entity-row.js:2:39 ReferenceError: Can't find variable: Polymer
https://ha.domain.dk/hacsfiles/duka-control-entity-row/duka-control-entity-row.js:2:39 ReferenceError: Can't find variable: Polymer

I have found this regarding the error
Polymer and Lit are programming frameworks, making writing Javascript easier. Polymer was recently deprecated in HA. If a card still uses Polymer, it needs to be rewritten to use Lit or plain Javascript instead.

"Failed to setupup dukaone device"

I get this error whenever I start HA.

They seem to work, though, so I'm not sure if it's just a timing thing?

This error originated from a custom integration.

Logger: custom_components.dukaone.sensor
Source: custom_components/dukaone/sensor.py:32
Integration: Duka One (documentation)
First occurred: 14:45:41 (1 occurrences)
Last logged: 14:45:41

Failed to setupup dukaone device

And since I'm at it, I think there's a typo in line 32 of sensor.py, I think

_LOGGER.error("Failed to setupup dukaone device")

should probably be

_LOGGER.error("Failed to set up dukaone device")

:)

Issues with one of my 2 Duka One S6 Wifi's

I'm having issues adding my second Duka One 6S + Wifi.
I have set up both my Duka's to connect to my wifi and getting a DHCP reserved address in the 10.1.10.0/24 subnet
Both Duka's are the same and are running firmware 0.3 from 2021-04-10

One of my Duka's, lets call it number 1 is working as expected in home-assistant (2024.6.3)
CleanShot 2024-06-20 at 15 46 16@2x

When I try to add the second one, it seem to work but no humidity sensor is detected and I cant control the fan entity it produces
CleanShot 2024-06-20 at 15 47 59@2x

Log output from Home Assistant:
`

    2024-06-20 15:39:06.139 ERROR (MainThread) [custom_components.dukaone.sensor] Failed to setup dukaone device  
    2024-06-20 15:39:06.139 WARNING (MainThread) [custom_components.dukaone.dukaentity] Timeout getting dukaone firmware version  
    2024-06-20 15:39:06.138 WARNING (MainThread) [custom_components.dukaone.dukaentity] Timeout getting dukaone firmware version  
    2024-06-20 15:39:06.052 WARNING (MainThread) [homeassistant.components.sensor] Setup of sensor platform dukaone is taking over 10 seconds.  
    2024-06-20 15:39:06.052 WARNING (MainThread) [homeassistant.components.fan] Setup of fan platform dukaone is taking over 10 seconds.  
    2024-06-20 15:38:56.051 DEBUG (MainThread) [custom_components.dukaone.sensor] Waiting for dukaone sensor device  
    2024-06-20 15:38:56.051 DEBUG (MainThread) [custom_components.dukaone.sensor] Waiting to get dukaone device  
    2024-06-20 15:38:56.051 INFO (MainThread) [homeassistant.components.sensor] Setting up dukaone.sensor  
    2024-06-20 15:38:56.051 INFO (MainThread) [homeassistant.components.fan] Setting up dukaone.fan
`

I have tried firmware resets, setting the password manually and to different values but always with the same result.

I then tried downloading your Python SDK and connected to each of the Duka's with success and I can control them both through there. Also, the Duka iOS app works fine, so I don't think I have a faulty device.

I added a few debug printlines to example.py in the SDK and this shows the output I'm getting. Not sure why it displays None in the Firmware device, date and unit type, but it only seems to do that upon first connect.

python3 example.py
New device id: 002A004542435708
New device id: 0048004442435708
002A004542435708
here
b'\xfd\xfd\x02\x10002A004542435708\x08coLL6reM\x06\xfe\x06\x86\x00\x03\x04\n\xe5\x07\xfe\x02\xb9\x0e\x00o\n'
here
Device added
Firmware version: None
Firmware date: None
Unit type: None
Press one key and enter. 1-3 for speed, 0=off, 9=on,b,n,m for mode, f for reset filter alarm, q for quit
Firmware version: None
b'\xfd\xfd\x02\x10002A004542435708\x08coLL6reM\x06\xfe\x06\x86\x00\x03\x04\n\xe5\x07\xfe\x02\xb9\x0e\x00o\n'
ip: 10.1.10.33 speed: 1, manualspeed: 127, fan1rpm: None, mode: 0, firmware version: 0.3, humidity: 49, filter alarm: False, filter timer; 129413 minutes

I also went ahead and ran a tcpdump on my home assistant server when adding the faulty Duka, and I see no traffic being sent towards the IP of the duka even though I specify it in the config flow.

NoneType has no attribute 'speed'

First off, thanks a lot for making this. I've been hassling the Duka App dev team for years for them to open their API after they hinted they would (but they have no immediate plans for that as of May 9th, 2022).

I have installed this integration via HACS, and set up my three Duka One units. They connect, and show up but I cannot control them. I keep getting this error when trying to control the fan.duka_xxx. Regardless of whether I try to toggle on/off or select a preset mode, it shows

Screenshot 2022-05-11 at 19 29 06

Though of course showing a different "service", if that's what I call (e.g. Failed to call service fan/set_preset_mode... if trying that instead of toggling on/off, but it's always ... has no attribute 'speed').

Any idea what's wrong? The sensor (humidity) seems to work fine for each unit. As does reporting of the fan, if I manually turn off, it shows immediately in Hass as a state change to fan.duka_xxx

HassOS v7.6
HassCore v2022.5.3
Duka integrationo v1.0.6

Bypass the beep-sound somehow?

Thanks a bunch for a great repo!

Is it somehow possible to add a "nosound"-option or disabling the beep-sound when sending a command to the fan?

Issues with ventilators running synced still a problem

In reference to this one #12

Sorry to keep bothering you, @dingusdk. But this issue still remains and I hope you can guide me in the right direction.

I have tried to remove the fan (=2 fans running as one) and add it again. The latest error message is:

Logger: custom_components.dukaone.sensor Source: custom_components/dukaone/sensor.py:32 Integration: Duka One ([documentation](https://github.com/dingusdk/ha-dukaone)) First occurred: 16:17:47 (8 occurrences) Last logged: 22:17:35 Failed to setup dukaone device

Apparently sensor.py:32 is this check failing:
if not await dukaonesensor.wait_for_device_to_be_ready(): _LOGGER.error("Failed to setup dukaone device") return False

Any idea to what I can do?

I also see this one, as mentioned in the other issue:

Platform dukaone does not generate unique IDs. ID 0034004C42435718 already exists

PS: Thanks a lot for working on this integration and sharing it! Much appreciated!

DukaOne is using deprecated supported feature values which will be removed in HA Core 2025.1

Logger: homeassistant.helpers.entity
Source: helpers/entity.py:1520
First occurred: 21:57:01 (1 occurrences)
Last logged: 21:57:01

Entity None (<class 'custom_components.dukaone.fan.DukaOneFan'>) is using deprecated supported features values which will be removed in HA Core 2025.1. Instead it should use <FanEntityFeature.SET_SPEED|PRESET_MODE: 9>, please report it to the author of the 'dukaone' custom integration and reference https://developers.home-assistant.io/blog/2023/12/28/support-feature-magic-numbers-deprecation

Duka One S 4 wifi

Hi
Thanks for the Great integration on my S4 wifi i cant chance the flow on the fan, i only have two entities in HA, power and fan speed and humidity.
Hope you Can fix that?

Blauberg VENTO Expert A50-1 W v1 support?

This API supports the Blauberg VENTO Expert A50-1 W v1 ?
If not, is it possible to extend the support to support this device with the ability to manually control the speed in percentages?
The device API supports manual speed control and there are Python libraries that allow it.

Entities

What entities are exposed by the duka 1?

Detected blocking call inside the event loop

Hi,

I'm getting following error

Logger: homeassistant.util.async_
Source: util/async_.py:144
First occurred: 22:35:53 (60 occurrences)
Last logged: 22:35:59

Detected blocking call inside the event loop. This is causing stability issues. Please report issue to the custom component author for dukaone doing blocking calls at custom_components/dukaone/sensor.py, line 98: "model": f"Type {self.device.unit_type}",
Detected blocking call inside the event loop. This is causing stability issues. Please report issue to the custom component author for dukaone doing blocking calls at custom_components/dukaone/sensor.py, line 99: "sw_version": f"{self.device.firmware_version} {self.device.firmware_date}",

version | core-2022.2.5
host_os | Home Assistant OS 7.4
update_channel | stable
supervisor_version | supervisor-2022.01.1
docker_version | 20.10.9

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.