Number test_nb_1
Number test_nb_2
Rollershutter test
now I am trying to make this a bit “interactive”, interactive means that the positions of “half” and “open” can be changed via Sitemap. Setting the state of half and open is not the problem.
is it possible to map the value of test_nb_1.state to “open” like this?
okay.
It is a Homematic setup - so yes. via binding.
And I used the mappings to get the RS to predefined states, like heatprotection.
But in the current solution the value is hardcoded in the sitemap an a normal user is not able to change the value.
With defining a Numberitem and add it to a sitemap I am trying to change this.
The user could change the Value of the numberitem.
we are turning arround, as you can see in my first post I am using absoute percent values already.
these are hardcoded in the sitemap and not changable by a non administrator.
therefore I am looking for a way to user the value of a number-item (that can be changed via sitemap).
No. test_nb_1.state="open"
The bit on the left is the command that is sent when you poke the button marked “open”. You cannot coerce it to any other meaning.
I don’t really follow what you are trying to do, but visibility= is a useful sitemap tool.
People will commonly use this to display one widget when some other Item has ‘this’ state, and a different widget when the other Item has ‘that’ state.
No it is not possible by using a sitemap. Very few aspects of a sitemap are dynamic. Mappings in the sitemap are static. @rossko57’s advice to use [visibility=...] is an option if you only have two or three discrete mapping patterns that you anticipate you will want. If you want to have full, arbitrary control of the mapping levels you’ll need an intermediary item on the sitemap and a rule that translates the the sitemap item to your myblinds item.
Then your rules files should contain some logic such as: When someSitemapItem changes,
if someSitemapItem state is 1 (i.e. “half”) set myblinds to blindsHalfLevel state.