Skip to content

Usage with FHEM & MQTT

Wunder Baum edited this page Aug 2, 2018 · 2 revisions

How to use with FHEM

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

Clone this wiki locally