homematic | home automation system
kandi X-RAY | homematic Summary
kandi X-RAY | homematic Summary
The following are scripts I use in conjunction with my Homematic installation. I do tend not to use additional modules / software on my systems, so things should work without additions.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of homematic
homematic Key Features
homematic Examples and Code Snippets
Community Discussions
Trending Discussions on homematic
QUESTION
I use Node-Red to query a status list that comes back as long XML. It is basically from my Homematic home automation central unit, i.e. sensor values and status.
right now I'm querying each sensor specifically, but there is also a function to get everything at once, which looks more economically to me, as I need multiple values anyway.
However, I don't know if it is guaranteed that the values will always be at the same position.
The XML looks like this:
In Node-Red debug window I can see the structure like this:
I know how to access each of the nodes individually, but if I use the copy Path method:
...ANSWER
Answered 2019-May-05 at 19:27A possible solution:
The xml node will convert the XML file into a JavaScript object. The following node, that is a change node configured with a jsonata
expression will filter only the data for the desired ise_id
, no matter where it is in the object (or xml) structure.
You can learn more about jsonata in this link: https://docs.jsonata.org/overview
You may want to read specifically the page about Predicate queries
: https://docs.jsonata.org/predicate
Anyway, I would be glad to clarify any question. Additionally, you can find plenty of examples of jsonata (or ask questions) in Node-RED forum
Node-REd Flow:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install homematic
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page