jimtng

Results 150 comments of jimtng
trafficstars

> 1. Do per file variables need to be defined as global variables or is it sufficient to define them in the include directive? No, they only need to be...

@spacemanspiff2007 I added a commit that supports quoted defaults (in which you can use braces). - `${var:-'{}'}` => `{}` when var is undefined

@spacemanspiff2007 `__PATH__` is now `__DIRECTORY__` although I was tempted to shorten it to `__DIR__`. It was already done in a commit prior to your last message. > Instead of `packages`...

> > the package keys not being used bothers me a bit. Perhaps it should just be a list instead of a map, but I went with a map to...

> However I'm not fully sold on `packages`, maybe just `merge`? I think `packages` is a more apt term. It means that you can package a device elements (things, items,...

> Your right about the `!include` in packages. But how about reusing parts of the configuration like this: > > ``` > items: > my_item_name: !include energy_item.inc.yaml > my_other_name: !include...

As I said, it depends on your workflow. I've been using a similar system and workflow in openhab for at least three years and preferred manual reloading. I have an...

Everybody was tired today and returned early, so I had some time to implement the include dependency tracking. Now whenever any include files are changed, the main yaml will be...

@lolodomo yes, afaik, it should be up to date. It basically has two parts: YamlPreprocessor.java contains the main logic. The other files / classes are just plumbings/implementations for Snakeyaml.

> @jimtng I've just stumpled across [hidden items](https://esphome.io/guides/yaml#hidden-items) in esphome. Do you think it makes sense to implement something like it in openHAB? Sorry I didn't read the actual link!...