voruti / json2config Goto Github PK
View Code? Open in Web Editor NEWConverts openHAB Items and Links from JsonDB Storage files to textual configuration files.
License: MIT License
Converts openHAB Items and Links from JsonDB Storage files to textual configuration files.
License: MIT License
Fix this:
❗Channel Link Profiles (value → configuration → properties → profile) currently will be lost in this
process❗ (They can - of course - manually be added afterwards)
Currently multiple channels are generated in an invalid way:
{channel="thing:1"} {channel="thing:2"}
Hi
Because the "Linked to Thing channel" data is in a different Json file, would it be difficult to create an Item file with the Linked channel data in?
Metadata attributes (eg. [ roomHint="Living Room" ]
) don't get converted (they currently are ignored) in the latest release 1.8.0.
There's also a org.eclipse.smarthome.core.items.Metadata.json
file containing metadata about each item, if any exists.
Do you fancy also parsing that and add the relevant metadata onto the item it belongs to?
Here's an example snippet from that file on my server - the 'ga' is for google automation as per https://www.openhab.org/docs/ecosystem/google-assistant/
"ga:NanoSwitch_HallLight_Switch": {
"class": "org.eclipse.smarthome.core.items.Metadata",
"value": {
"key": {
"segments": [
"ga",
"NanoSwitch_HallLight_Switch"
]
},
"value": "Light",
"configuration": {}
}
}
So this would need to be added to the existing Item NanoSwitch_HallLight_Switch (as defined in the org.eclipse.smarthome.core.items.Item.json
file) like this:
NanoSwitch_HallLight_Switch { ga="Light" }
- pretty simple really.
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
.github/workflows/gradle.yml
actions/checkout v3
actions/setup-java v3
.github/workflows/release.yml
actions/checkout v3
actions/checkout v3
actions/setup-java v3
settings.gradle
build.gradle
com.github.johnrengelman.shadow 8.1.1
io.freefair.lombok 8.3
org.apache.logging.log4j:log4j-api 2.20.0
org.apache.logging.log4j:log4j-core 2.20.0
org.apache.logging.log4j:log4j-slf4j-impl 2.20.0
org.projectlombok:lombok 1.18.30
info.picocli:picocli 4.7.5
info.picocli:picocli-codegen 4.7.5
com.google.code.gson:gson 2.10.1
org.junit:junit-bom 5.10.0
org.junit.jupiter:junit-jupiter 5.10.0
gradle/wrapper/gradle-wrapper.properties
gradle 8.3
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.