Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
savdagod authored Dec 8, 2024
1 parent 262877e commit 14de125
Showing 1 changed file with 37 additions and 35 deletions.
72 changes: 37 additions & 35 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
Display notifications from HomeAssistant to Tidbyt using this integration. Installation of the add-on is required.

# Installation

## Addon
First, install the TidbytAssistant add-on which can be found here (You **MUST** install this add-on whether it's through the add-on store or as a regular Docker container for Push, Publish and Text services to work. If the add-on is not installed, the integration will not load.):

```txt
Expand Down Expand Up @@ -44,36 +46,7 @@ tidbytassistant:
5. Restart HomeAssistant.
6. Once HomeAssistant restarts, you should now have multiple actions as well as light and switch entities for each Tidbyt you've added. Use these in your automations to send notifiations, text, your own .star files or adjust the brightness of your display.

# Features

## Light and switch entities
The integration will expose each devices' sceen as a light entity. The autodim feature is exposed as a switch entity. The states are fetched every 30s.

## Services
### TidbytAssistant: Push
1. Select the radio button for *Built-in*.
2. Use the *Content* dropdown to select from the built in notifications. These are apps that I have built that have little animations for notifications.
4. Select you device(s) and run the action.

#### Pushing your own files
1. Create a folder in your **/config** directory called **tidbyt**.
2. Place your .star file(s) in this folder.
3. Select the radio button for *Custom*. In the *Custom Content* text box, enter the file name minus the '.star'. Example: If your file is named *custom.star*, you will enter *custom* in the field.
4. You can also pass in arguments as key=value pairs. in the *Arguments* box you can enter these pairs like this, separated with a semi-colon (;): ***key=value;key2=value 2***. (Scroll down to **Passing arguments** to see an example of how this works)
5. Select your device(s) and run the action to see it displayed on your Tidbyt.

### TidbytAssistant: Text
1. Select the radio buttom for *Text*
2. In the *Content* box, enter the text you want displayed. You can also select from the avaialble fonts and colors as well as static text or scrolling.
4. Select your device(s) and run the action. You should see your text on the screen.

#### TidbytAssistant: Delete
1. Enter the content ID of the app you published and device name.
2. Select you device(s) and run the action. The app should now be removed from your rotation.
3. If the app you tried to delete is not installed on the Tidbyt, you will see a list of apps that are available for deletion. Only apps that you have sent through HomeAssistant will show up for deletion.

## Things to note
### Changing Ports
## Changing Ports
By default, this integration sends the request on port 9000. If for some reason that port is in use, you can change it in the add-on configuration. Be sure to also change it in your configuration.yaml like so:
```txt
tidbytassistant:
Expand All @@ -86,7 +59,7 @@ tidbytassistant:
...
```

### Changing Hosts
## Changing Hosts
By default, this integration sends the request to locahost. If you want to host the add-on separately or using HA Core then you can change the host in the configuration:
```txt
tidbytassistant:
Expand All @@ -99,7 +72,7 @@ tidbytassistant:
...
```

### External container
## External container
If you run the addon as a separate container (ie not part of HomeAssistant), you can set *external_addon* to true like so:
```txt
tidbytassistant:
Expand All @@ -114,7 +87,7 @@ tidbytassistant:
...
```

### Using secrets file
## Using secrets file
I also recommend that you use the secrets.yaml file to store your ID and Key. Add these to secrets.yaml:
```txt
tidbyt_id: device_id_from_previous_step
Expand All @@ -131,7 +104,36 @@ tidbytassistant:
...
```

### Passing arguments
# Features

## Light and switch entities
The integration will expose each devices' sceen as a light entity. The autodim feature is exposed as a switch entity. The states are fetched every 30s.

## Services
### TidbytAssistant: Push
1. Select the radio button for *Built-in*.
2. Use the *Content* dropdown to select from the built in notifications. These are apps that I have built that have little animations for notifications.
4. Select you device(s) and run the action.

#### Pushing your own files
1. Create a folder in your **/config** directory called **tidbyt**.
2. Place your .star file(s) in this folder.
3. Select the radio button for *Custom*. In the *Custom Content* text box, enter the file name minus the '.star'. Example: If your file is named *custom.star*, you will enter *custom* in the field.
4. You can also pass in arguments as key=value pairs. in the *Arguments* box you can enter these pairs like this, separated with a semi-colon (;): ***key=value;key2=value 2***. (Scroll down to **Passing arguments** to see an example of how this works)
5. Select your device(s) and run the action to see it displayed on your Tidbyt.

### TidbytAssistant: Text
1. Select the radio buttom for *Text*
2. In the *Content* box, enter the text you want displayed. You can also select from the avaialble fonts and colors as well as static text or scrolling.
4. Select your device(s) and run the action. You should see your text on the screen.

### TidbytAssistant: Delete
1. Enter the content ID of the app you published and device name.
2. Select you device(s) and run the action. The app should now be removed from your rotation.
3. If the app you tried to delete is not installed on the Tidbyt, you will see a list of apps that are available for deletion. Only apps that you have sent through HomeAssistant will show up for deletion.

# Things to note
## Passing arguments
Passing arguments to your app can be helpful because it removes the need to hard code values. It also allows you to pass in templated values directly to your apps. The following example is taken from the Pixlet docs and is how you would use these varibles inside your app:
```
def main(config):
Expand All @@ -147,5 +149,5 @@ This example has a varible "who", which can be used as the **key=value** pair **
}};title={{ states('input_text.movie_night_movie') }}
```

### Troubleshooting
# Troubleshooting
The action should do a few checks when you run it and give feedback on what went wrong. However, sometimes everything checks out on the HA side but won't on the add-on side. If you navigate to the add-on page and click 'Logs' you can see what went wrong if the action you ran is not giving you the desired results.

0 comments on commit 14de125

Please sign in to comment.