Connect Workplace Occupancy Sensors to iOffice Follow
This walkthrough shows how to add Worpkplace Occupancy sensors to Mobius and publish the occupancy data to iOffice.
Before starting this walkthrough read the MobiusFlow overview articles, and the articles describing how to connect to your Mobius device and setting up the networks.
The Workplace Occupancy sensors connect to the MobiusFlow gateway via one or more WDCOCC WiFi Connectors. There is no limit to the number of sensors each connector can handle, but the range between the sensors and the connectors is typically 30m. The connectors forward the sensor data to the gateways via WiFi. This can either be the building's WiFi infrastructure or the gateway can act as a WiFi access point.
Setting up the WDCOCC WiFi Connectors
- Power up the WDCOCC WiFi Connector
- Push the AP Mode button on the connector with a suitable tool. The middle LED will become solid green to indicate that it is in configuration mode
- Using your phone, tablet or PC connect to the connector's WiFi network. This WiFi network will be called IA_XXXXXX where XXXXXX is the connector's serial number (this is written on the connector)
- The network password is iaconnects. This network is only used during configuration and can only be activated by pushing the AP Mode button so there is no need to change this password
- Open your web browser on your phone, tablet or PC and navigate to 192.168.4.1 This will show the connector's setup page
- The connector will scan for all local WiFi networks and display the list
- Select the correct WiFi network and enter the network's password
- In the Service Settings section enter a unique service ID (sid) and a password (psk). The service ID is a three digit Hex number starting with F (e.g. F02). When adding multiple connectors to a gateway ensure that the service IDs are unique (e.g. F02, F03, F04 etc.). The password (psk) is used to authenticate the connection to the gateway and to ensure message integrity of all messages passed between the connector and the gateway
- In the MQTT Settings section enter the IP address or host name of the server, and port of the MQTT broker. If the connector is connecting directly to the gateway's WiFi access port enter 10.42.0.1 for the IP address and 30883 for the port
- Click on the Save button
- The left-hand LED will flash blue to indicate it has connected to the WiFi network
Configuring MobiusFlow on the Gateway
- Add a node-red connector service and check its Run At Start.
- Enter the Host, Port and PSK properties. The default values for the Host and Port are shown below. Choose your own PSK.
- Click Save Changes
- Add a sensor gateway service and check its Run At Start.
- Enter the Gateway Port. This is the same port number you entered into the MQTT Settings section of the connector(s) configuration page
- Click on the large blue + button to add a new connector to this service
- Enter the SPID/SID details for your connector. For a WDCOCC WiFi Connector the SPID is always FE01/. The SID should be the same as the SID you entered into the Service Settings section of the connector(s) configuration page
- Enter the PSK for your connector. The PSK should be the same as the PSK you entered into the Service Settings section of the connector(s) configuration page
- Click on the large blue + button to add more connectors if required
- Click Save Changes
- Add a workocc devices service and check its Run At Start
- Add one or more workocc_UnderDeskPD objects and one or more workocc_RoomPD objects to the workocc devices service. You will need to add one object for each sensor
- Enter the UID (unique ID) for each sensor. This is written on a label on the sensor
- Enter any additional metadata such as sensor name and location as required. This is optional
- Click Save Changes
- Go to the Diagnostics page
- Manually start all services by clicking on their Start buttons and wait for them to start
- Go to the Node-RED Flows page
- Drag a mobius flow inject from the Node-RED palette onto the flow
- Double click on the node to open its configuration page
- Click on the pencil icon to enter the Mobius connection information
- Enter the Mobius connection details using the same information that you added to the node-red-connector service above
- Click Add, followed by Done
- In the Subscriptions section add +/+/012D/# to receive data from the Workplace Underdesk Occupancy sensors and +/+/012E/# to receive data from the Workplace Room Occupancy sensors
- Click Done
- Drag a mobius office from the Node-RED palette onto the flow
- Double click on the node to open its configuration page
- Enter your iOffice Site name (without the https:// prefix and without the .iofficeconnect.com/api/v3/sensors/utilization-data suffix.
- Enter your iOffice User Name and Password
- Enter the RID (Resource ID) which contains the occupancy data. This is 40 for the Workplace Underdesk Occupancy sensors and Workplace Room Occupancy sensors
- Click Done
- Click on Deploy
- The gateway will start to send occupancy data (once per minute) for all sensors
Comments
0 comments
Please sign in to leave a comment.