Smart Home Devices: Converting Temperature Light and Energy Units
Published April 24, 2026
Your Nest thermostat speaks Fahrenheit, your IKEA Trådfri bulbs measure brightness in lumens, your Shelly energy monitor reports power in watts — and your monthly electricity bill arrives in kilowatt-hours. Smart home ecosystems are a patchwork of measurement units drawn from different scientific disciplines and geographic conventions, and mastering the conversions between them is the key to building automations that actually work the way you intend.
Table of Contents
Understanding the Basics
Smart home devices operate within three primary measurement domains: thermal (temperature), photometric (light), and electrical (energy and power). Each domain has its own unit conventions, and those conventions vary by device origin. A US-manufactured Ecobee thermostat defaults to Fahrenheit (°F), while a German-made Homematic IP radiator valve reports in Celsius (°C). Zigbee-based smart bulbs from Philips Hue report color temperature in Kelvin (K) and brightness as a percentage of maximum lumens, while a photosensor measuring ambient light may report in lux (lx). Home automation hubs like Home Assistant, Apple HomeKit, and Google Home each have internal unit preferences that affect how device data is stored and displayed.
The energy domain is particularly important for utility cost analysis. Smart plugs and whole-home energy monitors measure instantaneous power in watts (W) and cumulative energy in kilowatt-hours (kWh). A device drawing 1,500 W continuously for 1 hour consumes 1.5 kWh. At a US average electricity price of $0.16/kWh, that costs $0.24 per hour. UK electricity averages around £0.28/kWh, making the same device cost £0.42 per hour — and these cost calculations must be accurate when smart home systems auto-generate energy reports. The relationship W × hours ÷ 1000 = kWh is the foundational conversion every smart home energy dashboard uses.
Lighting units are the most conceptually confusing. Lumens measure total light output (how bright the bulb is), lux measures illuminance (how much light reaches a surface per square meter), and foot-candles measure the same thing in imperial units. A 10W LED bulb might produce 800 lumens. Spread across a 10 m² room it creates 80 lux — barely enough for dim ambient lighting. Office tasks require 300–500 lux; reading requires 500–1000 lux. Smart lighting scenes must set brightness in lumens (or as a percentage) while occupancy sensors may report ambient light in lux, requiring conversion to ensure the automation trigger matches human lighting needs rather than raw hardware output numbers.
Smart Home Unit Categories
Temperature
- Celsius (°C): Standard in all countries except the US. Comfortable room temp: 20–22°C. Smart thermostat setpoints typically 16–28°C.
- Fahrenheit (°F): Standard in US smart home devices. Comfortable room temp: 68–72°F. Conversion: °F = (°C × 9/5) + 32.
- Kelvin (K): Used for light color temperature only — not for thermal comfort. 2700K = warm white; 4000K = cool white; 6500K = daylight.
Light Measurement
- Lumens (lm): Total light output of a bulb. A 60W incandescent ≈ 800 lm; a 10W LED ≈ 800 lm (same output, less power).
- Lux (lx): Illuminance = lumens per square meter (lm/m²). 1 lx = 1 lm/m². Overcast daylight ≈ 1,000 lux; office work ≈ 500 lux; candle-lit room ≈ 10 lux.
- Foot-candles (fc): Imperial illuminance. 1 foot-candle = 10.764 lux. US building codes often specify lighting in foot-candles.
Power and Energy
- Watt (W): Instantaneous power draw. Smart plug rated loads in watts. Typical devices: LED bulb 10W, laptop 45–100W, EV charger 7,200W (7.2 kW).
- Kilowatt (kW): 1 kW = 1,000 W. Used for larger loads. A 3-ton air conditioner uses about 3.5 kW.
- Kilowatt-hour (kWh): Energy over time. 1 kWh = 1,000 W × 1 hour. Electricity bills are in kWh. 1 kWh = 3,600,000 joules = 3.6 MJ.
Conversion Formulas
| From | To | Formula / Factor |
|---|---|---|
| Celsius (°C) | Fahrenheit (°F) | (°C × 9/5) + 32 |
| Fahrenheit (°F) | Celsius (°C) | (°F − 32) × 5/9 |
| Lux (lx) | Foot-candles (fc) | ÷ 10.764 |
| Foot-candles (fc) | Lux (lx) | × 10.764 |
| Watts (W) × Hours | Kilowatt-hours (kWh) | ÷ 1,000 |
| kWh | Joules (J) | × 3,600,000 |
Worked Examples
Example 1: Thermostat Automation Rule (°C ↔ °F)
A Home Assistant automation should turn on the fan when the room exceeds 25°C. The US-made smart thermostat API sends temperatures in Fahrenheit. Convert threshold: (25 × 9/5) + 32 = 45 + 32 = 77°F. Set the automation trigger to > 77°F. Conversely, the "eco" setpoint of 68°F = (68 − 32) × 5/9 = 36 × 5/9 = 20°C.
Example 2: Monthly Electricity Cost Calculation
A smart home monitor shows a TV drawing 120W, used 5 hours/day. Monthly energy: 120 W × 5 h × 30 days = 18,000 Wh = 18 kWh/month. At $0.16/kWh: 18 × $0.16 = $2.88/month. At UK rate £0.28/kWh: 18 × £0.28 = £5.04/month. The energy quantity is the same; only the cost per unit differs by location.
Device Integration Scenarios
Zigbee and Z-Wave devices often report raw sensor values that home automation hubs must convert before display. A Zigbee temperature sensor from a Chinese manufacturer may report temperature as an integer in tenths of a degree Celsius (e.g., 215 = 21.5°C), requiring division by 10 before the Fahrenheit conversion. Zigbee2MQTT, the popular open-source Zigbee bridge, handles many of these conversions automatically through device-specific converters — but custom devices may require manual conversion logic in Home Assistant templates using its built-in `states` math functions.
Smart lighting scenes built in Apple HomeKit use brightness as a 0–100% scale and color temperature in Kelvin (2700–6500K). Hue bulbs expose their maximum lumen output via the API, so a 60% brightness setting on a 1,600-lumen Hue White Ambiance bulb produces approximately 960 lm. If the room is 12 m², this yields 960 ÷ 12 = 80 lux — appropriate for relaxed evening TV watching. A "focus" scene requiring 400 lux needs 400 × 12 = 4,800 lm total, likely requiring multiple fixtures or higher-output bulbs. These calculations connect the abstract percentage API value to real-world human experience.
Solar panel and battery storage systems introduce yet more units. Solar output is rated in peak watts (Wp) under Standard Test Conditions (STC). A 400Wp panel in a location receiving 5 peak sun hours per day generates approximately 400 × 5 = 2,000 Wh = 2 kWh per day. A 10 kWh home battery (like a Tesla Powerwall rated at 13.5 kWh usable) can store 5 days of this panel's output. Home energy dashboards must convert between Wh, kWh, and sometimes BTUs (for heat pump reporting) — 1 kWh = 3,412 BTU — to generate meaningful whole-home energy balance reports.
Best Practices
💡 Set Your Hub's Base Unit System — Don't Convert Repeatedly
In Home Assistant, set your unit system to "metric" or "imperial" in the Configuration → General settings. This tells the system which unit each sensor value type should display in, and handles conversions automatically at the display layer. Storing raw values in the database in SI units (°C, W, lux) and converting only for display prevents accumulated rounding errors in historical energy reports and automations that reference sensor history.
- Use Kelvin for color temperature in automations: Vendor APIs may accept 0–100% mireds or Kelvin — always check the API docs. Philips Hue uses mireds (1,000,000 ÷ K); Home Assistant converts internally to Kelvin for display.
- Validate illuminance sensor range: Most indoor photosensors max out at 1,000–10,000 lux; direct sunlight is ~100,000 lux. Verify your automation thresholds don't exceed sensor range.
- Check utility TOU rates for energy calculations: Time-of-use pricing means 1 kWh at peak hours may cost 3× more than off-peak. Smart home energy dashboards should separate peak/off-peak kWh for accurate cost reporting.
Common Mistakes
⚠️ Confusing Watts and Watt-Hours in Energy Reports
Watts (W) and watt-hours (Wh) are completely different quantities: watts measure power (rate of energy flow), watt-hours measure energy (total consumed). A smart plug showing "current power: 1,500W" does not mean 1,500 Wh has been used — that number only applies if the device ran for exactly one hour. Many smart home dashboards display both on the same screen; reading the power figure as energy consumption is the single most common smart home energy analysis error. Always confirm whether a displayed value is "power now" (W or kW) or "energy total" (Wh or kWh).
Tools and Resources
- Home Assistant (home-assistant.io): Open-source hub with built-in unit conversion for temperature, energy, and illuminance across 1,000+ device integrations.
- Zigbee2MQTT: Converts raw Zigbee device payloads (including unit normalization) to MQTT messages for hub consumption; device-specific converters handle exotic sensor units.
- NREL PVWatts Calculator: Converts solar panel wattage and location into estimated kWh generation for home solar planning.
- Emporia Vue / Shelly EM: Whole-home energy monitors that export real-time watt and cumulative kWh data via API for dashboard integration.
Key Takeaways
- Temperature: °F = (°C × 9/5) + 32; US devices report °F, EU devices report °C — automation thresholds must match the API's unit
- Light: lumens = total bulb output; lux = lumens per m²; foot-candles = lux ÷ 10.764 — use lux for room-level illuminance requirements
- Energy: kWh = W × hours ÷ 1,000; never confuse instantaneous power (W) with cumulative energy (kWh) in reports
- Set your hub's canonical unit system once; store in SI units and convert at display layer only
- Zigbee/Z-Wave raw payloads may encode values differently (e.g., tenths of degrees) — verify device-specific encoding before building automations
Ready to Convert?
Try our free converter for instant results.