See All Work

Smart IoT Controls

iOS developer on inherited code, 2017 to 2018

Smart IoT Controls’ menu: Dashboard, Devices, Scenes, Events, Media, Timers, Security and Surveillance.
Smart IoT Controls’ devices screen: lamps and switches with on and off buttons.
Smart IoT Controls’ devices screen: switches, curtains and air conditioning.

Wireless control of household appliances: AC units, curtains, blinds, audio systems, security and entertainment, with energy-saving statistics.

Context

Smart IoT Controls is a smart home app for iPhone and iPad. A smart home holds many kinds of devices. The app I worked on reached them through the home’s gateway: it spoke to the gateway over sockets, and each command traveled through the gateway to its device. The code was UIKit in the MVC pattern, with Core Data for storage.

Challenge

The first challenge was variety. A dimmer, a curtain, a climate unit and a door each needed a control of its own, yet all of them sat on the same devices screen and each ended in a command to the gateway. The second was the remote control builder, where a person designed a remote of their own. On most screens the developer decides what goes where. In the builder the person using the app decided, so a remote’s layout could not be drawn in advance.

Role and Scope

I worked on Smart IoT Controls from September 2017 to June 2018. The remote control builder came first, in the last months of 2017, along with calling a contact by voice and the start of the media section. In 2018 I added the device controls and the favorites screen, and I kept working on media until June.

Other developers began this code in 2015 and 2016. It is one of the first apps I worked on, and it taught me early to read code before changing it. Then I built on it: controls for more kinds of devices, from dimmers to door access, a media section with internet radio, and a builder where people make their own remote controls, down to each button’s image, color and shape. The app was made for a smart home company in Dubai.

Constraints

  • The app was already built on UIKit, MVC and Core Data, and each new feature had to fit that structure.
  • Every command to a device had to go through the home’s gateway.
  • A remote’s layout could not be drawn in advance, because the person decided its buttons.
  • Speech recognition and contacts each needed the person’s permission.

Solution

In the builder a person created a remote and added buttons to it. Each button had its own name, type, size, place and visibility, besides its color and shape. Its image came from a ready-made set or from the person’s own photo, cropped in the app. A button did one of two things: it sent its command to the gateway, or it ran a scene. Remotes and buttons were stored on the phone.

The device controls covered dimmers, curtains, climate units, multisensors, appliances and door access. Each was a control on the devices screen that sent its command through the gateway. A dimmer, for one, had a full-screen slider with on and off buttons. In the media section I built a list of internet radio stations that streamed on the phone, with a player bar for play, pause and stop. And a person could call someone by saying the name: speech recognition found the contact and the app made the call. A contacts list was there to pick from as well.

Technical Highlights

  • A Layout Computed, Not Drawn A remote had no fixed layout. The app computed it from the buttons the person had added, each with its own size and place.
  • Favorites for the Whole Home Any device could be starred. The favorites screen gathered the starred devices from the whole home and named each by its location, level or zone, as the person chose.
  • The Next Station Plays by Itself When an internet radio station ended, the player went on to the next one in the list.
  • Permissions Only When Needed The app asked for access to speech recognition and to contacts only when a person used them, never earlier.

Outcomes

  • Smart IoT Controls has been on the App Store since 2018 and is still there today. The App Store listing, 2 December 2026
  • UIKit
  • MVC
  • Sockets
  • Photo and video
  • Contacts
  • Audio and video streaming
  • CRUD API

Smart IoT Controls on the App Store

What Is the Hard Part of Your Project?

Every project has one: a device to talk to, a chat that must not lose a message, or code that someone else wrote. Tell me what yours is, and we can start from there.

I reply within one working day. The first call and the estimate are free.

Discuss Your Project See How I Work