Skip to content

Commit

Permalink
FN First Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mtippt committed Feb 17, 2024
1 parent 1bd99de commit 49c751c
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 11 deletions.
7 changes: 5 additions & 2 deletions BLEmesh2mqtt/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
FROM python:3.10-bullseye


RUN apt-get -y update && apt-get -y upgrade && apt-get -y install \
build-essential \
python3-docutils \
Expand Down Expand Up @@ -40,7 +39,11 @@ WORKDIR /config
#VOLUME /config
COPY ./config .

# set up dbus directory and permissions
RUN mkdir -p /var/run/dbus && \
chmod 777 /var/run/dbus

# run bluetooth service and bridge
WORKDIR /opt/hass-ble-mesh/gateway
COPY ./scripts/entrypoint.sh .
ENTRYPOINT [ "/bin/bash", "entrypoint.sh" ]
ENTRYPOINT [ "/bin/bash", "entrypoint.sh" ]
8 changes: 4 additions & 4 deletions BLEmesh2mqtt/config.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: BLEmesh2mqtt dev add-on
name: BLEmesh2mqtt
version: dev
slug: blemesh2mqtt
description: Example BLEmesh2mqtt add-on with full access (v1)
url: https://github.com/nitrokart/BLEmesh2mqtt
image: "ghcr.io/nitrokart/{arch}-blemesh2mqtt"
description: BLEmesh2mqtt add-on with full access (v1)
url: https://github.com/mtippt/BLEmesh2mqtt
image: "ghcr.io/mtippt/{arch}-blemesh2mqtt"
arch:
- armhf
- armv7
Expand Down
6 changes: 3 additions & 3 deletions BLEmesh2mqtt/gateway/mesh/nodes/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ def supports(self, property):
return property in self._features

async def turn_on(self):
await self.set_onoff_unack(True, transition_time=0.5)
await self.set_onoff_unack(True, transition_time=0.0)

async def turn_off(self):
await self.set_onoff_unack(False, transition_time=0.5)
await self.set_onoff_unack(False, transition_time=0.0)

async def set_brightness(self, brightness):
if self._is_model_bound(models.LightLightnessServer):
await self.set_lightness_unack(brightness, transition_time=0.5)
await self.set_lightness_unack(brightness, transition_time=0.0)
elif self._is_model_bound(models.LightCTLServer):
await self.set_ctl_unack(brightness=brightness)

Expand Down
4 changes: 2 additions & 2 deletions repository.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# https://developers.home-assistant.io/docs/add-ons/repository#repository-configuration
name: Example Home Assistant add-on repository
name: BLEmesh2mqtt
url: 'https://github.com/home-assistant/addons-example'
maintainer: Awesome Maintainer <awesome@example.com>
maintainer: Francisco Neto <fmon@alflabs.com>

0 comments on commit 49c751c

Please sign in to comment.