Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jdeath authored Jan 1, 2023
1 parent 0d754fb commit e830814
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ System-wide watt and voltage setting available as attribute in the first output
attribute: watts
```
### Services:
The integration now has the capability to send a service. You may want this if there is a capability you want, but it not supported by the integration.
For example, if you want to send the rainbow effect:
The integration now has the capability to send a service. You may want this if there is a capability that is not supported by the integration.
For example, if you want to send the rainbow effect to your rgb light:
```
service: hubspace.send_command
data:
Expand All @@ -142,7 +142,16 @@ data:
target:
entity_id: light.yourlightname
```
For example, if you want to send the comfort breeze effect to your fan:
```
service: hubspace.send_command
data:
value: "enabled"
functionClass: toggle
functionInstance: comfort-breeze
target:
entity_id: light.yourlightname
```
You do this is the Developers Tools -> Services window. The GUI can be used to choose an entity.
How do you find out what the value, functionClass and functionInstance should be? Look at the output of running TestHubspace.py on your device. If you look around, you will see what your light supports in the "values" field. See https://github.com/jdeath/Hubspace-Homeassistant/blob/main/sample_data/11A21100WRGBWH1.json#L686 . The functionInstance is optional, as not all commands require it. There are some example outputs of TestHubspace.py in the sample_data/ directory of the repo. If you cannot run the TestHubspace.py, then turn on debugging (debug: true in your light: setup). Change the setting in the app, and look at the entity attributes in homeassistant. You should be able to see an entry that has the value, functionClass, etc.
Expand Down

0 comments on commit e830814

Please sign in to comment.