Transformation

Hello
How someone can go about this
I need to transform AAAAAQAAAAEAAABgAw== to something more readable like Home button
but AAAAAQAAAAEAAABgAw===Home button doesnt work

This is coming from the sony binding where those codes are a must in that format

thanks

We need way more details. Translate it where? In the UI? A rule? The logs?

Ok so the binding places a file in the transformation configuration folder of openhab namely transform folder now everytime i run a rule i get this

[WARN ] [rm.AbstractFileTransformationService] - Could not transform 'AAAAAQAAAAEAAABgAw==' with the file 'scalar-b64672fc6d96.map' : Target value not found in map for 'AAAAAQAAAAEAAABgAw=='

keep in mind that file exist

now this is my rule

rule "lets refresh the protect app to not get stale image "
when
    Time cron "0 0/5 * * * ? *"
then
    if(Presence_detector.state == OPEN) {
    MediaTV_IRCCCommand.sendCommand("AAAAAQAAAAEAAABgAw==")
    Thread::sleep(5000)
    MediaTV_AppUniFiProtectStatus.sendCommand("start")
    logWarn("refresh of protect app", "unifi protect app refreshed")
    }
    else 
    logWarn("refresh of protect app", "there is no movement so not run refresh protect app")
    return;
end

Well, the error is pretty straight forward. There is no entry in that file for AAAAAQAAAAEAAABgAw==. Now there may be an issue with the ending ==. You can get past that using escapes as shown in the docs.

AAAAAQAAAAEAAABgAw\=\==Home
1 Like

yes it did work thank you next time more reading the docs Thank you