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
KNX sensor value not updating #8342
Comments
It might have to do with a concurrency problem. I'm not sure why this started happening now. There is some work on the underlying KNX library to make it thread-safe and I hope to include the new version in 0.49. |
Hass 0.49 on Debian
|
Hi after updating to Hass 0.49 on Ubuntu, the issue is still there. |
Can you try to edit knx.py and set the version of pknx to 0.5. This is the latest version and should further improve stability in multithreaded applications. |
Hi. Could you point me to the "how to page" or tell me how I could do that? I'm no developer, merely an IT enthusiast. Thank you :-) |
@open-homeautomation Dimmer function for knx seems broken too. |
@marcoelgordo
|
Thank you Helldin |
Did you restart HASS after editing the file? |
yes |
What kind of sensor is this? What other KNX components have you configured? |
switch
Light
|
What kind of KNX interface are you using? |
Abb ipr/s 2.1 gatway |
You should be able to use the group address monitor in ETS. DO you see HASS accessing this address? |
I have GIRA 5133 for the lights and temp connected to an Actuator and connected iKNIX (v2) to operate. My server is running EIBD Daemon. Thank you again M |
IPR/S 2.1 only have 1 tunnel so i cant connect to group monitor in ets then hass i running |
@Helldin This happens with all your sensors? |
No in last post i have point out witch sensors work or not working |
@Helldin Sorry, this question was for @marcoelgordo @marcoelgordo Does this problem happen with all your sensors? |
I have only have 2 temperature sensors and it happens to both sensors. As for Helldin I cannot connect to ETS when HAL is working. |
Hi, after further tests, when I action a switch manually, the status of the switch is not shown in Hass anymore. I can action the switch via Hass however without an issue. |
Is is a switch or a light? Lights have been changed quite a lot in the latest releases. |
Yes lights. |
Please replace the sensor/knx.py by this version: This won't fix the problem, but provide better logging |
updated sensor/knx.py
|
This looks like your sensor returns one byte, but you configured a float sensor. Are you sure the configured group address is correct? Please check with ETS that the read on this address really returns a 2byte float. |
ets return this
|
My EIB module gives the following. sensor.livingroom address 1/0/0 In Hass I have no error message after changing knx.py it just says |
Hi, My Hass still has no success on reading the status of the bus (temp and Lights) and this despite the fact that I'm able to get status with the KNX controller App on Android (please see pic) https://ibb.co/g3Q8UF Hass however does not seem to be able to read the values of the bus. As I said above, it used to work in V0.48 and below I'm currently running V0.52.1 Thank you in advance, Marc |
I will. Currently not at home but will try asap (tomorrow at the latest). |
Hi, 2017-09-03 14:13:58 WARNING (MainThread) [xknx.log] Could not read value of <Sensor name="Livingroom" group_address="" state="None" resolve_state="None" /> 2017-09-03 14:13:59 WARNING (MainThread) [xknx.log] Could not read value of <Light name="Study Light" group_address_switch="" group_address_switch_state="None" state="False" /> |
May you paste the configuration for Bedroom? |
Hi full config xknx: light:
|
This somehow looks wrong, may you reformat to:
|
Julius, I redid option 1:
After I rebooted, I get the following errors in HA:
In configuration.yaml I've got:
Any Ideas? |
@TinusK : Could you try to comment out the |
Now I got this:
|
I see 'python3.4' in the error log.... I tried:
but after that it still gave me 'python3.4' in the error log. XKNX needs at least python 3.5 right? How to install python 3.5? |
regarding python3.4, what operating system do you use? (Rasbian? or plain ubuntu?) Regarding that error: If you open |
Yes, you where right... sorry... The
I use hassbian:
got it from: |
yes, this error is exactly related with python3.4. hmm, do not know how to install python3.5 on hassbian. What you could try is to use explicit tunneling functionality, if your KNX/IP device supports this:
|
https://community.home-assistant.io/t/python-3-6-upgrade-of-a-virtualenv/21722. I'm battling to upgrade my virtual environment on to 3.6 as well |
@Julius2342:
Maybe I'll try to upgrade to python3.6 later on the day... |
rassbian will support python3.5 with this pull request: home-assistant/pi-gen#26 Btw, did you try: |
@Julius2342 @marcoelgordo Now I get the following error:
|
are you sure own ip is set correctly? |
@marcoelgordo Login to your hassbian.
See also: |
@Julius2342 |
With python3.6 you could now also try auto detection again by commenting out the tunneling block. |
... you know what... it works! Very nice! Do you have something specific to test? BTW; Commenting the |
Great! regarding notification: you can ignore this warning, this is fixed within my PR. Ideally you could test if all works as expected, especially if the update mechanism works. |
Thanks for the support getting this up and running and I will definitely report back you! |
Regarding the gateway scanner, do you see with tcpdump if the interface responds to the search requests? For further investigation you could use: https://github.com/XKNX/xknx/blob/master/examples/example_gatewayscanner.py |
I will try to get some info on that the next couple of days. |
Hi, I'm running Hass on a Virtualenv on Ubuntu 14.04 and I cannot manage to upgrade Python from 3.4 to 3.6 Thank you M |
Sorry Marco, I scraped the info together from the two sites I mentioned and got it to work with a bit of trial and error... I have no experience with ubuntu and python so I'm unable to help you. What I finally did is removing the environment, created a new one. Installed hass again and installed the dependencies again. After ofcourse I installed python 3.6 |
Guys, With the latest version of HASS v0.53 all works like a charm!! For upgrading to 3.6 in a Python Virtual env, all I did was to install Python3.6 then run the following command for the upgrade of Hass It forces Hass to use python3.6 instead of 3.4 Thank you again for all that good work Julius2342 and the whole Hass team indeed Cheers, M |
Hass V0.48 with Python 3 running on Ubuntu 14.04
Apologies if I'm not posting in the right format, this is my first time :-)
Since updating to V0.48 my KNX temperature sensors are no longer updating. I seem to be able to switch KNX lights on and off though
The text was updated successfully, but these errors were encountered: