Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code with a star #10

Open
PatrikTheDev opened this issue Jul 1, 2020 · 19 comments
Open

Code with a star #10

PatrikTheDev opened this issue Jul 1, 2020 · 19 comments

Comments

@PatrikTheDev
Copy link

Hey! I connected the main unit to my raspi, looked up the address (/dev/hidraw1) and installed the plugin. My password is X*XXXX so I added it to the config and I'm getting this error: File "/home/homeassistant/.homeassistant/custom_components/jablotron_system/alarm_control_panel.py", line 24, in async_setup_platform async_add_entities([JablotronAlarm(hass, config)]) TypeError: Can't instantiate abstract class JablotronAlarm with abstract methods supported_features

What can I do to solve it?

@Shamshala
Copy link

Have you tried to use the password without the star? 🙂

@PatrikTheDev
Copy link
Author

PatrikTheDev commented Jul 1, 2020 via email

@PatrikTheDev
Copy link
Author

Just tried, didn't help

@Shamshala
Copy link

Do you use just the @plaksnor's code without any modifications or did you edit few lines which are necessary for usage in newer HA versions? (as mentioned in several issues here 🙂 )

Try my fork.

@johro897
Copy link

johro897 commented Jul 2, 2020

Agree with @Shamshala find a fork that suits you.
This repo is no longer updated.

@PatrikTheDev
Copy link
Author

@Shamshala okay, tried your fork but I'm getting this error now: Unable to prepare setup for platform jablotron_system.binary_sensor: Platform not found (cannot import name 'BinarySensorEntity' from 'homeassistant.components.binary_sensor' (/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/binary_sensor/__init__.py)).

I just git cloned your repo in place of the old one

@Shamshala
Copy link

Just to make sure, what HA version do you use?

@PatrikTheDev
Copy link
Author

Sorry, I was using an outdated install. Now I'm getting a different error:

custom_components.jablotron_system.binary_sensor
Source: custom_components/jablotron_system/binary_sensor.py:90
Integration: jablotron_system
First occurred: 12:40:10 AM (1 occurrences)
Last logged: 12:40:10 AM

Unexpected error 1: can't concat NoneType to bytes

@Shamshala
Copy link

Ok, this time i need a bit more info because i don't know. 😆

You are still trying to use the star in your password, don't you? 😉

@PatrikTheDev
Copy link
Author

PatrikTheDev commented Jul 3, 2020 via email

@Shamshala
Copy link

I was able to simulate the error by inserting a star in my code, that's why i've asked. 🙂

Anyway, i thought i saw a post from someone else claiming the star is not passed to Jablotron system (unfortunately i don't know for certain because i don't have codes with prefixes). Try to use the password/code without quotation marks in your config, if you used them.

@PatrikTheDev
Copy link
Author

PatrikTheDev commented Jul 3, 2020 via email

@Shamshala
Copy link

Shamshala commented Jul 3, 2020

You shouldn't have used your code without a prefix. Just use the code without a star - means 1*2345 change to 12345 🙂

And you can try to use the password/code without quotation marks in your config, if you're using them.

@PatrikTheDev
Copy link
Author

PatrikTheDev commented Jul 3, 2020 via email

@Shamshala
Copy link

Another question to make sure, is the used code for admins or is it just a user's code? In other words, are you able to use F-Link? (i don't mean J-Link which is free to use/download from the Jablotron's webpage)

If it is Admin's code, still doesn't work and you are not concerned much about "leaking" code to another person, we can try to sniff (OMG so much sniffing in this git page 🤣 ) the actuall sequence from the F-Link's communication - to be able to define a "corrected" version which should be accepted. 🙂

@PatrikTheDev
Copy link
Author

PatrikTheDev commented Jul 3, 2020 via email

@Shamshala
Copy link

Shamshala commented Jul 3, 2020

Yes it is but it's not about whether or not you have the software. There are "users", "admins" and "installers" codes and you should have an admin's code in order to be able to, let say, disable some sensors due to failure or because of pets, or to be able to rename your sensors, etc. (everything configurable via keypad)

Then you need to ask your installer to provide an admin code. I'm not sure about usage of this integration in combination with a user's password (at least for alarm panel) but it basically emulates F-Link.

@johro897
Copy link

johro897 commented Jul 3, 2020

@Patrik-svobodik You should use hidraw1 according to your print out

what did dmesg | grep usb show?

@Shamshala
Copy link

Apparently he tried both hidraw1 and hidraw0.

@Patrik-svobodik
Btw: AlarmPanel works even with only a user code. It's been a long time since these little attempts to test something so i forgot. 😆

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants