Package Exports
- smartthings-phevctl
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (smartthings-phevctl) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Smartthings Remote control for Outlander PHEV


Features:
- switch on/off condition/heater
- change mode of air conditioner: heater/cool/windscreen for 10/20/30 mins,
- show battery level
- support google home
- check if doors are closed
- possibility to control over voice(by Google assistant)
Cloud Installation
Installation Steps
- Install Server using Docker or Manual Installation
- create Device Handler
- create smartapp
- Configure smartthings application on android or apple
- Get "Smartthings Application Id" and "Smartthings Application Secret"
- Configure Server
- Add Smartthings devices
Server Docker Installation
- Supported Architectures: amd64,x86-64,arm64,ppc64le,arm/v7
docker run --name=smartthings-phevctl -p 8080:8080 -p 8099:8099 vassio/smartthings-phevctlServer Manual Installation
sudo touch /bin/phevctl
sudo echo "docker run vassio/phevctl $*">/bin/phevctl
sudo chmod +x /bin/phevctl
wget -qO- https://getpm2.com/install.sh | bash
sudo env PATH=$PATH:/usr/bin pm2 startup systemd -u ${currentUser} --hp ${HOME}
sudo npm i smartthings-phevctl -g
sudo pm2 start `npm root -g`/smartthings-phevctl/smartthings-phevctl.js
sudo pm2 saveSmartthings installation
Create Custom DHT
- open https://graph.api.smartthings.com/
- open your location/ or create a new one

- open "My Device Handler" and "create New Device Handler"

- select from code and add [Outlander PHEV Action.groovy](./dht/Outlander PHEV Action.groovy) and [Outlander PHEV Battery.groovy](./dht/Outlander PHEV Battery.groovy)and [Outlander PHEV Doors.groovy](./dht/Outlander PHEV Doors.groovy)

- click save
Create SmartApp
- open https://graph.api.smartthings.com/
- open your location

- create a new SmartApp

- select from code and add remote-ctrl-gsm.groovy

- open smartapp application and click "App Settings"

- enable "OAuth"

- Save and publish application

Configure Smartthings application
- open smartthings application in Phone Android or Apple
- select location

- add SmartApp

- add "remote-ctrl-gsm"

- set IP and port of server and click save

Get "Smartthings Application Id" and "Smartthings Application Secret"
- open https://graph.api.smartthings.com/
- select smartapps in your location

- select your smartapp

- get "Smartthings Application Id" and "Smartthings Application Secret" from the page

Configure Server
- open server
http://<IP>:8080 - default login/password: admin/admin
- configure "Smartthings Application Id", "Smartthings Application Secret" and mac address

- click save
Add a new Smartthings device
- select devices->add Device

- Device will be appear om Smartthings App
Local Network Installation(under NAT)
- install [Smartthings Hub)[https://www.samsung.com/us/smart-home/smartthings/hubs/] on location.
- during installation smartapp select hub.

Authentication
Local authentication (default)
default login/password: admin/admin
change password for user

add a new User

Keycloak authentication

restart Application
