Giter Site home page Giter Site logo

hassio-addons's Introduction

hassio-addons

Repository for hass.io addons.

[Broadlink S1C]

Broadlink S1C Addon : working

[Rpi RF Receiver]

RF Receiver Addon : working

hassio-addons's People

Contributors

pantomax 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hassio-addons's Issues

High CPU usage of rpi-rf addon

The docker container is quite high on CPU usage. Maybe, this could be optimized? On average, the container runs at 20% on a raspberry pi, while all other addons behave nicely.
Example:
Bildschirmfoto 2019-11-06 um 13 05 06

Error

starting version 3.2.4
Collecting broadlink
Using cached broadlink-0.8.tar.gz
Collecting pycryptodome==3.4.11 (from broadlink)
Downloading pycryptodome-3.4.11.tar.gz (6.7MB)
Collecting PyCRC (from broadlink)
Using cached PyCRC-1.21.tar.gz
Installing collected packages: pycryptodome, PyCRC, broadlink
Running setup.py install for pycryptodome: started
Running setup.py install for pycryptodome: still running...
Running setup.py install for pycryptodome: finished with status 'done'
Running setup.py install for PyCRC: started
Running setup.py install for PyCRC: finished with status 'done'
Running setup.py install for broadlink: started
Running setup.py install for broadlink: finished with status 'done'
Successfully installed PyCRC-1.21 broadlink-0.8 pycryptodome-3.4.11
Traceback (most recent call last):
File "/share/s1c.py", line 14, in
sens = devices.get_sensors_status()
File "/share/broadlink.py", line 551, in get_sensors_status
_name = str(bytes(sens[4:26]).decode())
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe4 in position 0: ordinal not in range(128)

Error on new HassOs

hi I tried to install this addon on new HassOs 32 and 64 bit images on Raspberry pi 3 b with no success. Error I'm getting is that:

/data/venv/lib/python3.6/site-packages/rpi_rf/rpi_rf.py:167: RuntimeWarning: This channel is already in use, continuing anyway. Use GPIO.setwarnings(False) to disable warnings.
GPIO.setup(self.gpio, GPIO.IN)
Traceback (most recent call last):
File "/share/rpi-rf_receive.py", line 34, in
rfdevice.enable_rx()
File "/data/venv/lib/python3.6/site-packages/rpi_rf/rpi_rf.py", line 168, in enable_rx
GPIO.add_event_detect(self.gpio, GPIO.BOTH)
RuntimeError: Failed to add edge detection

I.m not a programer and I can't fix it myself. Could I have some help please.

Thank You

NameError: name 'sock' is not defined

starting version 3.2.4
Requirement already up-to-date: broadlink in /usr/lib/python2.7/site-packages
Requirement already up-to-date: pyaes==1.6.0 in /usr/lib/python2.7/site-packages (from broadlink)
Traceback (most recent call last):
File "/share/s1c.py", line 1, in
import broadlink
File "/share/broadlink.py", line 609, in
sock.sendto(payload, ('255.255.255.255', 80))
NameError: name 'sock' is not defined

Line 609 in the broadlink.py file lacks two spaces

Will not install

Added the repo to hassio and hit install..... after a while it stops loading and the install buttton is active again.

Hopefully the dev will respond to this?

Syntax error?

Hey, not sure what's going on and I don't know python well enough to figure out why this is coming up, but the plugin is claiming there is a syntax error with rpi-rf_receive.py. Here's what I'm getting:

  File "/share/rpi-rf_receive.py", line 25
    format='%(asctime)-15s - [%(levelname)s] %(module)s: 
                                                        ^
SyntaxError: EOL while scanning string literal

Error during Hass.io addon installation

Hey,

I get the following error when trying to download and install the rep:

19-10-21 20:16:32 INFO (MainThread) [hassio.store.git] Clone add-on https://github.com/pantomax/hassio-addons/tree/master/rpi-rf-receiver repository 19-10-21 20:16:33 ERROR (MainThread) [hassio.store.git] Can't clone https://github.com/pantomax/hassio-addons/tree/master/rpi-rf-receiver repository: Cmd('git') failed due to: exit code(128) cmdline: git clone --depth=1 --recursive --shallow-submodules -v https://github.com/pantomax/hassio-addons/tree/master/rpi-rf-receiver /data/addons/git/e536d8b9 stderr: 'Cloning into '/data/addons/git/e536d8b9'... fatal: repository 'https://github.com/pantomax/hassio-addons/tree/master/rpi-rf-receiver/' not found '. 19-10-21 20:16:33 ERROR (MainThread) [hassio.store] Can't load from repository https://github.com/pantomax/hassio-addons/tree/master/rpi-rf-receiver 19-10-21 20:16:33 INFO (MainThread) [hassio.store] Load add-ons from store: 60 all - 0 new - 0 remove

Anyone knows how to fix it?

Error

Log

starting version 3.2.4
Running virtualenv with interpreter /usr/bin/python3
Using base prefix '/usr'
New python executable in /data/venv/bin/python3
Also creating executable in /data/venv/bin/python
Installing setuptools, pip, wheel...done.
Collecting broadlink
Using cached broadlink-0.6.tar.gz
Collecting pycrypto==2.6.1 (from broadlink)
Using cached pycrypto-2.6.1.tar.gz
Building wheels for collected packages: broadlink, pycrypto
Running setup.py bdist_wheel for broadlink: started
Running setup.py bdist_wheel for broadlink: finished with status 'done'
Stored in directory: /root/.cache/pip/wheels/e1/51/b5/211b9e763738e7f68ce82c7195020894e6bb0c8fa7725f6e10
Running setup.py bdist_wheel for pycrypto: started
Running setup.py bdist_wheel for pycrypto: still running...
Running setup.py bdist_wheel for pycrypto: still running...
Running setup.py bdist_wheel for pycrypto: finished with status 'done'
Stored in directory: /root/.cache/pip/wheels/80/1f/94/f76e9746864f198eb0e304aeec319159fa41b082f61281ffce
Successfully built broadlink pycrypto
Installing collected packages: pycrypto, broadlink
Successfully installed broadlink-0.6 pycrypto-2.6.1
File "/share/s1c.py", line 26
print time.ctime() + ": Door closed: " + str(se['status'])
^
SyntaxError: invalid syntax

receiving codes, but not mine (So close yet so far)

Hi,

Hopefully you can help me with this.
I installed everything and it seems to work, because I receive all kind of codes, even if I'm not pressing any key on my remote.
I keep refreshing the log and there are a lot of codes, but not really when I push a button. Also not the same code when I do push a button. (sometimes it is the same code, but not often enough)

Do you have any idea how I can get my receiver to work properly? (I tried 5v and 3v, but there wasn't really a big difference)
I don't want to do this with trail and error checking all codes I receive :p
Thanks in advance.

Info:
I got a Raspberry Pi3 with Hassio and the following receiver/transmitter:
http://wiki.seeed.cc/Grove-433MHz_Simple_RF_Link_Kit/

A few lines from my addon log:
2017-12-20 23:45:10 - [INFO] rpi-rf_receive: 1 [pulselength 257, protocol 1]
2017-12-20 23:45:10 - [INFO] rpi-rf_receive: 4 [pulselength 609, protocol 2]
2017-12-20 23:45:11 - [INFO] rpi-rf_receive: 4 [pulselength 352, protocol 3]
2017-12-20 23:45:11 - [INFO] rpi-rf_receive: 4 [pulselength 558, protocol 5]
2017-12-20 23:45:12 - [INFO] rpi-rf_receive: 33 [pulselength 732, protocol 2]
2017-12-20 23:45:12 - [INFO] rpi-rf_receive: 480 [pulselength 128, protocol 3]
2017-12-20 23:45:12 - [INFO] rpi-rf_receive: 254126 [pulselength 521, protocol 5]
2017-12-20 23:45:13 - [INFO] rpi-rf_receive: 254126 [pulselength 515, protocol 5]
2017-12-20 23:45:13 - [INFO] rpi-rf_receive: 2350661 [pulselength 514, protocol 5]
2017-12-20 23:45:13 - [INFO] rpi-rf_receive: 8 [pulselength 1270, protocol 4]
2017-12-20 23:45:14 - [INFO] rpi-rf_receive: 2913223 [pulselength 512, protocol 5]
2017-12-20 23:45:14 - [INFO] rpi-rf_receive: 131072 [pulselength 1233, protocol 4]
2017-12-20 23:45:14 - [INFO] rpi-rf_receive: 16 [pulselength 1207, protocol 4]
2017-12-20 23:45:15 - [INFO] rpi-rf_receive: 1048576 [pulselength 1316, protocol 2]
2017-12-20 23:45:15 - [INFO] rpi-rf_receive: 2136727 [pulselength 511, protocol 5]
2017-12-20 23:45:15 - [INFO] rpi-rf_receive: 2136727 [pulselength 510, protocol 5]
2017-12-20 23:45:15 - [INFO] rpi-rf_receive: 2136727 [pulselength 508, protocol 5]
2017-12-20 23:45:15 - [INFO] rpi-rf_receive: 2136727 [pulselength 528, protocol 5]
2017-12-20 23:45:16 - [INFO] rpi-rf_receive: 8192 [pulselength 262, protocol 3]
2017-12-20 23:45:23 - [INFO] rpi-rf_receive: 2 [pulselength 1012, protocol 4]
2017-12-20 23:45:24 - [INFO] rpi-rf_receive: 1 [pulselength 1722, protocol 4]
2017-12-20 23:45:24 - [INFO] rpi-rf_receive: 32 [pulselength 677, protocol 2]
2017-12-20 23:45:25 - [INFO] rpi-rf_receive: 16384 [pulselength 1199, protocol 2]
2017-12-20 23:45:25 - [INFO] rpi-rf_receive: 393216 [pulselength 374, protocol 3]
2017-12-20 23:45:26 - [INFO] rpi-rf_receive: 8 [pulselength 1613, protocol 4]
2017-12-20 23:45:26 - [INFO] rpi-rf_receive: 8200 [pulselength 524, protocol 1]

As you can see, there is also quite some noise. the codes in the 210k range are from the remote I think.

Edit:

It seems I do get the same code when I hold a button. And again when I release and hold it again, only I get a different key for a while. every time I hold the key it looks like a different code...

Edit2:
This is a video of someone with the same problem:
https://www.youtube.com/watch?v=MQC-3xLh9Y4

Can't read /data/addons/git/de3cd379/local_audio_player/config.json: required key not provided @ data['arch']. Got None

Cannot add local Media Player to Hassio

19-10-17 07:15:18 WARNING (MainThread) [hassio.store.data] Can't read /data/addons/git/de3cd379/hc-sr04/config.json: required key not provided @ data['arch']. Got None
19-10-17 07:15:18 WARNING (MainThread) [hassio.store.data] Can't read /data/addons/git/de3cd379/dasshio/config.json: required key not provided @ data['arch']. Got None
19-10-17 07:15:18 WARNING (MainThread) [hassio.store.data] Can't read /data/addons/git/de3cd379/local_audio_player/config.json: required key not provided @ data['arch']. Got None

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.