Skip to content

Open-RMF door adapter implementation for manual doors with SwitchBot contact sensors

License

Notifications You must be signed in to change notification settings

sbgisen/door_adapter_switchbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

door_adapter_switchbot

Open-RMF door adapter implementation for manual doors with SwitchBot Contact Sensor attached. Door status will be notified by this adapter but the doors should be opened manually.

switchbot_contact_sensor door_adapter_switchbot_action

Installation

cd ~/colcon_ws/src
git clone [email protected]:sbgisen/door_adapter_switchbot.git
pip install -r door_adapter_switchbot/door_adapter_switchbot/requirements.txt
cd ~/colcon_ws && colcon build

Update config.yaml

For each door, create a corresponding config.yaml file containing important parameters for setting up the door adapter. See this file for template.

Run the door adapter

One adapter should be run for each door used inside the building managed by the Open-RMF system.

Run the command below while passing the paths to the configuration file to operate on. See here to get the switchbot token and secret values.

export SWITCHBOT_TOKEN=<token>
export SWITCHBOT_SECRET=<secret>
ros2 run door_adapter door_adapter -c CONFIG_FILE

About

Open-RMF door adapter implementation for manual doors with SwitchBot contact sensors

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages