Skip to content
Snippets Groups Projects
Commit 7f094676 authored by Stefan Schmidt's avatar Stefan Schmidt
Browse files

recipes-homeassistant: Project rename


Path changed have been done upstream as well and SRCREV bumped
accordingly.

Signed-off-by: default avatarStefan Schmidt <stefan.schmidt@huawei.com>
parent 61bc8a7e
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@
#
# SPDX-License-Identifier: Apache-2.0
SUMMARY = "Home Assistant configuration for All Scenarios OS Smart Panel \
SUMMARY = "Home Assistant configuration for Oniro Project Smart Panel \
blueprint"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://${ONIRO_COREBASE}/LICENSES/Apache-2.0.txt;md5=ef3dabb8f39493f4ea410bebc1d01755"
......@@ -29,11 +29,11 @@ do_install() {
default_config:
sensor:
- platform: allscenarios_sensors
- platform: oniroproject_sensors
mac: "${SMART_HOME_SENSORS_MAC}"
switch:
- platform: allscenarios_switch
- platform: oniroproject_switch
mac: "${SMART_HOME_SWITCH_MAC}"
homeassistant:
......@@ -56,27 +56,27 @@ EOF
alias: Light on
description: ''
trigger:
- entity_id: sensor.all_scenarios_os_smarthome_device_presence
- entity_id: sensor.oniroproject_smarthome_device_presence
from: 'False'
platform: state
to: 'True'
condition: []
action:
- data: {}
entity_id: switch.all_scenarios_os_smarthome_device_light
entity_id: switch.oniroproject_smarthome_device_light
service: switch.turn_on
- id: '1621503121253'
alias: Light off
description: ''
trigger:
- entity_id: sensor.all_scenarios_os_smarthome_device_presence
- entity_id: sensor.oniroproject_smarthome_device_presence
from: 'True'
platform: state
to: 'False'
condition: []
action:
- data: {}
entity_id: switch.all_scenarios_os_smarthome_device_light
entity_id: switch.oniroproject_smarthome_device_light
service: switch.turn_off
EOF
......
......@@ -2,7 +2,7 @@
#
# SPDX-License-Identifier: Apache-2.0
SUMMARY = "All Scenarios OS SmartHome device interface library"
SUMMARY = "Oniro Project SmartHome device interface library"
HOMEPAGE = "https://git.ostc-eu.org/OSTC/OHOS/components/ohsmarthome-py/"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSES/Apache-2.0.txt;md5=c846ebb396f8b174b10ded4771514fcc"
......
......@@ -2,7 +2,7 @@
#
# SPDX-License-Identifier: Apache-2.0
SUMMARY = "Home Assistant custom component for All Scenarios OS SmartHome device"
SUMMARY = "Home Assistant custom component for Oniro Project SmartHome device"
HOMEPAGE = "https://git.ostc-eu.org/OSTC/OHOS/components/smart_home_homeassistant_plugin/"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSES/Apache-2.0.txt;md5=c846ebb396f8b174b10ded4771514fcc"
......@@ -15,7 +15,7 @@ SRC_OPT_BRANCH = "branch=master"
SRC_OPTIONS = "${SRC_OPT_PROTO};${SRC_OPT_DEST};${SRC_OPT_NAME};${SRC_OPT_BRANCH}"
SRC_URI = "git://git.ostc-eu.org/OSTC/OHOS/components/smart_home_homeassistant_plugin.git;${SRC_OPTIONS}"
SRCREV_smart_home_homeassistant_plugin = "3f3b0aa9b6b5570b01dea26265577871a4bb3ab5"
SRCREV_smart_home_homeassistant_plugin = "63c39b0eebab086ba793be8e7963c2d3c69cbedc"
S = "${WORKDIR}/${SRC_OPT_CLONE_DIR}"
......@@ -26,13 +26,13 @@ do_configure[noexec] = "1"
do_compile[noexec] = "1"
do_install() {
install -d ${D}${HOMEASSISTANT_CONFIG_DIR}/custom_components/allscenarios_sensors/
install ${S}/custom_components/allscenarios_sensors/*.py \
${D}${HOMEASSISTANT_CONFIG_DIR}/custom_components/allscenarios_sensors/
install -d ${D}${HOMEASSISTANT_CONFIG_DIR}/custom_components/oniroproject_sensors/
install ${S}/custom_components/oniroproject_sensors/*.py \
${D}${HOMEASSISTANT_CONFIG_DIR}/custom_components/oniroproject_sensors/
install -d ${D}${HOMEASSISTANT_CONFIG_DIR}/custom_components/allscenarios_switch/
install ${S}/custom_components/allscenarios_switch/*.py \
${D}${HOMEASSISTANT_CONFIG_DIR}/custom_components/allscenarios_switch/
install -d ${D}${HOMEASSISTANT_CONFIG_DIR}/custom_components/oniroproject_switch/
install ${S}/custom_components/oniroproject_switch/*.py \
${D}${HOMEASSISTANT_CONFIG_DIR}/custom_components/oniroproject_switch/
chown -R "${HOMEASSISTANT_USER}":homeassistant "${D}${HOMEASSISTANT_CONFIG_DIR}"
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment