Hi
I want to use the mosquito. I did it before with notify command. the woonkamertempnot, see below
I will use the mqtt modules in them, see below also
define woonkamertempnot notify Woonkamertemp:temperature.* "usr/bin/mosquitto_pub -t smartmeter/woonkamertemp -m $EVTPART1"
define mqtt MQTT 192.168.180.5:1883
define mqtt_buitentemp MQTT_BRIDGE Buitentemp
attr mqtt_buitentemp publishReading_temperature smartmeter/buitentemp
I get this error, any idea what is wrong
Use of uninitialized value $name in concatenation (.) or string at /usr/share/fhem//FHEM/00_MQTT.pm line 325.
seems to be something wrong with the IODev-setting of mqtt_buitentemp as it doesn't have 'NAME'-member. Try setting 'attr mqtt_buitentemp IODev mqtt' as very first attribute of mqtt_buitentemp if it is not set correctly by automatic assignment.
can you check latest version from svn? I've commited some changes this afternoon.
regards,
Norbert
Norbert,
it works. I update matt form svn. Now it publish it to my realtime every 40 sec.
define mqtt MQTT 127.0.0.1:1883
define mqtt_buitentemp MQTT_BRIDGE Buitentemp
attr mqtt_buitentemp IODev Mqtt
attr mqtt_buitentemp publishReading_humidity smartmeter/buitenhum
attr mqtt_buitentemp publishReading_temperature smartmeter/buitentemp