
Closed
Posted
Python Developer – Smart Home State Machine (FastAPI / asyncio) We are building CalmOS, a local-first smart home system on FastAPI (Python). We need a developer to implement the state machine — the brain that coordinates all subsystems simultaneously. CalmOS thinks in states, not devices. Each state defines what lighting, audio, climate, ventilation, sockets, blinds, and security do at the same time. The codebase is running and documented. Full access provided. Testable locally, no on-site hardware needed. --- 9 STATES: Sleeping · Waking Up · Cooking · Working · Guests · Away · Holiday · Night · Emergency --- KEY BEHAVIORS PER STATE: Sleeping: all lights off, infrasound sleep-masking audio (bedroom only), climate 16-18°C silent mode, CO₂ monitored continuously, all sockets off (except fridge/server), security armed. Only activates when ALL residents are in bedroom. Waking Up: circadian light fade-in (warm → daylight, 20-30 min), infrasound fades out, light follows resident room by room, blinds open slowly, sockets activate as resident enters each room. Away: setback climate, security elevated. Geofencing at 500m radius triggers preparation sequence (heat, light, ventilate, aroma) before resident arrives. Holiday: occupancy simulation (random lights + subtle audio), frost protection 6°C minimum, anti-mold minimum ventilation, holiday alarm level (maximum sensitivity). Geofencing triggers full home-coming on return. Night: includes Night Walk sub-mode — camera detects movement 22:00–06:00 → floor lights only (warm white ≤ 2000K, 15s after passing), all other systems unchanged. --- AUTOMATIC ROUTINES (run independent of active state): | Trigger | Action | |------------------------------|-----------------------------------------------| | CO₂ > 1000 ppm | Increase ventilation, open zone flap | | Bathroom humidity > threshold | Ventilation spike | | Wind > threshold | Outdoor blinds retract | | No person > X min | Heating setback, lights off, security up | | Geofencing 500m | Climate, light, ventilation, aroma ready | --- PREDICTIVE ACTIONS (state machine receives and executes these): | Situation | Action | Lead Time | |-------------------------|---------------------------------|-----------| | Sun hits facade | Blinds down, pre-cool | 2h | | Resident approaching | Warm, lit, ventilated | 20 min | | Night < 5°C | Heating up, frost protection | 3-4h | | Electricity price rising | Charge battery first | Before | --- EXISTING ENDPOINTS (already in CalmOS, state machine calls these): Lighting: Art-Net UDP 6454 · Audio: Snapcast JSON-RPC · Sockets/Switches: Shelly HTTP RPC · Ventilation: POST /api/lueftung · Sensors: ESPHome native API (CO₂, temp, humidity) --- REQUIREMENTS: - All 9 states switchable via POST /api/state/{mode} - Transitions smooth throughout — fades, not hard switches - YAML/JSON config per state (template provided by us) - Scheduler: configurable time-based triggers per state - Manual override at any time, return to previous state after timeout - Multi-person logic: sleeping state only when ALL residents in bedroom - Placeholder endpoints for: climate API (pending), geofencing input (pending) --- ACCEPTANCE CRITERIA: - All 9 states switch correctly via API - Sleeping → Waking Up: circadian fade, infrasound out, light follows resident - Away → Home: system ready before resident arrives (geofencing) - Holiday: occupancy simulation active, frost protection holds - Night walk: floor lights only, sleep mode uninterrupted - Routines trigger correctly independent of active state - No hard switches anywhere — all transitions smooth - Multi-person condition respected for sleeping state --- OPEN ITEMS (placeholders needed, not blocking): - Climate API integration (pending, 22.05.) - Geofencing webhook (after app, mock endpoint for testing) - State YAML configs provided by us before start
Project ID: 40434424
181 proposals
Remote project
Active 4 days ago
Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
181 freelancers are bidding on average €23 EUR/hour for this job

Dear CalmOS Team, I understand you want a robust local-first smart home state machine with 9 modes for lighting, audio, climate, ventilation, sockets, and underfloor heating. I will deliver a clean FastAPI-based solution using asyncio, YAML/JSON config, and smooth transitions (fade) between modes. The system will support a POST /api/state/mode endpoint for all nine modes, allow manual override with a configurable timeout to return to the previous mode, and support per-mode schedules that can be stored in YAML or JSON. I will design a modular state machine that can easily expand or adjust mode parameters, ensure schedulability, and provide clear logs and testable components. 1) What is the initial default mode after system start? 2) Do you have preferred fade durations for each subsystem or a global value? 3) How should manual overrides be triggered (API-only or physical switch as well)? 4) What is the expected behavior on conflicting schedules between modes? 5) Do you require versioned config backups and rollback? 6) How are devices discovered (static addresses or discovery)? 7) Any security constraints for API access (auth, TLS)? 8) How should error states be surfaced (alerts, logs, or dashboards)? 9) What is the target environment for deployment and CI tests? Best regards, Muhammad Awais
€21 EUR in 27 days
9.5
9.5

Your posting caught my attention. This is a strong async automation project where clean state orchestration and smooth subsystem transitions are critical. I’ll handle: • 9-mode FastAPI state machine implementation • Async mode switching via /api/state/{mode} • Smooth fade-based transitions for lighting/audio • Manual override with auto-return timeout • YAML/JSON-based scheduling system • Integration with Art-Net, Snapcast, Shelly RPC, climate and ventilation systems Relevant expertise: Python + FastAPI asyncio orchestration Event-driven automation systems Real-time device communication Config-driven architectures Focus: Non-blocking async workflows Reliable state persistence Smooth transitions instead of hard switching Scalable and maintainable architecture Deliverables: Complete state machine integration Transition engine Scheduling support API endpoints Documentation/testing notes Portfolio: https://www.freelancer.com/u/Microlent Ready to review the current codebase and integrate the state-management layer efficiently. — Rajesh Rolen
€15 EUR in 40 days
9.4
9.4

Hello, The core challenge of CalmOS isn't just switching states, it’s managing concurrency without blocking the event loop. Orchestrating Art-Net, JSON-RPC, and HTTP RPC simultaneously requires a robust asyncio architecture to ensure a circadian fade doesn't lag while processing a CO₂ spike or a Shelly trigger. I will implement a centralized StateManager using an asynchronous transition layer. Automatic Routines will run as high-priority interrupts, while a TTL cache handles manual overrides. I’ll build the Climate/Geofencing modules as abstract base classes for a seamless swap on May 22nd. Question: Does your YAML schema allow for per-state transition durations, or should I implement a global "smoothness" constant? Best, Niral
€12 EUR in 40 days
8.0
8.0

With experience in Python and FastAPI, I understand your need for a Python developer to create a state machine for a smart home system. I have worked on similar projects involving complex state transitions and smooth subsystem configurations. Could you provide more details on the specific requirements for scheduling transitions between different modes in the system? Regards, Yogesh Kumar
€15 EUR in 36 days
7.9
7.9

Hi there, ★★★ Python Expert ★★★ 6+ Years of Experience ★★★ I can implement the state machine with 9 modes using FastAPI and asyncio to ensure smooth transitions and manual overrides. This will include: - Implementing API endpoints for mode switching. - Configuring target values for all subsystems per mode. - Ensuring smooth transitions and manual overrides. - Setting up scheduling via YAML or JSON. I will follow a structured approach to ensure all modes are correctly implemented and tested, leveraging the existing documentation and codebase. Ready to start once you provide access to the codebase. Thanks!
€15 EUR in 40 days
7.8
7.8

Having spent over 15 years honing my skills in API Development, JavaScript and Python, I feel confident in saying that I am the right fit for this project. My extensive experience in architecting digital ecosystems gives me a clear edge when it comes to tackling the complexities of home automation systems like CalmOS. I have successfully designed and developed high-performance user interfaces using FastAPI, asyncio, and YAML configurations before. This equipment to your requirements makes me confident about delivering fluid, overridable, and schedulable state transitions that maintain the smooth functioning of all subsystems. My team at Mexin Infotech has built technical products for companies with zero tolerance for compromise in performance and quality. We understand how crucial scheduling and manual overrides are in a smart home system, and we have impeccable skills at handling such functionalities skillfully. Moreover, we are adept at designing systems that are scalable, secure, and architecturally optimal–a proficiency needed to create a local-first smart home system that runs smoothly on FastAPI. Best regards, Team Mexin web infotech
€15 EUR in 40 days
7.2
7.2

Hi There !! After reading your request, I found it to be rather intriguing. I can provide timely, high-quality assistance for your project as a senior full stack engineer. >>>> Multi languages (English and Germany ) <<<< **** You can track the project’s progress using the tracker. I’m available to work 40 hours per week **** I have carefully reviewed your Smart Home State Machine requirements and clearly understood the architecture and workflow you are building. With 10+ years of experience in Python, FastAPI, asyncio, automation systems, and API integrations, I can efficiently implement the 9-mode smart home state machine within your existing infrastructure. I have experience working with asynchronous systems, device orchestration, YAML/JSON configurations, automation scheduling, and real-time state transitions. I can develop smooth mode transitions with fade controls, manual overrides with timeout recovery, and configurable scheduling while ensuring stable communication with Art-Net, Snapcast, Shelly RPC, climate, ventilation, and heating systems. Awaiting for your positive response. Thanks christina
€13 EUR in 40 days
7.1
7.1

Hi, this CalmOS state machine project presents an interesting challenge in orchestrating concurrent subsystems with smooth state transitions. The real engineering risk lies in orchestrating asynchronous commands across multiple devices to avoid conflicts and ensure reliable, race-free state changes. I usually structure such systems with clear separation between state management, command orchestration, and device communication layers to isolate concerns and improve maintainability. I’ve built several production systems like this that require precise timing and fallback handling. The Custom Feature Development & Integration project is relevant here, as it involved deep codebase analysis and delivering robust, well-tested features in a complex existing system. The AI-Driven Marketing Suite also reflects my experience with modular, scheduled workflows and stateful orchestration in Python backends. I recommend separating the state logic from device command dispatch, with a scheduler managing timed triggers and fallbacks to handle endpoint failures gracefully. Smooth fading transitions require careful command sequencing and possibly feedback loops. I can start by outlining the retrieval and command orchestration pipeline, mapping the agent flow for state transitions, and reviewing the YAML config handling to ensure clarity and extensibility. Thanks, Hercules
€50 EUR in 40 days
6.9
6.9

Hi there, We’ve developed a similar smart home product called Desi Smart, where we integrated multiple devices like lights, fans, and ACs with a state machine to manage modes like ‘Home’ and ‘Away’. We also implemented manual overrides and scheduled tasks, ensuring smooth transitions between states. With extensive experience in Python, FastAPI, and web technologies, I can deliver a robust solution that meets your needs. I’m also well-versed in IoT device integration and have worked with protocols like Zigbee and Z-Wave. Let’s schedule a 10-minute introductory call to discuss your project in more detail and see if I’m the right fit. I’m eager to learn more about your exciting project. Best, Adil
€18 EUR in 40 days
6.2
6.2

Hi, I can help you implement the state machine with the specified 9 modes in Python using FastAPI and asyncio. The transitions will be smooth, allowing for manual overrides and configurable timeouts, ensuring seamless operation. I have extensive experience working with Python and FastAPI, making me confident in tackling this challenge. Additionally, I’ll ensure the API functionality aligns perfectly with your requirements, including device configurations via JSON or YAML. Let’s connect and discuss how I can contribute to your smart home system. Best Regards, Priyanka
€15 EUR in 40 days
6.3
6.3

Hi, CalmOS is a fascinating architecture, and I can help implement the FastAPI asyncio state machine that coordinates all nine smart home states and independent routines reliably. I have strong experience with Python, FastAPI, asyncio, API orchestration, state machines, schedulers, automation logic, and clean software architecture. I can build the state engine so each mode is switchable through POST /api/state/{mode}, loads behavior from YAML or JSON config, and coordinates lighting, audio, sockets, ventilation, sensors, security, and placeholders for climate and geofencing. My focus will be smooth transitions rather than hard switches, with fades, timed routines, manual override handling, multi-person bedroom logic for Sleeping, Night Walk sub-mode, occupancy simulation for Holiday, and automatic routines running independently of the active state. I can also add mock endpoints for pending climate and geofencing inputs so the system remains testable locally before hardware or app integration is ready. The implementation will be documented clearly so future device integrations can plug into the state machine without rewriting the core. Best, Justin
€50 EUR in 40 days
6.3
6.3

Hello, I can implement the state machine for your CalmOS smart home system using Python with FastAPI and asyncio, integrating smoothly with your existing stack (Art-Net, Snapcast, Shelly, YAML config). I will build: • 9 fully controllable modes via FastAPI endpoint (/api/state/{mode}) • Central async state machine managing all subsystems • Smooth transitions (fade-based, no abrupt switching) • Priority system for manual overrides + auto return logic • YAML/JSON-based configuration for each mode • Scheduler support for time-based mode switching • Clean, modular Python architecture for easy extension Each mode will control lighting, audio, climate, sockets, ventilation, and heating in a coordinated and predictable way, ensuring safe transitions and system stability. I’ve worked with asyncio-based control systems and API-driven automation logic, so I can align this cleanly with your existing codebase. Thanks!
€12 EUR in 2 days
5.8
5.8

Hi, thanks for sharing the CalmOS work. You need a clean state machine for the nine home modes with smooth transitions and overrides, and I can help with that. I’ve built async device control systems before using FastAPI and event loops. I’d keep it simple and wire it around your existing YAML config. • Map each mode to target values for lighting, audio, climate, ventilation and sockets • Build async transition coroutines for fades instead of instant jumps • Add an override layer with timers to fall back to the previous mode • Expose the POST endpoint you listed and hook it into the state manager I can start right away and should have a first working version in a few days. Do you already have a central async scheduler running in CalmOS, or should the state machine manage its own task group? Greetings, Slavko
€12 EUR in 1 day
5.6
5.6

Hello, I have strong experience with Python, FastAPI, asyncio, and real-time automation systems. Your smart home state-machine project is exactly the kind of architecture-heavy backend work I enjoy. I can build the 9-mode orchestration system with: • Smooth async transitions (fade logic, non-blocking execution) • API-based mode switching • Manual override + automatic recovery timers • YAML/JSON configurable schedules • Reliable integration with Art-Net, Snapcast, Shelly RPC, climate, and ventilation systems • Concurrency-safe state handling to avoid conflicts between subsystems I focus on clean, modular, production-ready Python code with proper logging and scalable architecture. Available to start immediately and comfortable working inside an existing codebase. Looking forward to discussing the implementation approach and timeline.
€15 EUR in 40 days
5.9
5.9

Hello, I’d be happy to help implement the smart home state machine for your FastAPI-based local-first system. I have strong experience with Python, FastAPI, asyncio, API-driven backend systems, YAML/JSON configuration, and event-based automation logic. Your project fits well with my background in building clean, reliable, and scalable backend workflows. For this project, I can implement: • 9 switchable smart home modes via POST /api/state/{mode} • Mode-based configuration for lighting, audio, climate, ventilation, sockets, and underfloor heating • Smooth async transitions with fading instead of hard switching • Manual override support with configurable timeout • Schedule-based mode switching via YAML or JSON • Clean state management with safe transition handling • Integration-ready logic for Art-Net UDP, Snapcast JSON-RPC, Shelly HTTP RPC • Error handling, logging, and local testing support I will structure the state machine carefully so each subsystem can be managed independently while still working together under one active home mode. I’ll also make sure transitions remain cancellable, overridable, and safe during concurrent state changes. I’m available to start immediately and can deliver a stable, production-ready implementation with proper testing. Looking forward to working with you. Best regards
€12 EUR in 40 days
5.3
5.3

Hello , I'm a python APIS Expert and i'm ready to help you with youre smart home apis . contact me so we can have more details , i'm ready to start right away . you can check here my successfull projects : https://www.freelancer.com/u/amgadmourad18 .
€12 EUR in 40 days
5.4
5.4

Hi, With 15+ years of software application development under my belt, including complex, real-time systems, I am the ideal choice to turn your smart home vision into a reality. I specialize in efficient coding and performance optimization – two crucial aspects for a robust and responsive system such as CalmOS. With my extensive knowledge in Python and FastAPI/asyncio framework, I understand the intricacies of building state machines like yours. Additionally, my experience working with APIs and maintaining smooth communication between subsystems is highly relevant for your project. My previous positions at CGI and CTI Services involved the integration of various digital components – lighting, audio, security systems, etc., similar to those present in CalmOS. What sets me apart from other candidates is my ability to anticipate needs and deliver secure, scalable architectures that exceed expectations. I have excelled in algorithmic trading, AI-driven signal generation, as well as market regime detection – all skills that will come in handy while handling your predictive actions. Overall, I have the depth of experience and breadth of skill set necessary to guide your CalmOS project to success.
€15 EUR in 40 days
5.3
5.3

Hi, I’m Karthik from Resonite Technologies with 15+ years of experience in Python, FastAPI, asyncio, event-driven systems and intelligent automation platforms. Your CalmOS architecture is exactly the kind of advanced state-orchestrated automation system we specialize in. I can help implement the full smart-home state machine with smooth transitions, predictive behaviors and concurrent subsystem coordination. ✔ FastAPI + asyncio state orchestration ✔ All 9 states with API-driven switching ✔ Smooth transitions/fades (no hard switching) ✔ Multi-person occupancy logic for Sleeping state ✔ Time-based scheduler & automation routines ✔ Predictive action engine (weather, geofencing, energy pricing) ✔ YAML/JSON configurable state templates ✔ Manual override + state restoration timeout logic ✔ Placeholder integrations for climate & geofencing APIs ✔ High-concurrency async event handling Experience includes: • Python async architectures • IoT orchestration & sensor integration • WebSockets/event-driven automation • Smart home workflows & scheduling engines • REST APIs, UDP, JSON-RPC integrations I’m comfortable integrating with: • Art-Net UDP • Snapcast JSON-RPC • Shelly RPC • ESPHome APIs • Custom FastAPI services I focus on maintainable async architecture, deterministic state handling and smooth real-world automation behavior. Looking forward to discussing CalmOS internals and implementation strategy. Warm Regards, Karthik B Resonite Technologies
€25 EUR in 40 days
5.4
5.4

Hello There! I can help implement the smart home state machine for your CalmOS system using Python, FastAPI, and asyncio with smooth mode transitions and reliable subsystem orchestration. I have experience working with asynchronous Python systems, FastAPI APIs, event-driven automation logic, device integrations, and configurable state-management architectures. What I’ll deliver: • Complete 9-mode state machine implementation • API-based mode switching via POST /api/state/{mode} • Smooth asynchronous transitions (fade/delay instead of hard switching) • Configurable target states for lighting, audio, climate, ventilation, sockets, and underfloor heating • Manual override system with automatic timeout recovery to previous mode • YAML/JSON-based scheduling and configuration support • Clean asyncio task handling and non-blocking subsystem communication • Structured, maintainable code integrated into your existing FastAPI stack I’m also comfortable working with: • Art-Net UDP lighting control • Snapcast JSON-RPC • Shelly HTTP RPC • Local-first automation architectures • Async scheduling and state synchronization I can start immediately and work directly with your existing codebase and documentation to integrate the state machine cleanly into the current system. Best regards, Md Ruhul Ajom
€15 EUR in 40 days
5.3
5.3

✋ Hi There!!! ✋ The Goal of the project:- IMPLEMENT A FASTAPI BASED SMART HOME STATE MACHINE WITH 9 AUTOMATION MODES AND SMOOTH DEVICE TRANSITIONS I have carefully read your requirement for a local first smart home system with FastAPI, asyncio driven state machine and multi subsystem automation and I understand the importance of stable real time control and clean architecture. I am best fit for this project because I specialize in Python automation systems and API driven IoT architectures. Implement 9 mode state machine with FastAPI endpoint control for system-wide switching Build smooth transition handling using asyncio for lighting audio climate and device orchestration Integrate YAML based configuration with scheduling support and manual override recovery logic I will provide UI design, database management, testing, full source code delivery at project completion and essential API documentation. I have 9+ years experience as a full stack developer and have built similar home automation and backend control systems. Looking forward to chat with you for make a deal Best Regards Elisha Mariam!
€12 EUR in 40 days
4.9
4.9

Düsseldorf, Germany
Payment method verified
Member since Apr 27, 2026
€12-18 EUR / hour
€12-18 EUR / hour
$250-750 USD
$250-750 USD
$750-1500 USD
$100-300 USD
₹150000-250000 INR
₹1500-12500 INR
£250-750 GBP
$10-30 USD
₹600-1500 INR
₹1250-2500 INR / hour
€30-250 EUR
£250-750 GBP
₹37500-75000 INR
$750-1500 USD
$30-250 AUD
₹12500-37500 INR
$30-250 USD
$8-15 USD / hour
$250-750 USD
₹600-1500 INR