Skip to content

MRTG

Samsung Smart Aircon and MRTG

We’ve had 4 Samsung Smart air conditioners for a few years and every once and a while I revisit trying to automate them using scripts and a like. This time I was successfull using perl scripts written/edited by Daniel (CloCkWeRX) and Shannon (freman) to deal with the transmission protocol and token management – I personally would’ve never been able to work it out – so thanks and full credit to them. To start with, you have to discover then register the aircons to get a token for each, to discover them you can use this script get_samsung.pl, which was obtained then slightly modified from here. That script output: perl get_samsung.pl Waiting for responses $VAR1 = { ‘modelcode’ => ‘SAMSUNG_DEVICE’, ‘mac_addr’ => ”, ‘cache_control’ => ‘max-age=60’, ‘decoded_nickname’ => ‘Office’, ‘spec_ver’ => ‘MSpec-1.00’, ‘notify * http/1.1’ =>… Read More »Samsung Smart Aircon and MRTG

ESP8266 – Work in progress

Thanks to a Hackaday post, I was made aware of these awesome (and awful) wireless to UART SoCs. When I first started the information available was patchy, resulting in the SoC randomly rebooting. After a few weeks of trial and error, it’s some what stable, but still has it’s issues every couple of hours. To get around this, I’ve incorporated a hard reset after ‘x’ amount of program loops with an Arduino. I had a status check that ran instead of loops, but the output of the SoC wasn’t synchronous, when dealing with multiple events from the UART and wifi interfaces. The tester project was a ‘simple’ web server with temperature dynamically displayed. I followed most of this tutorial and adjusted the code to prevent the SoC rebooting so often. There is a script that… Read More »ESP8266 – Work in progress