Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to save current status of H6076 to new HA scene using scene.create #303

Open
SingingDwarf opened this issue Nov 8, 2024 · 0 comments

Comments

@SingingDwarf
Copy link

Govee Device SKU

H6076

Govee2MQTT Version

2024.07.21-c9d27764

Describe the issue

I want to use the Home Assistant action scene.create to dynamically record the current status of my Govee lamp when running an automation.

I will then change to a DIY Effect momentarily, before returning the lamp to its previous state via the scene.turn_on action.

alias: Person detected at front door
description: ""
triggers:
  - trigger: state
    entity_id:
      - binary_sensor.reolink_video_doorbell_person
    to: "on"
conditions:
  - condition: state
    entity_id: sun.sun
    state: below_horizon
actions:
  - action: scene.create
    metadata: {}
    data:
      snapshot_entities:
        - light.rgbicw_floor_lamp_basi_segment_001
        - light.rgbicw_floor_lamp_basi_segment_002
        - light.rgbicw_floor_lamp_basi_segment_003
        - light.rgbicw_floor_lamp_basi_segment_004
        - light.rgbicw_floor_lamp_basi_segment_005
        - light.rgbicw_floor_lamp_basi_segment_006
        - light.rgbicw_floor_lamp_basi_segment_007
      scene_id: doorbell_notification_scene_to_revert_to
    enabled: true
  - action: light.turn_on
    metadata: {}
    data:
      effect: "DIY: Alarm"
    target:
      device_id: <deviceid>
  - delay:
      hours: 0
      minutes: 0
      seconds: 10
      milliseconds: 0
    enabled: true
  - action: scene.turn_on
    metadata: {}
    target:
      entity_id: scene.doorbell_notification_scene_to_revert_to
    enabled: true
  - action: scene.delete
    metadata: {}
    data: {}
    target:
      entity_id: scene.doorbell_notification_scene_to_revert_to
mode: single

The scene is created using the above, but it is reapplied after 10 seconds.

Startup Diagnostics

[2024-11-07T23:53:30 INFO  govee::service::hass] Wait 150ms for hass to settle on 15 entity configs

[2024-11-08T00:12:31 INFO  govee::commands::serve] Starting service. version 2024.07.21-c9d27764

[2024-11-08T00:12:31 INFO  govee::commands::serve] Querying platform API for device list

[2024-11-08T00:12:34 INFO  govee::commands::serve] Starting LAN discovery

[2024-11-08T00:12:34 INFO  govee::commands::serve] Waiting 10 seconds for LAN API discovery

[2024-11-08T00:12:44 INFO  govee::commands::serve] Devices returned from Govee's APIs

[2024-11-08T00:12:44 INFO  govee::commands::serve] RGBICW Floor Lamp Basi (43:0A:C9:37:34:32:22:2D H6076)

[2024-11-08T00:12:44 INFO  govee::commands::serve]   LAN API: ip=192.168.0.189

[2024-11-08T00:12:44 INFO  govee::commands::serve]   Platform API: devices.types.light. supports_rgb=true supports_brightness=true

[2024-11-08T00:12:44 INFO  govee::commands::serve]                 color_temp=Some((2000, 9000)) segment_rgb=Some(0..7)

[2024-11-08T00:12:44 INFO  govee::commands::serve]   Quirk { sku: "H6076", icon: "mdi:floor-lamp", supports_rgb: true, supports_brightness: true, color_temp_range: Some((2000, 9000)), avoid_platform_api: false, ble_only: false, lan_api_capable: true, device_type: Light, platform_temperature_sensor_units: None, platform_humidity_sensor_units: None, iot_api_supported: true, show_as_preset_buttons: None }

[2024-11-08T00:12:44 INFO  govee::commands::serve] 

[2024-11-08T00:12:44 INFO  govee::service::http] http server addr is 0.0.0.0:8056

[2024-11-08T00:13:06 INFO  govee::service::hass] Wait 150ms for hass to settle on 15 entity configs

[2024-11-08T00:13:06 INFO  govee::service::hass] MQTT connected with status=CONNACK code 0: Connection Accepted.

Additional Logs

No response

Home Assistant Logs

No response

Anything else?

No response

@SingingDwarf SingingDwarf changed the title Unable to current status to HA scene Unable to save current status of H6076 to new HA scene using scene.create Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant