This is a custom integration for Home Assistant that allows you to control your Pelican Thermostat system.
- Climate Control: Full thermostat control with heating, cooling, and auto modes
- Temperature Sensors: Real-time temperature, humidity, and CO2 level monitoring
- Setpoint Control: Adjust heating and cooling setpoints
- System Mode Control: Switch between Off, Heat, Cool, and Auto modes
- Install HACS if you haven't already
- Add this repository as a custom repository in HACS
- Search for "Pelican Thermostat" in the HACS store
- Click "Download"
- Restart Home Assistant
- Download this repository
- Copy the
custom_components/pelican_thermostatfolder to your Home Assistantconfig/custom_components/directory - Restart Home Assistant
- Go to Settings → Devices & Services
- Click Add Integration
- Search for "Pelican Thermostat"
- Enter your configuration:
- Username: Your Pelican Thermostat username
- Password: Your Pelican Thermostat password
- Base URL: The API base URL (default: https://demo.officeclimatecontrol.net/api.cgi)
- Thermostat Name: The name of your thermostat (e.g., "Lobby")
- Poll Interval: How often to check for updates (default: 70 seconds, range: 30-300 seconds)
This integration uses the Pelican Thermostat API with the following endpoints:
GET https://demo.officeclimatecontrol.net/api.cgi?username=YOUR_USERNAME&password=YOUR_PASSWORD&request=get&object=Thermostat&selection=name:THERMOSTAT_NAME;&value=temperature;humidity;co2Level
GET https://demo.officeclimatecontrol.net/api.cgi?username=YOUR_USERNAME&password=YOUR_PASSWORD&request=set&object=Thermostat&selection=name:THERMOSTAT_NAME;&value=PARAMETER:VALUE
system:Auto- Set system mode to Autosystem:Heat- Set system mode to Heatsystem:Cool- Set system mode to Coolsystem:Off- Set system mode to OffheatSetting:65- Set heating setpoint to 65°FcoolSetting:75- Set cooling setpoint to 75°F
- climate.pelican_thermostat: Main thermostat control entity
- sensor.pelican_thermostat_temperature: Current temperature
- sensor.pelican_thermostat_humidity: Current humidity
- sensor.pelican_thermostat_co2_level: Current CO2 level
The main climate entity provides full thermostat control:
- Set HVAC mode (Off, Heat, Cool, Auto)
- Adjust temperature setpoints
- View current temperature and humidity
# Turn on heat when temperature drops below 65°F
automation:
- alias: "Turn on heat when cold"
trigger:
platform: numeric_state
entity_id: sensor.pelican_thermostat_temperature
below: 65
action:
- service: climate.set_hvac_mode
target:
entity_id: climate.pelican_thermostat
data:
hvac_mode: heat
# Turn off system when leaving home
automation:
- alias: "Turn off thermostat when leaving"
trigger:
platform: state
entity_id: person.your_name
to: "not_home"
action:
- service: climate.set_hvac_mode
target:
entity_id: climate.pelican_thermostat
data:
hvac_mode: off- Connection Failed: Check your username, password, and base URL
- No Data: Verify your thermostat name is correct
- API Errors: Check the Home Assistant logs for detailed error messages
- Thermostat Offline: The integration handles offline thermostats gracefully - commands will be queued and sent when the thermostat comes back online
- High Poll Frequency: If you experience issues, try increasing the poll interval to reduce API load
To enable debug logging, add this to your configuration.yaml:
logger:
default: info
logs:
custom_components.pelican_thermostat: debugcustom_components/pelican_thermostat/
├── __init__.py # Main integration file
├── const.py # Constants and configuration
├── coordinator.py # Data coordinator
├── config_flow.py # Configuration flow
├── climate.py # Climate entity
├── sensor.py # Sensor entities
├── manifest.json # Integration manifest
└── translations/ # Translation files
└── en.json
- Fork this repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
This project is licensed under the MIT License - see the LICENSE file for details.
For support, please open an issue on GitHub or contact the maintainer.
- Initial release
- Basic thermostat control
- Temperature, humidity, and CO2 sensors
- Configuration flow
- HACS support
- Offline thermostat handling
- Graceful timeout management