Skip to content

Commit af57c74

Browse files
authored
Update run_local.markdown
1 parent c51c5b4 commit af57c74

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

source/hassio/run_local.markdown

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@ footer: true
1111

1212
Hass.io is a managed environment, which means that you can't install applications that can be embedded into Home Assistant using the `command_line` sensor/switch.
1313

14-
There are two options if you need to run a script to read data from a sensor or send commands to other devices on Hass.io.
14+
There are three options if you need to run a script to read data from a sensor or send commands to other devices on Hass.io.
1515

1616
The first option is to write a custom component for Home Assistant. Using Python, you can communicate with your device. For more information about developing a custom component, take a look at the [developer documentation][custom-component].
1717

18-
The second option is to make a local add-on for Hass.io that sends the data to Home Assistant via MQTT. Before we dive into this, read up on [Hass.io add-on development][addons-tutorial] first.
18+
The second option is to use STDIN inside add-on and use the service `hassio.addon_stdin` to send data. More about this options look into [developer documentation][communication] for internal add-on communication. There is also describe how do you can easy access to Home-Assistant Rest API.
19+
20+
The third option is to make a local add-on for Hass.io that sends the data to Home Assistant via MQTT. Before we dive into this, read up on [Hass.io add-on development][addons-tutorial] first.
1921

2022
For security and speed, Hass.io does not provide a way for containers to communicate directly. So the first step is to set up a communication channel. We're going to use MQTT for this using the [MQTT broker add-on][mqtt-addon].
2123

@@ -98,3 +100,4 @@ done < <(mosquitto_sub -h "$MQTT_SERVER" -p "$MQTT_PORT" -u "$USER" -P "$PASSWOR
98100
[MQTT-addon]: /addons/mosquitto/
99101
[custom-component]: /developers/component_loading/
100102
[addons-tutorial]: /developers/hassio/addon_tutorial/
103+
[communication]: /developers/hassio/addon_communication/

0 commit comments

Comments
 (0)