Repository navigation
Conversation
Place::Demo::HVAC needs no hardware or transport. The temperature eases toward the setpoint, it publishes mode, fan, humidity, CO2, power draw and power, and an unoccupied room widens the target (occupancy setback). Controls: power(state) (on restores the last non-off mode), set_temperature, set_mode, set_fan, set_occupied. Gives demo and test rooms something to switch on and off alongside Place::Demo::Display, e.g. for the n8n nodes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
Place::Demo::HVAC, an HVAC unit simulator that needs no hardware or connection, alongside the existingPlace::Demo::DisplayandPlace::Demo::RoomSensor.What it does
power,mode,fan,fan_level,temperature,setpoint,humidity,co2,power_draw,heating,cooling,occupiedandsetback_active.power(state)(Powerable; on brings back the last mode other than off),set_temperature,set_mode,set_fanandset_occupied, each Support level.Why
Demo and test rooms had nothing HVAC-like that could be switched on and off without hardware. The immediate use is testing the n8n nodes: a workflow that turns a room's display and HVAC on when its sensor detects people. The simulator first appeared on an unpushed self sign-up branch; this cleans it up and adds
power.Testing
./harness report drivers/place/demo/hvac_spec.cr: 1 tested, 0 failures. The spec covers setpoint clamping, mode, fan, setback, and power off/on bringing back the previous mode.🤖 Generated with Claude Code