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

Add IZQ Presence Sensor Lite IZQ-24 #857

Merged
merged 2 commits into from
Nov 28, 2022
Merged

Add IZQ Presence Sensor Lite IZQ-24 #857

merged 2 commits into from
Nov 28, 2022

Conversation

nesror
Copy link
Contributor

@nesror nesror commented Nov 3, 2022

@dscao

This comment was marked as resolved.

@micturkey
Copy link
Contributor

micturkey commented Nov 7, 2022

I'll do some optimization:

 {
    10356: ["ZiQing", "IZQ Presence Sensor Lite", "IZQ-24"],
    "spec": [
        MapConv("occupancy_status", "sensor", mi="2.p.1", map={
            0: "NoOne", 1: "EnterIn", 2: "SmallMove", 3: "MicroMove", 4: "Approaching", 5: "MoveAway"
        }),
        BoolConv("occupancy", "binary_sensor", mi="2.p.1"),
        MathConv("no_one_determine_time", "number", mi="2.p.2", min=0, max=10000),
        Converter("has_someone_duration", "sensor", mi="2.p.3"), 
        MathConv("idle_time", "sensor", mi="2.p.4", multiply=60), 
        Converter("illuminance", "sensor", mi="2.p.5"), 
        MathConv("distance", "sensor", mi="2.p.6", multiply=0.01), 
        Converter("led", "switch", mi="3.p.1"),
        MathConv("detect_range", "number", mi="3.p.2", min=0, max=8),
        Converter("pir", "switch", mi="3.p.3"), 
        MathConv("enterin_confirm_time", "number", mi="3.p.5", min=0, max=60),       
    ],
}

This optimization saves me a template :)
But I cannot find enterin_confirm_time in the specification.
The multiplier for distance is useful.

@AlexxIT AlexxIT added this to the todo milestone Nov 15, 2022
@AlexxIT
Copy link
Owner

AlexxIT commented Nov 28, 2022

Thanks!

@AlexxIT AlexxIT merged commit 8fb6d29 into AlexxIT:master Nov 28, 2022
@AlexxIT AlexxIT modified the milestones: todo, v3.0.0 Nov 28, 2022
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

Successfully merging this pull request may close these issues.

None yet

4 participants