Widgets de commande
Bouton, interrupteur et lumière
{"id":"entry-light","type":"light","entity":"light.entry","title":"Entrée","icon_on":"lightbulb","icon_off":"lightbulb_outline"}
type vaut button, switch ou light ; id et entity/entity_id sont obligatoires. S’ajoutent title, icon, icon_on, icon_off, grille, thème et condition. Un appui bascule par le service typé du domaine. Un appui long sur light.* ouvre luminosité, RGB/HS/XY, température de couleur et effect_list si l’entité les annonce.
Volet
{"id":"blind","type":"cover","entity":"cover.entry","title":"Volet","show_position":true,"step":10}
Les options sont title, icon, icon_open, icon_closed, show_position, step, open_service, close_service, stop_service et position_service. La carte propose ouvrir, arrêter, fermer et — si la position est disponible — un curseur pour current_position/position.
Ventilateur
{"id":"fan","type":"fan","entity":"fan.bedroom","title":"Ventilateur","show_percentage":true,"show_presets":true}
Les options sont title, icon, show_percentage, percentage_step, show_presets, show_oscillate et show_direction. La carte n’utilise que les capacités annoncées : marche/arrêt, percentage, preset_modes, oscillating et direction.
Climat
{"id":"heating","type":"climate","entity":"climate.entry","title":"Chauffage","show_current":true,"show_humidity":true,"temperature_step":0.5}
Les options sont title, icon, show_current, show_target, show_humidity, temperature_step, min_temp, max_temp, show_hvac_modes, show_fan_modes, show_preset_modes, show_swing_modes et show_swing_horizontal_modes. RustyHAMA respecte hvac_modes, fan_modes, preset_modes, swing_modes, swing_horizontal_modes, limites et unité de l’entité.
Sélection et champ texte
{"id":"mode","type":"select","entity":"input_select.house_mode","title":"Mode","icon":"list"}
select, alias entity_select, lit options depuis select.* ou input_select.* et appelle select_option. Options : title, icon, placeholder, show_state. textfield fournit une saisie aux entités texte compatibles ; options : title, entity/entity_id, hint, input_type, max_length, submit_text. Sans opération d’écriture typée, le champ reste en lecture seule.