Skip to content

Icon attribute is not being set correctly #2

@Valdorama

Description

@Valdorama

Just starting using this and it's great, but I noticed that the icon for my sensors was not being updated. Looking at the state and attribute info in HA, I can see that the icon value is being assigned to the 'state' attribute:

image

I think the problem is at line 9 in HomeAssistantEntityStateUpdateAttributes.cs:

public class HomeAssistantEntityStateUpdateAttributes
    {
        [JsonProperty(PropertyName = "friendly_name")]
        public string FriendlyName { get; set; }
        [JsonProperty(PropertyName = "state")]
        public string Icon { get; set; }
    }

Should that "state" be "icon" instead?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions