-
Notifications
You must be signed in to change notification settings - Fork 27
Usage with FHEM & MQTT
Create a device in FHEM of the type MQTT_DEVICE, assuming that the FHEM-MQTT-connection is already set up properly. See FHEM-Wike how to set up MQTT.
define RolloSleepRoom MQTT_DEVICE
then give attributes:
attr RolloSleepRoom devStateIcon UP:shutter_open DOWN:shutter_closed SHADE:shutter_halfopen STOP:shutter_halfopen
attr RolloSleepRoom eventMap UP:UP DOWN:DOWN SHADE:SHADE STOP:STOP
The numbers are the numbers of the shutter like on the jarolift-webpage:
attr RolloSleepRoom publishSet UP DOWN STOP SHADE cmd/jarolift/shutter/1
attr RolloSleepRoom stateFormat state
attr RolloSleepRoom webCmd UP:DOWN:STOP:SHADE
This is necessary if the shutter is controlled by other devices via MQTT to get the state from the mqtt-broker:
attr RolloSleepRoom subscribeReading_state stat/jarolift/shutter/1