How to define mappings within .items file?

Hi,

my aim is to configure hierarchical items (floor->room->group->item) in just one single file.

At the moment I need to configure switch mappings in a sitemap file. How do I configure the mappings attribute in a .items-file?

Example:
Switch item=Harmony_Activity mappings=[PowerOff=‘Aus’, Fernsehen=‘TV’, AppleTV=‘AppleTV’, Radio=‘Radio’]

Regards
Olli

Here’s an example of what I did for the motion detectors in the house.

item in my sitemap:

Contact  Hallway_Motion      "Hallway Motion [MAP(motion.map):%s]"     <present> {zwave="3:0:command=sensor_binary,respond_to_basic=true"}`

motion.map in the Transform directory:

CLOSED=All quiet
OPEN=Movement detected
-=No input

And it looks like this in Safari:

2 Likes