# Variable or tag

**URL:** <https://unfolded.community/t/variable-or-tag/496>\
**Category:** Feature requests\
**Created:** [September 29, 2023, 9:09am UTC](https://unfolded.community/t/variable-or-tag/496 "2023-09-29T09:09:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wawa79](https://unfolded.community/letter_avatar_proxy/v4/letter/w/c4cdca/32.png) [@wawa79](https://unfolded.community/u/wawa79)\
**Post date:** [September 29, 2023, 9:09am UTC](https://unfolded.community/t/variable-or-tag/496/1 "2023-09-29T09:09:55Z")

</div>

Hello! Is it planned to have some way to share variables bidirectionnally between the remote and OpenHAB or other automation integration, and have some trigger event / update mechanism?

Use case : my OpenHAB is adjusting Kodi audio / video settings depending on the activity (music, multichannel theater movie, plain TV). It maintains a virtual item to store current setting coniguration in Kodi (MUSIC / TV / THEATER).  
I would like the YIO to be aware of that state and behave accordingly:

- either by jumping to the activity or page when the state changes
- or by handling kind of “conditional commands” in macros relying on these states  
The macro for the volume up key would be a sort of:  
`if oh_item_activity.state==MUSIC then send_ir(music_amp_volume_up) elseif oh_item_activity.state==THEATER then send_ir(av_amp_volume_up)`
