Default
Try the configured card with fictional devices.
Scroll to load this example.
Current weather with an optional native forecast.
Scroll through the real card’s behaviors using fictional data. Open its details to inspect the real popup. Offscreen examples reset when reloaded.
The documentation theme applies to every example. Use the playground below to edit configuration.
Try the configured card with fictional devices.
Scroll to load this example.
Show the native forecast below current conditions.
Scroll to load this example.
Hide the forecast without changing the weather entity.
Scroll to load this example.
Weather icons and condition text follow the entity.
Scroll to load this example.
Pair sensor readings into compact instruments; 0.1 mm or more shows the rainy scene.
Scroll to load this example.
A trace reading below 0.1 mm shows the clear scene.
Scroll to load this example.
Wait for Home Assistant state before showing controls.
Scroll to load this example.
The entity exists but has no known state. Controls remain neutral and disabled.
Scroll to load this example.
The entity is unavailable. No device action is dispatched.
Scroll to load this example.
A removed entity produces an explicit neutral missing-state result.
Scroll to load this example.
Controls refuse actions when Home Assistant is disconnected.
Scroll to load this example.
Try the card below. Select Open playground to choose a behavior or edit settings and YAML. Everything in the preview uses fictional devices. Copy YAML exports the card configuration, without demonstration states or service responses.
Loading preview…
In Home Assistant, choose Edit dashboard → Add card → Manual, then paste the YAML below. Replace fictional entity IDs with your own. You can also find the card in Home Assistant’s card picker and use its native editor.
type: custom:marao-weather-cardentity_id: weather.homeCompatible entity domains: weather, sensor.
The static sky reflects the reported weather condition; no background is animated. A large whole-number temperature appears with available wind, humidity and pressure readings. Metrics wrap naturally without empty slots; displayed current and forecast values are rounded without changing reported data. Tap the card to open hourly predictions or up to seven days on matching condition scenery, according to the entity’s capabilities. Explicit custom tap and hold actions retain their configured behavior. Missing forecasts stay empty and reported errors remain visible. variables.show_forecast: false hides the forecast entry.
In the card settings, choose each station reading from its own searchable sensor dropdown: temperature, humidity, dew point, pressure, rainfall, wind speed, wind gust, wind direction, illuminance and UV index. Leave unused selectors empty. Existing station sensor mappings load automatically; editing one selector preserves the others. No YAML is needed for sensor selection. The optional wind angle label stays hidden by default while the compass arrow follows the direction sensor.
The table lists the shared catalog fields and this card’s structured options. Not set means the example does not impose a value; Home Assistant and Marao use the entity’s capabilities and the card’s normal behavior. Structured values remain editable as YAML.
| YAML path | Setting | Value type | Catalog default | Behavior |
|---|---|---|---|---|
entity_id |
Entity | entity | Not set | A weather, sensor entity from your Home Assistant. Searchable suggestions are available. |
name |
Name | text | Not set | Optional display name; otherwise use the entity’s friendly name. |
icon |
Icon | icon | Not set | Optional icon name such as mdi:lightbulb-outline. Searchable suggestions are available. |
show_name |
Show name | boolean | Not set | Optional native card appearance setting. Normal availability warnings remain visible. |
show_icon |
Show icon | boolean | Not set | Optional native card appearance setting. Normal availability warnings remain visible. |
show_state |
Show state | boolean | Not set | Optional native card appearance setting. Normal availability warnings remain visible. |
show_label |
Show label | boolean | Not set | Optional native card appearance setting. Normal availability warnings remain visible. |
tap_action |
tap action | json | Not set | Configure through Home Assistant’s native action selector. Role and access safety checks still apply. |
hold_action |
hold action | json | Not set | Configure through Home Assistant’s native action selector. Role and access safety checks still apply. |
double_tap_action |
double tap action | json | Not set | Configure through Home Assistant’s native action selector. Role and access safety checks still apply. |
variables.custom_label |
Custom state label | text | Not set | Custom state label for this card. |
variables.md_label_prefix |
State label prefix | text | Not set | State label prefix for this card. |
variables.card_color |
Card color | color | Not set | Optional card background color. |
variables.active_color |
Active color | color | Not set | Active color for this card. |
variables.show_forecast |
Forecast | boolean | true |
Forecast for this card. |
variables.station_entities.temperature |
Temperature sensor | entity | Not set | Temperature sensor for this card. Searchable suggestions are available. |
variables.station_entities.humidity |
Humidity sensor | entity | Not set | Humidity sensor for this card. Searchable suggestions are available. |
variables.station_entities.dew_point |
Dew point sensor | entity | Not set | Dew point sensor for this card. Searchable suggestions are available. |
variables.station_entities.pressure |
Pressure sensor | entity | Not set | Pressure sensor for this card. Searchable suggestions are available. |
variables.station_entities.precipitation |
Rainfall sensor | entity | Not set | Rainfall sensor for this card. Searchable suggestions are available. |
variables.station_entities.wind_speed |
Wind speed sensor | entity | Not set | Wind speed sensor for this card. Searchable suggestions are available. |
variables.station_entities.wind_gust |
Wind gust sensor | entity | Not set | Wind gust sensor for this card. Searchable suggestions are available. |
variables.station_entities.wind_direction |
Wind direction sensor | entity | Not set | Wind direction sensor for this card. Searchable suggestions are available. |
variables.station_entities.illuminance |
Illuminance sensor | entity | Not set | Illuminance sensor for this card. Searchable suggestions are available. |
variables.station_entities.uv_index |
UV index sensor | entity | Not set | UV index sensor for this card. Searchable suggestions are available. |
variables.show_wind_angle |
Wind angle label | boolean | false |
Show direction and degrees below the compass; the needle always follows the sensor. |
Select Open playground, then choose a scenario to inspect its configuration and reported device state. Similar numeric or color values do not need separate examples.
| Scenario | What it demonstrates |
|---|---|
| Default | Try the configured card with fictional devices. |
| Forecast | Show the native forecast below current conditions. |
| Current conditions only | Hide the forecast without changing the weather entity. |
| Rainy conditions | Weather icons and condition text follow the entity. |
| Weather station: raining | Pair sensor readings into compact instruments; 0.1 mm or more shows the rainy scene. |
| Weather station: not raining | A trace reading below 0.1 mm shows the clear scene. |
| Weather station: wind angle hidden | Hide the wind direction text while the compass needle follows the direction sensor. |
| Loading state | Wait for Home Assistant state before showing controls. |
| Unknown state | The entity exists but has no known state. Controls remain neutral and disabled. |
| Unavailable | The entity is unavailable. No device action is dispatched. |
| Missing entity | A removed entity produces an explicit neutral missing-state result. |
| Disconnected | Controls refuse actions when Home Assistant is disconnected. |
Home Assistant owns card sizing, sections and visibility. Marao controls retain their touch targets and capability checks. Unknown, unavailable or disconnected entities use neutral presentation and disable unsafe actions. See layouts and popups and shared interactions.