You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The template is basically ready to go configs can be imported instead of choosing configs DPs names etc...
the configs depends on the platform and what input does platform support read bottom.
There Is 2 ways to make template:
1. is write the yaml ur self: [ Not Recommended unless you know what to do :) ]:
[ Keep in mind there is no valid check atm ]
Simple Cover Template
- cover:
commands_set: open_close_stopcurrent_position_dp: '3'entity_category: Nonefriendly_name: My BedRoom Shadeid: '1'platform: coverposition_inverted: falsepositioning_mode: positionset_position_dp: '2'span_time: 25.0
- select:
entity_category: configfriendly_name: My BedRoom Shade Motor Directionid: '5'is_passive_entity: falseplatform: selectrestore_on_reconnect: falseselect_options: forward;backselect_options_friendly: Forward;Reverse
- select:
entity_category: configfriendly_name: My BedRoom Shade Motor Modeid: '106'is_passive_entity: falseplatform: selectrestore_on_reconnect: falseselect_options: contiuation;pointselect_options_friendly: Auto;Manual
- binary_sensor:
device_class: problementity_category: diagnosticfriendly_name: My BedRoom Shade Faultid: '12'platform: binary_sensorstate_off: '0'state_on: '1'
2. is to export ur device file from config flow. [ Recommended ]:
in HA Dashboard go to [ localtuya -> Configure -> Edit Device * choose the device u want to export
Export the device config then submit]
the exported config will be named with ur device friendly_name.yaml
Templates DIR:
the configs will be exported in [custom_components/localtuya/templates]
How to import:
Choose Use saved template in configure device step.
Templates files will load up with HA so adding files.
If you add new file you can enter the filename manually in the list field, without need to restart HA to loading them up.
documentationImprovements or additions to documentation
1 participant
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Use Saved Template
Templates:
The template is basically ready to go configs can be imported instead of choosing configs DPs names etc...
the configs depends on the platform and what input does platform support read bottom.
There Is 2 ways to make template:
1. is write the yaml ur self: [ Not Recommended unless you know what to do :) ]:
[ Keep in mind there is no valid check atm ]
Simple Cover Template
2. is to export ur device file from config flow. [ Recommended ]:
Export the device config then submit]
the exported config will be named with ur device
friendly_name.yaml
Templates DIR:
[custom_components/localtuya/templates]
How to import:
Choose
Use saved template
in configure device step.Templates files will load up with HA so adding files.
If you add new file you can enter the filename manually in the list field, without need to restart HA to loading them up.
This a preview of importing ready-config cover.
Beta Was this translation helpful? Give feedback.
All reactions