This is a virtual fan that can be added to Homebridge --> Apple Homekit

I use this for my AMX system to listen to commands and then control a Dynalite lighting system that then controls my lights.

To Do:
-get feedback from controller working
-expand to multi state. Or create a seperate button type driver

Config:{
    "accessory": "VirtualSwitchBinary",
    "name": "Study Light",
    "area": "242",
    "channel": "0" //not used yet...


AMX Module:
1- Log into Homebridge SSH from AMX controller.
2- After authentication, send: "'sudo hb-service logs'". This will print out logs
3- Then listen to the commands.
    e.g. 
    light=preset:1:242
    <device>:<action>:<1 or 0>:<area>