Hello, thanks for last beta.
I Still have my issue when editing on mobile once there is the button horizontal-stack.
Regarding the diez of the screen too wide
Nb my code.
views:
- title: Home
cards:
- type: vertical-stack
cards:
- type: custom:bubble-card
card_type: pop-up
button_type: slider
entity: light.salon_lumieres
name: Salon
hash: '#salon'
show_state: true
show_attribute: false
force_icon: false
- type: custom:bubble-card
card_type: button
button_type: state
entity: person.olivier
- type: custom:bubble-card
card_type: media-player
entity: media_player.piece_a_vivre
- type: custom:bubble-card
card_type: button
button_type: state
entity: sensor.porte_podposition
sub_button:
- icon: ''
entity: button.porte
styles: >-
ha-card > div > div > div.bubble-button-card.switch-button >
div.bubble-icon-container.icon-container::after {
#ha-icon {
color: {% if is_state('sensor.porte_podposition','LOCK') %} green !important {% endif %} {% if is_state('sensor.porte_podposition','CLOSE') %} white !important {% endif %} {% if is_state('sensor.porte_podposition','OPEN') %} red !important {% endif %};
}
show_attribute: false
attribute: templates
- type: horizontal-stack
cards:
- type: custom:mushroom-template-card
primary: 'Porte entrée '
secondary: |
{% if is_state('sensor.porte_podposition','LOCK') %}
Verrouillée
{% endif %}
{% if is_state('sensor.porte_podposition','CLOSE') %}
Fermée
{% endif %}
{% if is_state('sensor.porte_podposition','OPEN') %}
Ouverte
{% endif %}
icon: |
{% if is_state('sensor.porte_podposition','LOCK') %}
kuf:fts_door_locked
{% endif %}
{% if is_state('sensor.porte_podposition','CLOSE') %}
kuf:fts_door
{% endif %}
{% if is_state('sensor.porte_podposition','OPEN') %}
kuf:fts_door_open
{% endif %}
tap_action:
action: more-info
badge_icon: |
{% if is_state('sensor.porte_podposition','LOCK') %}
mdi:lock
{% endif %}
{% if is_state('sensor.porte_podposition','CLOSE') %}
mdi:lock-off
{% endif %}
{% if is_state('sensor.porte_podposition','OPEN') %}
mdi:lock
{% endif %}
icon_color: |-
{% if is_state('sensor.porte_podposition','LOCK') %}
green
{% endif %}
{% if is_state('sensor.porte_podposition','CLOSE') %}
white
{% endif %}
{% if is_state('sensor.porte_podposition','OPEN') %}
red
{% endif %}
badge_color: |
{% if is_state('sensor.porte_podposition','LOCK') %}
green
{% endif %}
{% if is_state('sensor.porte_podposition','CLOSE') %}
green
{% endif %}
{% if is_state('sensor.porte_podposition','OPEN') %}
red
{% endif %}
fill_container: true
hold_action:
action: more-info
double_tap_action:
action: call-service
service: button.press
target:
entity_id: button.porte
entity: sensor.porte_podposition
- type: vertical-stack
cards:
- type: custom:bubble-card
card_type: pop-up
button_type: state
name: Météo
hash: '#meteo'
show_state: true
show_attribute: false
force_icon: false
entity: weather.pontoise
show_icon: false
- type: custom:meteofrance-weather-card
entity: weather.pontoise
cloudCoverEntity: sensor.pontoise_cloud_cover
rainChanceEntity: sensor.pontoise_rain_chance
freezeChanceEntity: sensor.pontoise_freeze_chance
snowChanceEntity: sensor.pontoise_snow_chance
uvEntity: sensor.pontoise_uv
rainForecastEntity: sensor.pontoise_next_rain
alertEntity: sensor.95_weather_alert
number_of_forecasts: '5'
current: true
details: false
one_hour_forecast: true
alert_forecast: true
forecast: true
- type: custom:hourly-weather
entity: weather.pontoise
show_wind: speed
num_segments: '24'
label_spacing: '4'
show_date: 'false'
show_precipitation_amounts: false
name: ' '
icons: true
show_precipitation_probability: false
- type: custom:weather-chart-card
entity: weather.pontoise
show_main: false
show_temperature: true
show_current_condition: true
show_attributes: true
show_time: false
show_time_seconds: false
show_day: false
show_date: false
show_humidity: true
show_pressure: true
show_wind_direction: true
show_wind_speed: true
show_sun: true
show_feels_like: false
show_dew_point: false
show_wind_gust_speed: false
show_visibility: false
show_last_changed: false
use_12hour_format: false
icons_size: 25
animated_icons: true
icon_style: style2
forecast:
precipitation_type: rainfall
show_probability: false
labels_font_size: '11'
precip_bar_size: '100'
style: style2
show_wind_forecast: true
condition_icons: true
round_temp: false
type: daily
number_of_forecasts: '0'
disable_animation: false
units:
pressure: ''
speed: ''
- type: custom:weather-radar-card
show_zoom: true
square_map: false
show_recenter: false
show_scale: true
show_range: false
extra_labels: false
static_map: false
show_marker: true
zoom_level: 10
map_style: Voyager
- type: custom:bubble-card
card_type: horizontal-buttons-stack
1_link: '#salon'
1_icon: mdi:sofa
2_link: '#meteo'
2_icon: mdi:weather-partly-cloudy