Comments (14)
I'm aware of this issue, @freijn has also reported this to me and together with him we have tried a few things without success.
So, sadly, I've no idea why it is going wrong at the moment. What doesn't help is that I don't have this issue. For me, everything has been running fine for over 24h
from ha-kamstrup_403.
@freijn what's your setup? I'm running this on a Multical 603.
from ha-kamstrup_403.
@golles Is there a way to force an initialization of the head on a read?
I'm getting the impression the IR transmitted keeps emitting a signal, which explains why moving the head away/re-initialising temporarily interrupts the signal.
from ha-kamstrup_403.
Hi @IngmarVerheij
Would you be able to check out the add_diagnostics
branch or add a custom_components/kamstrup_403/diagnostics.py
manually with the following content: https://github.com/golles/ha-kamstrup_403/pull/36/files#diff-56cc7535ea9be5ea2af564f56fe2bb35e1f0a8e79744ada2f4c256370bfe48ce
After a restart, you should be able to get a diagnostic file from the integration, please sent that file, more info
from ha-kamstrup_403.
@golles Yup! See attached two logfiles (success and fail)
config_entry-kamstrup_403-66febb359ac7a27e5899da3c439ed745.json (1).txt
config_entry-kamstrup_403-66febb359ac7a27e5899da3c439ed745.json.txt
from ha-kamstrup_403.
Thanks, I see you're running HA in Home Assistant OS in a VM, is that correct?
Maybe that is a hint to the cause...
I'm running Home Assistant Container
from ha-kamstrup_403.
@golles, I am running in a VM as well on a nuc.
@ingmar in the previous version the change of the scan freq was also a way I could get it to run again.
a reload makes it stopped ( after a yaml change you reload). A disable and enable makes it works again as well.
To me, (just a wild guess!) on the first install, some config is not read. Then after a disable/enable or time change the config is read and its working again. Once working it is stable and working till the next reload happens.
from ha-kamstrup_403.
My Diagnostics files
config_entry-kamstrup_403-a20b7a07942b3d15121047cf82860ed8.jsonFAIL.txt
config_entry-kamstrup_403-a20b7a07942b3d15121047cf82860ed8.jsonOK.txt
from ha-kamstrup_403.
@freijn then our results differ slightly.
There's no difference between a Reload or a Disable/Enable of the integration. During the first run I can read the sensor values, all consequent runs result in "No readings from the meter. Please check the IR connection"
from ha-kamstrup_403.
@IngmarVerheij
Are you in for a test ?
in the custom component /kamstrup403 file __init__.py
you find :
from .const import (
DEFAULT_BAUDRATE,
DEFAULT_SCAN_INTERVAL,
DEFAULT_TIMEOUT,
DOMAIN,
NAME,
PLATFORMS,
VERSION,
)
Add this below this array
DEFAULT_TIMEOUT = 2
so you should get :
from .const import (
DEFAULT_BAUDRATE,
DEFAULT_SCAN_INTERVAL,
DEFAULT_TIMEOUT,
DOMAIN,
NAME,
PLATFORMS,
VERSION,
)
DEFAULT_TIMEOUT = 2
Restart and let us know if you see any difference ?
I did 3 restarts and all are ok :-)
from ha-kamstrup_403.
I can confirm that adding the line to init.py resolves the issue. Thanks, champs!
from ha-kamstrup_403.
Awesome news and many thanks @freijn for your investigation.
@IngmarVerheij could you also test with DEFAULT_TIMEOUT
values 1.0
and 0.5
?
I'm very curious what these do for you.
I've re-opened the issue as I need to implement a fix 😀. I'm considering setting a default of maybe 1.0
and then make it configurable for the user, like with the scan interval.
from ha-kamstrup_403.
@golles See results below:
2.0: Success!
1.0: Success, for a while... then fails
0.5: Success, for a while
0.2 (default setting): Failed
0: Failed
from ha-kamstrup_403.
Released!
https://github.com/golles/ha-kamstrup_403/releases/tag/2.0.1
from ha-kamstrup_403.
Related Issues (20)
- Does the clip fit the IR sensor in #38? HOT 1
- Set Device class for 'Volume' sensor HOT 2
- Lost connection HOT 23
- Network Sensor
- Is this also working on Kamstrup 401? HOT 4
- Support for SERVICE HOMEASSISTANT.UPDATE_ENTITY and disable standard polling interval. HOT 4
- HA Integration and Kamstrup as separate modules HOT 3
- Kamstrup ESP8266 support HOT 5
- Support for pulse over cable? HOT 1
- Kamstrup multical 21 water meter HOT 9
- Multicall 403 sleeping after 4 min HOT 12
- MaxFlowDate_M (and other Date parameters) shown incorrectly "230,207.0 yy:mm:dd" HOT 6
- Entity names should be user-friendly HOT 6
- Mock meter in dev container HOT 3
- got an unexpected keyword argument 'suggested_display_precision' HOT 2
- Mbus HOT 4
- First reading fails
- Why do I have 28 hidden entities? HOT 2
- Request to enable using HA serial sensors HOT 20
- SSL Handshake error after installing integration HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ha-kamstrup_403.