Closed Zefau closed 4 years ago
Your idea together with the possibility to automatically import alias devices would really improve and speed up the configuration of jarvis.
Looks good. How do I activate the alias functionality? Is that a dedicated adapter? Couldn't find one and I'm missing the option in the menu. Found it.
@braindead1 Actually looks like that the alias
devices automatically added to the enums
as well when assigned to a function? Can you confirm that?
I never worked with the alias / devices adapter. Is the structure flexible chosen by the user or is it statically set by the adapter based on deviceType
? First impression to me is, that it is static (which is good) and the user is not able to freely choose the name of the state?
I just started using the adapter, but during the last ioBroker developer session it was discussed that the adapter could become part of the standard feature set. Therefore it is worth spending time. The intention of the adapter is to create a unified structure for devices of different adapters.
The answer to your question highly depends on the way aliases are created. If the alias is created with the mentioned adapter, the state names are given and cannot be changed by the users. Besides the adapter, aliases can be created manually (e.g. via scripts that can be found in the forum) and here the user is free to name states.
This has been introduced now with v1.0.0-beta.1
and is ready for testing.
You will find the option to Import devices
in the Devices tab of the configuration panel, see:
The following adapters are supported for a device import:
You may either search the whole adapter structure or filter to only search within (the user defined) enums.
@braindead1 I would appreciate if you could test this functionality as well. Thanks for that!
I removed my complete configuration to simulate a fresh installation of jarvis. I noticed the following:
Newly imported devices should be ticked by default. Otherwise the user has to tick every device he wants to import. I have 51 alias devices and this was cumbersome.
All imported lights are handled like dimmers, meaning the SET
state is transformed into level
, which is not correct. I have a lot of dimmers, but the same amount of not dimmable lights.
It should be possible to disable the above mentioned transformation.
The above mentioned transformation should be improved to also set the Action
for SET
/ level
.
Other things I noticed that are not related to device import:
The "Abbrechen" button next to "Speichern" is pulsating until you click somewhere else. I was not able to take a screenshot to show what I mean as this effect is only available when the browser window has focus.
Saving "Page Settings" results in the following JSON: {"[object Object]":"Smart Home"}
. I wanted to set the language to "Deutsch" and the title to "Smart Home".
1.0.0-beta.2
)SET
state is transformed into level
, which is not correct. I have a lot of dimmers, but the same amount of not dimmable lights. (fixed with 1.0.0-beta.8
)Action
for SET
/ level
. (fixed with 1.0.0-beta.8
){"[object Object]":"Smart Home"}
. I wanted to set the language to "Deutsch" and the title to "Smart Home". (fixed with 1.0.0-beta.2
)It will not be possible to disable the state transformation. The created states can easily be removed. Furthermore, the "original" states will always be created / adapted as well.
This should be resolved with 1.0.0-beta.2
respectively 1.0.0-beta.8
.
The "Abbrechen" button next to "Speichern" is pulsating until you click somewhere else. I was not able to take a screenshot to show what I mean as this effect is only available when the browser window has focus.
Could you explain in detail how to reproduce this? You are on the Device Import dialogue and you have searched for devices already and seeing the result list? And having the browser window focused the "Abbrechen" button is pulsating? What browser are you using?
I have a clean installation of v1.0.0-beta.8
and no configuration. The config dialogue pops-up and now the "Abbrechen" button is pulsating until you click somewhere else. I tried Google Chrome and Microsoft Edge. In both browsers it's the same.
aa13283a3eac314bd9a01ae3f0d2f86ae37a68b3
Supported adapters and device types:
light
blinds
socket
heating