doudz / homeassistant-myjdownloader Goto Github PK
View Code? Open in Web Editor NEWmyjdownloader integration for home assistant
License: MIT License
myjdownloader integration for home assistant
License: MIT License
Hello dear developers,
Since 2 days my home assistant is proposing me the update like following
Sadly if I want to update it I have this next screen:
The message says that it's not available.
Then if I close the window it come back again.
I tried to remove the integration from here:
And re added but it seems that the update message is coming back anyway.
I do believe it's the second time it's happening with Myjdownloader updates to be kind of stucked on my config
I use a Odroid home assistant blue
With this configuration:
(not sure what to show more to help on this topic. Let me know if you need more intel)
I would love to be able to add new downloads to the queue using a text input entity in home assistant through a service call.
The minimum required myjdapi version is 1.1.0 for the new integration. (Not a big thing at all, as we have no tests yet, I think)
Hi, could you please add the ability to write the LIMIT Bandwith parameter?
I would like to create an automation based on my presence at home (if i'm away, i could set no limit, if i'm home, i could set it to a minimium value...)
Thanks
This should be fixed:
DATA_RATE_MEGABYTES_PER_SECOND was used from myjdownloader, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfDataRate.MEGABYTES_PER_SECOND instead, please create a bug report at https://github.com/doudz/homeassistant-myjdownloader/issues
Hi,
I set this component up into HA. After reboot it was in developer panel but with no download shown.
So i changed added the sensor to add the optionnal scan_interval with value = 2
`
Then, after reboot, I got an error shown below. Any idea of what is wrong?
myjdownloader: Error on device update! Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 292, in _async_add_entity await entity.async_device_update(warning=False) File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 461, in async_device_update await self.hass.async_add_executor_job(self.update) File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, **self.kwargs) File "/config/custom_components/myjdownloader/sensor.py", line 110, in update currentDownloads = [x for x in downloadList if not x['finished']] File "/config/custom_components/myjdownloader/sensor.py", line 110, in <listcomp> currentDownloads = [x for x in downloadList if not x['finished']] KeyError: 'finished'
Hi,
thanks for the integration 👍
It would be great to make some more information available.
Possible candidates would be
device.downloadcontroller.get_speed_in_bytes()
and
device.downloads.query_links()
What do you think?
I set up sensor according to https://github.com/doudz/homeassistant-myjdownloader#configuration.
Restarted HA several times.
What is supposed to happen?
There´s no new integration when trying to manually add a new one.
There´s no new sensor.
Nothing.
Only log entry is
2020-12-07 21:40:50 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for myjdownloader which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
Is it a bug or do I just don´t get how to set this thing up?
I just noticed, you haven't chosen a license for your integration. Would you mind doing so?
Hi,
I attempt to Add Integration via the button on the GitHub readme, and I get this error: Config flow could not be loaded: Unknown error
.
Any ideas?
I get the following log entry when I use your custom component.
Logger: homeassistant.helpers.frame
Source: helpers/frame.py:74
First occurred: 09:32:34 (8 occurrences)
Last logged: 09:32:35
Detected code that uses str for device registry entry_type. This is deprecated and will stop working in Home Assistant 2022.3, it should be updated to use DeviceEntryType instead. Please report this issue.
Could you please update this? You have to change entry_type="service"
to entry_type = DeviceEntryType.SERVICE
. You could do it like HACS does and check for the Home Assistant version.
# LEGACY can be removed when min HA version is 2021.12
if self.hacs.core.ha_version >= "2021.12.0b0":
# pylint: disable=import-outside-toplevel
from homeassistant.helpers.device_registry import DeviceEntryType
info["entry_type"] = DeviceEntryType.SERVICE
else:
info["entry_type"] = "service"
return info
Would be nice to have a entity that shows the ETA time of the download.
Hy, thank you for your effort. I configured your integration but the sensor state is device not found. I use regularly myjdownloader extension on chrome.
Thank you for your reply.
Is it possible to make an automation with the sensor to announce when all downloads are done ? what will be the parameters for the sensor to indicate that
Thank you!
Hello!
I'm unable to find the custom integration in the add integrations page of Home Assistant. Any assistance on this?
Forked thread from #6 to discuss rewrite of this integration with config flow and more platforms in https://github.com/oribafi/homeassistant-myjdownloader/tree/rewrite.
It's still in early development, so I'm grateful for feedback and anyone willing to test. Thanks for this great integration, which motivated me to learn how to write integrations for HA!
Sensor
Binary Sensor
Switch
Service
myjdwonloader.run_update_check
myjdwonloader.restart_and_update
myjdwonloader.start_downloads
myjdwonloader.stop_downloads
Some sensors, i.e. (packeges, links and update) results unavailable, I've tried both reconfiguring the integration from 0 and restarting supervisor, but to no avail. Are there any other procedures to try?
I run the latest Home Assistant OS in a VM
When i try to setup the integration it alwys says cannot connect
Would it be possible to access the data, for the sensors, switches, etc., using a device: ip:port, instead of an account from the cloud?
It could possibly resolve the lag-time-reaction.
Hello just installed and tried to configure it
- platform: myjdownloader
email: [email protected]
password: mypassword
name: JDownloader@ubuntu-server
scan_interval: 5
But i got error device not found
Hi,
I would like to suggest adding the device id to the list of online devices.
I achieved this by modifying the following part of sensor.py:
to:
@property
def extra_state_attributes(self):
"""Return the state attributes."""
devices = sorted(self.devices.values(), key=lambda x: x.name)
return {
"jdownloaders": [device.name for device in devices],
"jdownloader_ids": [device.device_id for device in devices],
}
This allows people to create links directly to their current jdownloader instance.
for example in my single device use case:
- type: custom:button-card
tap_action:
action: url
url_path: >
[[[
return 'https://my.jdownloader.org/?deviceId='+states['sensor.jdownloaders_online'].attributes.jdownloader_ids[0]+'#webinterface:downloads';
]]]
name: JDownloader
...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.