i tried to translate the original post on FHEM Forum into english for people, who does not speek german.
btw. I'm sorry for my english, so feel free to make corrections
The new MYSENSORS Module ...
... integrates the Arduino- an nRF24L01 based MySensors wireless sensors and -actors in FHEM.
It supports MySensors serial and ethernet gateways.
You can configure FHEM with
define gateway MYSENSORS /dev/ttyUSB0@115200
for serial, or with
define gateway <IP>:<PORT>
for ethernet gateway.
After start, press the "Inclusion-mode" Button on gateway, or fire 'set gateway inclusion-mode on' command in FHEM.
Then restart your sensors in the radio range. (the "inclusion-mode will be turned off automaticly after one minute)
You can add new devices in FHEM with the define command:
define temperaturesensor MYSENSORS_DEVICE 21
attr temperaturesensor IODev gateway
For controlling Actors (f.e. the 'RelayWithButtonActuator') you have to teach your MYSENSORS_DEVICE the relevant set-commands:
define relay MYSENSORS_DEVICE <nodeid>
attr relay setCommands on:switch_1:on off:switch_1:off
attr relay stateFormat switch_1
Now you can toggle the actor in the web ui.
you can teach the gateway or single nodes to response every set-messagewith an individual acknowledge-packet with the following attribute:
attr <gateway|node> requestAck 1
With activated acknowledge the gateway will sending the command untill it received the acknowledge response. (If the actor is absent or off, it will receive the command as soon as it is accessible again. Warning: FHEM will lose these queued messages on a restart)