Thank you very much for the welcome.
Ana is a number item
what I want to modify is the value that is shown on the screen, for example give it a 1 or a 2
I am trying but I am not successful in any way, it makes me very sad. I will publish some images of how I have the configuration, I tried in other ways
Juan
The rule you posted a picture of will only ever run once at system start up. If you restart the system (not the greatest way to test a rule) it should initialize your item in your sitemap (which it seems to not in the picture)
above you call your item ‘Ana’ but in your sitemap you have ‘item=ana’
might just be a typo but for item names case matters
On the sitemaps documentation page their is an example for temperature.
sitemap demo label="My home automation" {
Frame label="Temperature" {
// Overrides only the text, but will keep the state format from the Item definition
Text item=Livingroom_Temperature label="Livingroom"
// Overrides the text and hides any state representation.
Text item=Livingroom_Temperature label="Livingroom []"
// Overrides the text and state representation
// and also changes the state unit to Fahrenheit
// if the value of the item supports UoM (link below) the value will be transformed.
Text item=Livingroom_Temperature label="Livingroom [%.2f °F]"
}
}
This allows you to format the data you show on the sitemap.
Text item=ana label="Ana [%s]" icon="lightbulb"
Please you keyboard may need maintenance as the caps lock is stuck on.
You can use the Kraf console to change the state of items in testing.
ssh -p 8101 openhab@localhost
default password is habopen
Then you need to read about the console commands
Maybe this command look like what you want smarthome:send <item> <command>