About This File
Since Samsung Plugin doesn't work I decided to write custom Samsung Air Conditioner VD.
Requirements:
- Samsung AC
- Local PHP server (NAS, RPI, ...)
Installation:
- Copy smarthome folder to your php server
-
Edit/rename Bedroom.php, Living room.php files. For each device you need separate file. In each file:
- enter IP of your AC device
- enter token of your AC device
- To get token follow steps 3.1 - 3.5 from this site.
-
Check if your PHP server is working: http://192.168.0.10/smarthome/samsung-ac/Bedroom.php
Of course change 192.168.0.10 with the IP of your PHP server.
You should see JSON result with status. Something like this:{ "power": "Off", "mode": "Cool", "virusDoctor": "Off", "quiet": "On", "wind": "Fix", "temperature": 22, "currentTemperature": 23, "sleep": 0 }
- Install Air Conditioner VD
-
Edit Air Conditioner VD:
- Room name must be the same as your PHP file name without .php extension, e.g. Bedroom
- Enter Address IP of your PHP server, e.g. 192.168.0.10
- Port number of your PHP server, usually 80
-
Add VD icons and enter icons ID at "refresh" button section:
Enjoy...