UNPKG

samsung-hvac

Version:

Samsung HVAC protocol library

139 lines (38 loc) 1.32 kB
**This project is currently in development** **Samsung MWR-WE10 node control package** This is a port of https://github.com/DannyDeGaspari/Samsung-HVAC-buscontrol Designed to be used with a MAX485 RS-485 module **To install** `npm i -g samsung-hvac` Options: -h, --help Display help information [string] --version Show version number [boolean] -p, --port Port - e.g. /dev/serial0 [string] -g, --getStatus Get status information about the online units [number] -u, --ac_unit_number AC unit number, all units when omitted [number] -o, --power Switch AC on or off [string] -f, --fanSpeed AUTO, low, med, high [string] -t, --temperature temperature in celsius [number] -m, --mode auto, cool, dry, fan, HEAT [string] -s, --swing ON, off [string] -b, --bladePosition 1-7 ***Examples** Display help ` samsung-hvac -h ` To switch the AC on ` samsung-hvac -p /dev/serial0 -p on` To switch the AC off ` samsung-hvac -p /dev/serial0 -o off ` Get status information ` samsung-hvac -p /dev/serial0 -g 0x20 ` Output ` Unit: 0x%x 32 Power : 1 Set temp : 24 Room temp : 24 Used temp : 24 Acc Room temp : 24 ` Cool the place down ` samsung-hvac -t 18 -m cool -f high `