mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 17:27:19 +00:00
Update python_script.markdown (#12055)
* Update python_script.markdown
* ✏️ Tweak
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
parent
3adb4c4e42
commit
1e4701b120
@ -44,6 +44,12 @@ hass.bus.fire(name, {"wow": "from a Python script!"})
|
||||
name: you
|
||||
```
|
||||
|
||||
<div class='note'>
|
||||
|
||||
Running this script show absolutely no output on the screen, but it logs with level `info`. You must have the [Logger](/integrations/logger/) enabled at least for level `info`.
|
||||
|
||||
</div>
|
||||
|
||||
## Calling Services
|
||||
|
||||
The following example shows how to call a service from `python_script`. This script takes two parameters: `entity_id` (required), `rgb_color` (optional) and calls `light.turn_on` service by setting the brightness value to `255`.
|
||||
|
Loading…
x
Reference in New Issue
Block a user