diff --git a/config/lovelace/advanced_dashboard/08_automations.yaml b/config/lovelace/advanced_dashboard/08_automations.yaml index 4ce0adc..5ba15b6 100644 --- a/config/lovelace/advanced_dashboard/08_automations.yaml +++ b/config/lovelace/advanced_dashboard/08_automations.yaml @@ -217,18 +217,6 @@ cards: - automation.wallmote_living_room_4_tap_toggle_ac - automation.wallmote_living_room_4_hold_toggle_cover - - type: entities - title: Magic Cube - show_header_toggle: false - entities: - - automation.magic_cube_mode_change - - automation.magic_cube_lighting_toggle_on_knock - - automation.magic_cube_lighting_dim_on_rotate_left - - automation.magic_cube_lighting_brighten_on_rotate_right - - automation.magic_cube_music_play_pause_on_knock - - automation.magic_cube_music_volume_down_on_rotate_left - - automation.magic_cube_music_volume_up_on_rotate_right - - type: entities title: Simulation icon: mdi:robot diff --git a/config/lovelace/advanced_dashboard/12_test.yaml b/config/lovelace/advanced_dashboard/12_test.yaml index 4b74399..4e95a47 100644 --- a/config/lovelace/advanced_dashboard/12_test.yaml +++ b/config/lovelace/advanced_dashboard/12_test.yaml @@ -5,8 +5,6 @@ cards: entities: - input_boolean.purifier_turned_on_for_bad_air - binary_sensor.aqi_above_threshold - - input_boolean.magic_cube_enabled - - input_select.magic_cube_mode - type: divider - sensor.carbon_activity - sensor.carbon_last_update_trigger diff --git a/config/packages/devices/living_room/magic_cube.yaml b/config/packages/devices/living_room/magic_cube.yaml deleted file mode 100644 index cb4b14f..0000000 --- a/config/packages/devices/living_room/magic_cube.yaml +++ /dev/null @@ -1,169 +0,0 @@ -input_boolean: - magic_cube_enabled: - name: Enable Cube - icon: mdi:cube-outline - -input_select: - magic_cube_mode: - name: Cube Mode - icon: mdi:cube-scan - options: - - music - - light - -automation: - - alias: Magic Cube · Mode · Change - trigger: - platform: event - event_type: zha_event - event_data: - device_ieee: !secret magic_cube_ieee - command: slide - action: - - service: input_select.select_option - entity_id: input_select.magic_cube_mode - data_template: - option: >- - - {% if trigger.event.data["args"]["activated_face"] == 5 %} - music - {% elif trigger.event.data["args"]["activated_face"] == 2 %} - light - {% else %} - {{ states('input_select.magic_cube_mode') }} - {% endif %} - - # Lighting - - alias: Magic Cube · Lighting · Toggle on Knock - trigger: - platform: event - event_type: zha_event - event_data: - device_ieee: !secret magic_cube_ieee - command: knock - condition: - and: - - condition: state - entity_id: input_boolean.magic_cube_enabled - state: "on" - - condition: state - entity_id: input_select.magic_cube_mode - state: "light" - action: - - service: light.toggle - entity_id: light.living_room - - - alias: Magic Cube · Lighting · Dim on rotate left - trigger: - platform: event - event_type: zha_event - event_data: - device_ieee: !secret magic_cube_ieee - command: rotate_left - condition: - and: - - condition: state - entity_id: input_boolean.magic_cube_enabled - state: "on" - - condition: state - entity_id: input_select.magic_cube_mode - state: "light" - action: - - service: light.turn_on - entity_id: light.living_room - data: - brightness_step_pct: -20 - - - alias: Magic Cube · Lighting · Brighten on rotate right - trigger: - platform: event - event_type: zha_event - event_data: - device_ieee: !secret magic_cube_ieee - command: rotate_right - condition: - and: - - condition: state - entity_id: input_boolean.magic_cube_enabled - state: "on" - - condition: state - entity_id: input_select.magic_cube_mode - state: "light" - action: - - service: light.turn_on - entity_id: light.living_room - data: - brightness_step_pct: 20 - - # Music - - alias: Magic Cube · Music · Play/Pause on Knock - trigger: - platform: event - event_type: zha_event - event_data: - device_ieee: !secret magic_cube_ieee - command: knock - condition: - and: - - condition: state - entity_id: input_boolean.magic_cube_enabled - state: "on" - - condition: state - entity_id: input_select.magic_cube_mode - state: "music" - action: - - service: media_player.media_play_pause - entity_id: media_player.living_room - - - alias: Magic Cube · Music · Volume down on rotate left - trigger: - platform: event - event_type: zha_event - event_data: - device_ieee: !secret magic_cube_ieee - command: rotate_left - condition: - and: - - condition: state - entity_id: input_boolean.magic_cube_enabled - state: "on" - - condition: state - entity_id: input_select.magic_cube_mode - state: "music" - action: - - service: media_player.volume_down - entity_id: media_player.living_room - - - alias: Magic Cube · Music · Volume up on rotate right - trigger: - platform: event - event_type: zha_event - event_data: - device_ieee: !secret magic_cube_ieee - command: rotate_right - condition: - and: - - condition: state - entity_id: input_boolean.magic_cube_enabled - state: "on" - - condition: state - entity_id: input_select.magic_cube_mode - state: "music" - action: - - service: media_player.volume_up - entity_id: media_player.living_room - -# -# ─── CUSTOMIZATION ────────────────────────────────────────────────────────────── -# - -homeassistant: - customize: - sensor.cube_multistate_input: - friendly_name: Cube input - - sensor.cube_analog_input: - friendly_name: Cube rotation - - sensor.cube_power: - friendly_name: Cube battery diff --git a/config/packages/modes/domestina.yaml b/config/packages/modes/domestina.yaml index a25dffa..b96f64a 100644 --- a/config/packages/modes/domestina.yaml +++ b/config/packages/modes/domestina.yaml @@ -25,13 +25,6 @@ group: - automation.purifier_turn_on_low_air_quality - automation.purifier_turn_off_okay_humidity - automation.system_announce_start - - automation.magic_cube_mode_change - - automation.magic_cube_lighting_toggle_on_knock - - automation.magic_cube_lighting_dim_on_rotate_left - - automation.magic_cube_lighting_brighten_on_rotate_right - - automation.magic_cube_music_play_pause_on_knock - - automation.magic_cube_music_volume_down_on_rotate_left - - automation.magic_cube_music_volume_up_on_rotate_right automation: - alias: Domestina · Automate start @@ -56,8 +49,7 @@ automation: entity_id: input_boolean.guest_mode - service: automation.turn_off entity_id: group.domestina_disabled_automations - - service: input_boolean.turn_off - entity_id: input_boolean.magic_cube_enabled + - alias: Domestina · Automate end trigger: @@ -81,5 +73,3 @@ automation: entity_id: input_boolean.guest_mode - service: automation.turn_on entity_id: group.domestina_disabled_automations - - service: input_boolean.turn_on - entity_id: input_boolean.magic_cube_enabled