Comments (4)
for some reason the form did not keep the pasted object declaration. Let me try again:
''
''
apologies for that
from linknx.
nope. I attach the declaration excerpt here.
20.102_issue.txt
from linknx.
Hi,
A few leads to follow:
- AFAIK, when
init="request"
, the initialization takes place upon the first read request for that object. Can you force linknx to get the value for this object to see if it triggers the expected request on the bus? Does the return value correspond to the expected one? - Can you set logging to the
debug
level and send its content to maybe get more hints as to what is going on? - there is a 1 second timeout on read requests. If the device did not answer within that time, the object is set to its type's default value.
Thanks!
PS: to insert your configuration excerpt, make sure to enclose it with triple backticks like so:
```
<object id="on_off_sala" type="1.001" init="request" gad="2/3/4" flags="cwu"/>
<object id="modo_bagno_P1" type="20.102" init="request" gad="2/6/11" flags="cwu"/>
```
It forces markdown to interpret the text as plain text, so that it is not confused by XML content. The output would be like this:
<object id="on_off_sala" type="1.001" init="request" gad="2/3/4" flags="cwu"/>
<object id="modo_bagno_P1" type="20.102" init="request" gad="2/6/11" flags="cwu"/>
from linknx.
Many thanks, Cyrille, for your quick answer and your hints. You helped me to understand how initialization works and to solve the issue.
The following code works just fine:
<?xml version="1.0"?>
<config>
<objects>
<object id="on_off_sala" type="1.001" init="request" gad="2/3/4" flags="cwu"/>
<object id="modo_bagno_P1" type="20.102" init="request" gad="2/6/11" flags="cwu"/>
</objects>
<rules>
<rule id="test_on_off_sala" init="eval">
<condition type="object" id="on_off_sala" value="on" op="lte" trigger="true"/>
<actionlist>
</actionlist>
</rule>
<rule id="test_modo_bagno_P1" init="eval">
<condition type="object" id="modo_bagno_P1" value="frost" op="lte" trigger="true"/>
<actionlist>
</actionlist>
</rule>
</rules>
<services>
<knxconnection url="ip:localhost:6720"/>
<xmlserver type="inet" port="1028"/>
</services>
</config>
To explain a bit, I have several rules that I use to trigger on update of an object, the condition does not have a "value" clause, just the "trigger" clause. This does not cause linknx to send a read on the bus, while the code above does. I therefore replaced the missing "value" clause with a clause which is always true to obtain the behavior I want.
Thanks again
Ste
from linknx.
Related Issues (20)
- Create Tag / Release for the project HOT 3
- Add support for 229 and 235 KNX datapoints HOT 2
- Unable to start linknx with --daemon from systemd HOT 3
- Enhance rule triggering with rising and falling edges HOT 8
- New rule action that triggers another rule HOT 2
- Get rid of pthsem HOT 5
- Integrate with Travis CI HOT 2
- compilation fails with gcc6 HOT 13
- Rules cannot mix if-xxx and on-xxx actionlists
- Regression in rules in v0.0.1.35 and v0.0.1.36
- Compile fails since commit 0512f6d0a07d50df33bfdca22d48360d164922a8 HOT 1
- sunrise and sunset timer fail to schedule at the end of the month (for the first day of the next month) HOT 4
- Move to Github Actions HOT 2
- configure: error: cannot run /bin/bash ./config.sub HOT 6
- Broken build on Github, master branch HOT 1
- Migrate from MySQL connector to MariaDB connector
- Make CI build matrix more explicit in the way it selects optional features
- Library in cpp HOT 1
- rules created with flag active="no" have stateless actionlists executed on initialization HOT 4
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 linknx.