refactor: homeassistant 应用优化

This commit is contained in:
wanghe-fit2cloud 2023-08-04 15:55:49 +08:00
parent bc9851adc0
commit 92321668e3
3 changed files with 16 additions and 34 deletions

View File

@ -1,10 +1,17 @@
additionalProperties: additionalProperties:
formFields: formFields:
- default: ./data - default: 8123
edit: false disabled: true
envKey: DATA_PATH envKey: PANEL_APP_PORT_HTTP
labelEn: Data folder path labelEn: Port
labelZh: 数据文件夹路径 labelZh: HTTP 端口
required: true
rule: paramPort
type: number
- default: Asia/Shanghai
edit: true
envKey: TIME_ZONE
labelEn: Time zone
labelZh: 时区
required: true required: true
type: text type: text

View File

@ -5,9 +5,9 @@ services:
restart: always restart: always
network_mode: "host" network_mode: "host"
volumes: volumes:
- "${DATA_PATH}:/config" - "./data:/config"
environment: environment:
- TZ=Asia/Shanghai - TZ=${TIME_ZONE}
image: homeassistant/home-assistant:2023.8.0.dev20230723 image: homeassistant/home-assistant:2023.8.0.dev20230723
labels: labels:
createdBy: "Apps" createdBy: "Apps"

View File

@ -1,14 +1,4 @@
# 使用说明 # Home Assistant
- 默认访问地址
```
IP:8123
```
# 原始相关
# Home Assistant [![Chat Status](https://img.shields.io/discord/330944238910963714.svg)](https://www.home-assistant.io/join-chat/)
Open source home automation that puts local control and privacy first. Open source home automation that puts local control and privacy first.
Powered by a worldwide community of tinkerers and DIY enthusiasts. Powered by a worldwide community of tinkerers and DIY enthusiasts.
Perfect to run on a Raspberry Pi or a local server. Perfect to run on a Raspberry Pi or a local server.
@ -16,18 +6,3 @@ Perfect to run on a Raspberry Pi or a local server.
Check out [home-assistant.io](https://home-assistant.io) for [ademo](https://demo.home-assistant.io), [installation instructions](https://home-assistant.io/getting-started/),[tutorials](https://home-assistant.io/getting-started/automation/) and [documentation](https://home-assistant.io/docs/). Check out [home-assistant.io](https://home-assistant.io) for [ademo](https://demo.home-assistant.io), [installation instructions](https://home-assistant.io/getting-started/),[tutorials](https://home-assistant.io/getting-started/automation/) and [documentation](https://home-assistant.io/docs/).
[![screenshot-states](https://raw.githubusercontent.com/home-assistant/core/master/docs/screenshots.png)](https://demo.home-assistant.io) [![screenshot-states](https://raw.githubusercontent.com/home-assistant/core/master/docs/screenshots.png)](https://demo.home-assistant.io)
## Featured integrations
[![screenshot-integrations](https://raw.githubusercontent.com/home-assistant/core/dev/docs/screenshot-integrations.png)](https://home-assistant.io/integrations/)
The system is built using a modular approach so support for other
devices or actions can be implemented easily. See also the [section on
architecture](https://developers.home-assistant.io/docs/architecture_index/)
and the [section on creating your own
components](https://developers.home-assistant.io/docs/creating_component_index/).
If you run into issues while using Home Assistant or during development
of a component, check the [Home Assistant help
section](https://home-assistant.io/help/) of our website for further
help and information.