Skip to content

Commit

Permalink
Fix relays and LEDs inconsistency (closes #3)
Browse files Browse the repository at this point in the history
  • Loading branch information
hacker-cb committed Oct 13, 2021
1 parent 715c568 commit 6a94b3a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
8 changes: 7 additions & 1 deletion hassio-addon-jethub-mqtt-io/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,13 @@ RUN apk add --no-cache \
&& pip install --no-cache-dir poetry==1.1.10

WORKDIR /usr/src
RUN git clone --single-branch --branch 2.2.6 https://github.com/flyte/mqtt-io mqtt_io
#RUN git clone --single-branch --branch 2.2.6 https://github.com/flyte/mqtt-io mqtt_io

# hadolint ignore=DL3003
RUN git clone -n --single-branch --branch handle_initial_none https://github.com/Hacker-CB/mqtt-io mqtt_io \
&& cd mqtt_io \
&& git checkout 1a985bd5a204da00779c47ed7bb5be170da0de0b


WORKDIR /usr/src/mqtt_io
RUN mkdir -p /home/mqtt_io \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,41 +60,31 @@ digital_outputs:
module: gpio
pin: 26
inverted: true
initial: low
publish_initial: true
ha_discovery:
component: switch
name: JetHub stat LED red
- name: stat_led_green
module: gpio
pin: 27
inverted: true
initial: low
publish_initial: true
ha_discovery:
component: switch
name: JetHub stat LED green
- name: jethub_relay_1
module: gpio
pin: 30
initial: low
publish_initial: true
ha_discovery:
component: switch
name: JetHub Relay 1
- name: jethub_relay_2
module: gpio
pin: 29
initial: low
publish_initial: true
ha_discovery:
component: switch
name: JetHub Relay 2
- name: jethub_relay_3
module: gpio
pin: 28
initial: low
publish_initial: true
ha_discovery:
component: switch
name: JetHub Relay 3

0 comments on commit 6a94b3a

Please sign in to comment.