Commit Graph

86 Commits

Author SHA1 Message Date
macm1 6990b07d79 feat: add gateway env vars option 2026-02-23 06:38:40 +03:00
macm1 94fab5b260 added translation 2026-02-23 06:31:41 +03:00
macm1 872a52221e refactor: remove env vars from oc_config_helper, keep validation in run.sh
Environment variables are fully handled by run.sh:
- run.sh reads gateway_env_vars from options.json
- run.sh validates variable names (alphanumeric + underscore)
- run.sh enforces max 50 variables and 255 char name limit
- run.sh exports to process environment

oc_config_helper.py now only manages gateway config (mode, port, bind).

Removes:
- env_vars parameter from apply_gateway_settings()
- All env var parsing and validation from Python helper
- MAX_ENV_VARS constants
- env_vars CLI argument
2026-02-23 06:06:20 +03:00
macm1 b45d2e685a refactor: remove env vars persistence, only validate and export
Environment variables should NOT be saved to openclaw.json config.
Instead, they are injected directly into the gateway process via run.sh.

Flow:
  options.json (gateway_env_vars) → run.sh (export) → gateway process env

Changes:
- Remove cfg["env"] initialization from apply_gateway_settings
- Only validate env vars format and size limits in oc_config_helper.py
- Log validated vars but don't persist them to config
- run.sh remains responsible for parsing and exporting to process env
- Cleaner separation of concerns: helpers validates, run.sh exports
2026-02-23 06:00:01 +03:00
macm1 47631c1968 fix: store env vars in cfg[env][vars] not cfg[gateway][env] 2026-02-23 05:55:59 +03:00
macm1 30d95b8798 refactor: use YAML map for gateway environment variables instead of string parsing
Benefits:
- More idiomatic configuration format for Home Assistant add-ons
- config.yaml: Change default from empty string to empty YAML map
- config.yaml: Update schema type from str? to map(str)?
- config.yaml: Improve documentation to explain YAML map usage
- run.sh: Parse JSON object from jq using to_entries instead of semicolon splitting
- oc_config_helper.py: Accept JSON string and parse as dict instead of semicolon-separated values
- Better error handling for invalid JSON
- Cleaner and more maintainable parsing logic

This allows users to configure environment variables more naturally:
  gateway_env_vars:
    OPENAI_API_KEY: sk-abc123
    SERVICE_URL: https://api.example.com
2026-02-23 05:40:32 +03:00
macm1 9b402d3130 refactor: improve gateway env vars security and limits
- Add max limits (50 vars, 255 char names, 10000 char values)
- Validate variable names with regex
- Warn about duplicate variables
- Show var names in logs (not just count)
- Improve bash parsing with process substitution
- Better config documentation with examples
2026-02-23 05:36:07 +03:00
macm1 5086b88a00 feat: Add gateway environment variables support
- Add 'gateway_env_vars' configuration option to addon config
- Parse semicolon-separated KEY=VALUE pairs from add-on options
- Export environment variables to gateway process at startup
- Store parsed env vars in openclaw.json (gateway.env)

Allows users to pass custom environment variables to the gateway via
Home Assistant add-on configuration, e.g.:
  gateway_env_vars: 'SERVICE_API_KEY=123;SERVICE2_API=1231'

These variables are exported to the gateway process and can be used
for API authentication, feature flags, or other configuration needs.
2026-02-23 05:28:32 +03:00
macm1 d118102c11 Add NO_PROXY defaults for http_proxy and document behavior 2026-02-22 21:21:11 +03:00
macm1 cb71b0faca changed docs 2026-02-22 20:00:43 +03:00
macm1 ab33e6702f added proxy configuration to haos addon config ui 2026-02-22 19:54:51 +03:00
macm1 c3ba720d0b added proxy support 2026-02-22 19:51:17 +03:00
techartdev b552684b49 version skip 2026-02-22 18:17:55 +02:00
techartdev 335a99b88b fix config ver 2026-02-22 18:16:44 +02:00
techartdev a5363b9cfc feat: Update OpenClaw to version 2026.2.21-2; add share and media mounts; update documentation and translations 2026-02-22 17:59:08 +02:00
techartdev 8d577356b3 Merge branch 'main' of https://github.com/techartdev/OpenClawHomeAssistant 2026-02-21 18:27:17 +02:00
techartdev 04a71cbf23 feat: Expand gateway_bind_mode options to include 'auto' and 'tailnet'; update documentation and translations 2026-02-21 18:25:33 +02:00
Nathan Guenther adbfcfee72 feat: add tailnet and auto bind mode support
OpenClaw natively supports 'tailnet' and 'auto' bind modes but the
addon rejected them in oc_config_helper.py validation and the config.yaml
schema didn't list them as valid options.

- oc_config_helper.py: expand bind_mode validation to accept 'tailnet'
  and 'auto' in addition to 'loopback' and 'lan'
- config.yaml: add 'tailnet' and 'auto' to schema and document them
  in the options comments

Users running Tailscale as a separate HA addon (non-userspace mode)
can now set gateway_bind_mode: tailnet to restrict gateway access
exclusively to their Tailscale network — no iptables rules needed.

Closes #59
2026-02-20 11:44:43 -05:00
TechArtDev 0c4187c119 Update openclaw_assistant/run.sh
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-02-18 18:06:00 +02:00
techartdev d5fae52ad6 chore: Add force_ipv4_dns option and update translations; bump OpenClaw to 2026.2.17 2026-02-18 15:38:06 +02:00
techartdev 7118e77913 chore: Bump OpenClaw to 2026.2.15 and update version to 0.5.45 in changelog and config 2026-02-16 12:16:33 +02:00
techartdev 437884654e chore: Bump OpenClaw to 2026.2.13 and update version to 0.5.44; add star history to README 2026-02-14 16:14:44 +02:00
techartdev 0d7b4ff760 chore: Update version to 0.5.43 and bump OpenClaw to 2026.2.12; add Brazilian Portuguese translation 2026-02-13 22:32:35 +02:00
Iago Medeiros 286afa7f26 feat: Add Portuguese (Brazil) translations for configuration options. 2026-02-13 00:12:33 -03:00
techartdev 53772be2bd Update CHANGELOG.md for version 0.5.42 with recent changes and improvements 2026-02-12 12:06:53 +02:00
techartdev 893911d6b6 Merge branch 'main' of https://github.com/techartdev/OpenClawHomeAssistant 2026-02-12 12:02:26 +02:00
techartdev c8e67cb0ba Update ports and persist Homebrew installation across updates 2026-02-12 12:02:23 +02:00
TechArtDev 2c619ffc7a Merge pull request #42 from lukcz/add-changelog
Add CHANGELOG.md for Home Assistant update dialog
2026-02-11 19:05:18 +02:00
Zgredek 8f172630bc Add CHANGELOG.md for Home Assistant update dialog 2026-02-11 17:42:52 +01:00
techartdev a1f9afc08a Update Dockerfile, config.yaml, and run.sh for enhancements
- Added rsync to Dockerfile for improved file synchronization.
- Bumped version to 0.5.41 in config.yaml.
- Implemented skill synchronization and persistent storage management in run.sh.
2026-02-11 15:28:35 +02:00
techartdev 61e122c101 Update icon and logo images for OpenClaw Assistant 2026-02-11 15:26:55 +02:00
techartdev 1fc2c97509 Update version to 0.5.40, enhance Dockerfile with additional tools, and improve run.sh for nginx process management 2026-02-11 10:06:28 +02:00
TechArtDev aa95d6289f Bump version to 0.5.39 in config.yaml 2026-02-10 10:42:12 +02:00
TechArtDev b6f3ce0b86 Fix OpenClaw installation command in Dockerfile 2026-02-10 10:41:51 +02:00
root 63af3fd93f Bump OpenClaw to 2026.2.9 (add-on 0.5.38) 2026-02-10 09:37:31 +02:00
techartdev 73646113ae Add OpenAI API integration and update translations
- Introduced `enable_openai_api` option in config.yaml to enable OpenAI-compatible Chat Completions endpoint.
- Updated `apply_gateway_settings` function to handle OpenAI API settings.
- Enhanced documentation in DOCS.md for integrating OpenClaw with Home Assistant Assist pipeline.
- Added translations for `enable_openai_api` in English, Bulgarian, German, Spanish, and Polish.
- Bumped version to 0.5.37 in config.yaml.
2026-02-09 20:13:40 +02:00
techartdev 8007c6e907 Bump version in config.yaml to 0.5.36 2026-02-08 20:07:03 +02:00
techartdev df94522752 Update documentation and Dockerfile for Homebrew installation; fix version in config.yaml to 0.5.35 2026-02-08 20:02:56 +02:00
techartdev a329088436 Update Dockerfile to install pnpm globally and upgrade OpenClaw version to 2026.2.6-3; fix version in config.yaml to 0.5.34 2026-02-08 03:27:00 +02:00
techartdev 0a429df132 Merge branch 'main' of https://github.com/techartdev/OpenClawHomeAssistant into gate_bind_conf 2026-02-06 12:00:39 +02:00
techartdev ea9c70be5c Update OpenClaw version to 0.5.35 and add gateway mode configuration 2026-02-06 11:58:44 +02:00
lukcz 6e8a64b15d Add gateway_mode translation
- Added Polish translation for upcoming gateway_mode config option
- Requested by maintainer in PR review
- Translation: local/remote gateway operation mode
2026-02-06 10:39:42 +01:00
lukcz 378f419cf3 Add Polish (pl) translation for OpenClaw Assistant
- Added openclaw_assistant/translations/pl.yaml
- Translated all configuration options to Polish
- Follows existing translation format (en, de, es, bg)
2026-02-06 10:08:53 +01:00
techartdev cf892cd022 Bump version to 0.5.34 in config.yaml 2026-02-05 12:39:57 +02:00
techartdev f9c80534ea Implement PID file management for ttyd to prevent port conflicts 2026-02-05 12:24:55 +02:00
techartdev 517a4fbbd7 Validate terminal port configuration and improve error handling in run.sh 2026-02-05 12:09:27 +02:00
TechArtDev c3301c2445 Update openclaw_assistant/run.sh
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-02-05 12:04:07 +02:00
techartdev c59417a180 Add terminal port configuration option to config.yaml 2026-02-05 12:03:05 +02:00
techartdev 9e4987d25f Add configurable terminal port support and update translations
- Updated nginx configuration to use a placeholder for terminal port.
- Modified run.sh to read terminal port from options file and start ttyd on the specified port.
- Added terminal port configuration option in English, Bulgarian, German, and Spanish translations.
2026-02-05 09:57:41 +02:00
techartdev e6d6f62da6 Update Dockerfile and configuration for OpenClaw Assistant
- Added vim and nano to the Dockerfile for improved editing capabilities.
- Bumped version to 0.5.33 in config.yaml.
- Set OpenClaw directories in run.sh to ensure persistence across updates.
2026-02-04 16:49:58 +02:00