Link Search Menu Expand Document

CodeGenerator for button(s)

With this generator you can configure a button and get the complete code for your "view" file.

Show instructions
  • Choose the button, you want to generate
  • If variables or entries need to be set, the form shows these after you choose
  • Fill in the data from Home Assistant as described
  • Click "Generate button code"
  • Copy the generated code and paste it in your edit window in Home Assistant
Note: If you don't want to fill in the data, just click "Generate button code" after choosing a button type. The generator shows the code without filled in data. This generator works locally in your browser, no data is send anywhere!

Note: This generator is in beta state, so there may be issues! Thanks for understanding!

Mode

Which mode are you using?


Button

Choose a button to configure, the "basic" button.

Variables / entries

Fill in at least the required fields with your data from Home Assistant.


 ? This is your battery entity


 ? If your entity provides the battery percent in an attribute (= not as an own sensor), fill in the attributes name here. Eg. if you have `sensor.livingroom_thermometer` and the attribute for your battery power is `sensor.livingroom_thermometer.attributes.battery_percent`, you fill in battery_percent here.

Variables / entries

Fill in at least the required fields with your data from Home Assistant.


 ? The binary_sensor to show



Variables / entries

Fill in at least the required fields with your data from Home Assistant.


 ? The binary_sensor to show



Variables / entries

Fill in at least the required fields with your data from Home Assistant.


 ? The entity_id of your cover


 ? The name of your cover entity

Variables / entries

Fill in at least the required fields with your data from Home Assistant.



Variables / entries

Fill in at least the required fields with your data from Home Assistant.



Variables / entries

Fill in at least the required fields with your data from Home Assistant.


 ? This is to adjust your color value. Use a CSS varible from HA or set a color value (eg. #FFFFFF)


 ? The name of your sensor


 ? Your entity_id for the temperature sensor

Variables / entries

Fill in at least the required fields with your data from Home Assistant.


 ? The input_boolean to switch

Variables / entries

Fill in at least the required fields with your data from Home Assistant.



Variables / entries

Fill in at least the required fields with your data from Home Assistant.




 ? If you want to set a specific name, eg. because your friendly name is too long for the card, this is the place to fill it in. If this is not set, the friendly name will be used.

Variables / entries

Fill in at least the required fields with your data from Home Assistant.




 ? If you want to set a specific name, eg. because your friendly name is too long for the card, this is the place to fill it in. If this is not set, the friendly name will be used.

Variables / entries

Fill in at least the required fields with your data from Home Assistant.




 ? If you want to set a specific name, eg. because your friendly name is too long for the card, this is the place to fill it in. If this is not set, the friendly name will be used.

Variables / entries

Fill in at least the required fields with your data from Home Assistant.


 ? The media-player entity


 ? Name to display for your media-player

Variables / entries

Fill in at least the required fields with your data from Home Assistant.


 ? The media-player entity


 ? Name to display for your media-player

Variables / entries

Fill in at least the required fields with your data from Home Assistant.


 ? The entity of the media player


 ? The name of the media player (only displayed when off)

Variables / entries

Fill in at least the required fields with your data from Home Assistant.


 ? The path to your lovelace dashboard


 ? Title to show for the link


 ? Icon to show

Variables / entries

Fill in at least the required fields with your data from Home Assistant.


 ? The person entity


 ? If you set this to true, the card shows the entity picture from your user, otherwise (set to false) shows the icon. Default is false.


 ? Set another zone (beside "home") to use for the card. You can set up two zones besides "home".


 ? Set another zone (beside "home") to use for the card. You can set up two zones besides "home".

Variables / entries

Fill in at least the required fields with your data from Home Assistant.






 ? If you set this sensor, the `power-outlet-card` shows the energy consumption next to the state.

Variables / entries

Fill in at least the required fields with your data from Home Assistant.


 ? Name to show for the script.


 ? Icon to show for the script.


 ? Only call-service is allowed here.


 ? Let the script run by turning it on.


 ? This is the service_data needed by your script. That can be an entity_id and/or some variables.

Variables / entries

Fill in at least the required fields with your data from Home Assistant.


 ? This is a main title (either title or subtitle is required)


 ? This is a subtitle (either title or subtitle is required)

Variables / entries

Fill in at least the required fields with your data from Home Assistant.


 ? Set the navigation path to your default view, eg. ui-lovelace-minimalist/home or lovelace

Variables / entries

Fill in at least the required fields with your data from Home Assistant.


 ? This is the icon to show. See icons to read more about the used unicode `emojis`.





Variables / entries

Fill in at least the required fields with your data from Home Assistant.


 ? This is the icon to show. See icons to read more about the used unicode `emojis`.

Variables / entries

Fill in at least the required fields with your data from Home Assistant.


 ? This is the icon to show. See See icons to read more about the used unicode `emojis`.



Variables / entries

Fill in at least the required fields with your data from Home Assistant.


 ? This is your consumed energy. This is the sensor, that shows how many *kWh*s are consumed.


 ? This is the price for your consumed energy, if you have such a sensor. This should be a sensor that shows a price in your defined currency. If this variable is not set, the chip shows only the *kWh*s! If this variable is set the chip shows the price for the consumed energy!

Variables / entries

Fill in at least the required fields with your data from Home Assistant.


 ? This is the sensor that shows your residents counter.


 ? This is the sensor that shows your guests counter.

Variables / entries

Fill in at least the required fields with your data from Home Assistant.


 ? This is the sensor that provides your outside temperature. If you want to use eg. a temperature value from your weather provider, you'd need to setup a template sensor first. The state of this sensor should represent a numeric value (°C or °F doesn't matter).


 ? This is the sensor that provides your inside temperature. The state of this sensor should represent a numeric value (°C or °F doesn't matter).

Generate
Your example code

This is your generated code to paste into your config.


© by UI-Lovelace-Minimalist 2021

Documentation for ULM version 1.0.0-beta.6