MQTT and motion sensor

Hi,

I 'am trying to pass the motion sensor data (OPEN, CLOSED) from my openhab (1.9) to my Mosquitto runing in my RPI3, but unfortunatly don’t work.
The Humidity sensor data from my Lacrosse is workin well.

Following is my config/Setup:

Item:

Number Hum_Buero { mqtt="<[mosquitto:humidity/Buero:state:default], >[mosquitto:humidity/Buero:command:*:default]" }

String motion_abstellraum { mqtt="<[mosquitto:motion/Abstellraum:state:MAP(1.map)], >[mosquitto:motion/Abstellraum:state:MAP(1.map)]" }

1.map

OPEN=Geöffnet
CLOSED=Geschlossen
open=OPEN
closed=CLOSED

Rule:

import org.openhab.core.library.types.*
import org.openhab.core.persistence.*
import org.openhab.model.script.actions.*
import org.openhab.model.script.actions.Timer
import java.util.Calendar
import java.util.Date
import java.util.TimeZone



    rule "Bewegung Abstellraum"
    when
         Item Tuer_Bewegung received update OPEN
         then motion_abstellraum.postUpdate (OPEN)
        
    end

Mosquitto output:

root@raspberrypi:~# mosquitto_sub -d -v -t /#
Client mosqsub/22712-raspberry sending CONNECT
Client mosqsub/22712-raspberry received CONNACK
Client mosqsub/22712-raspberry sending SUBSCRIBE (Mid: 1, Topic: /#, QoS: 0)
Client mosqsub/22712-raspberry received SUBACK
Subscribed (mid: 1): 0
Client mosqsub/22712-raspberry received PUBLISH (d0, q0, r1, m0, 'edomi/status', ... (6 bytes))
edomi/status online
Client mosqsub/22712-raspberry received PUBLISH (d0, q0, r0, m0, 'humidity/Abstellraum', ... (2 bytes))
humidity/Abstellraum 62
Client mosqsub/22712-raspberry received PUBLISH (d0, q0, r0, m0, 'humidity/Bad/', ... (2 bytes))
humidity/Bad/ 56

Thank you in advance!

rule "Bewegung Abstellraum"
when
    Item Tuer_Bewegung received update OPEN
then
    motion_abstellraum.postUpdate("OPEN")
end

Just changed the rule without any success, the item recieve the motion state update, but the mqtt it not working…

root@raspberrypi:~# tail -f /var/log/openhab/events.log
2018-06-03 01:26:20 - LH26_Abstellraum state updated to 72
2018-06-03 01:26:22 - Mouna state updated to Abwesend
2018-06-03 01:26:25 - LT35_Buero state updated to 25.9
2018-06-03 01:26:25 - LH35_Buero state updated to 60
2018-06-03 01:26:27 - LT56_Technikraum state updated to 25.2
2018-06-03 01:26:27 - LH56_Bad state updated to 66
2018-06-03 01:26:28 - LT26_Abstellraum state updated to 21.5
2018-06-03 01:26:28 - LH26_Abstellraum state updated to 72
2018-06-03 01:26:33 - LT35_Buero state updated to 25.9
2018-06-03 01:26:33 - LH35_Buero state updated to 60
2018-06-03 01:26:35 - Tuer_Bewegung state updated to OPEN
2018-06-03 01:26:35 - Wohnzimmer_Tuer_Licht state updated to 41
2018-06-03 01:26:35 - Wohnzimmer_Tuer_Temp state updated to 26.5
**2018-06-03 01:26:35 - motion_abstellraum state updated to OPEN**

It needs to be a sendCommand to go through the binding
A postUpdate only updates the value in OH
Sorry I missed that

rule "Bewegung Abstellraum"
when
    Item Tuer_Bewegung received update OPEN
then
    motion_abstellraum.sendCommand("OPEN")
end