Skip to content

Commit

Permalink
Fix exposing switch as light state_value_template not visible. Koenkk…
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenkk committed Aug 6, 2021
1 parent d07c1ee commit 7229361
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ sudo gem install bundler
bundle install

# Start local server
bundle exec jekyll serve
bundle exec jekyll serve --incremental
```

You can now find the local instance under: http://127.0.0.1:4000
3 changes: 3 additions & 0 deletions docs/integration/home_assistant.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ Groups discovery is supported for groups of lights, switches, locks and covers.
## Exposing switch as a light
If your device is currently discovered as a switch and you want to discover it as a light, the following config in the Zigbee2MQTT `configuration.yaml` can be used:

{% raw %}
```yaml
devices:
"0x12345678":
Expand Down Expand Up @@ -159,6 +160,8 @@ devices:
value_template: null
state_value_template: '{{ value_json.state_right }}'
```
{% endraw %}

If you are also using device specific overrides, make sure that they are configured under the new device type rather than the original device type.

## Controlling Zigbee2MQTT via Home Assistant
Expand Down

0 comments on commit 7229361

Please sign in to comment.