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

DSC Security Not auto discovering Closed #2894

Open
RandalMorris opened this issue Apr 6, 2024 · 1 comment
Open

DSC Security Not auto discovering Closed #2894

RandalMorris opened this issue Apr 6, 2024 · 1 comment
Labels
feedback request for more information; may be closed id 30d if not received question Not a bug, but a question. (Belongs in discussions or mailinglist)

Comments

@RandalMorris
Copy link

RandalMorris commented Apr 6, 2024

I was able to get my DSC sensors to pull vis Auto Discovery, but the only ones that pull is the, battery_ok timestamp and tamper. Is it doable to create a new mapping for closed similar to the tamper mapping? this would save me so much time having to do a manual binary sensor.

Edit: Swapped the payload for closed as I forgot they are reversed

"closed": {
    "device_type": "binary_sensor",
    "object_suffix": "closed",
    "config": {
        "device_class": "safety",
        "force_update": "true",
        "payload_on": "0",
        "payload_off": "1"
    }
},

Below is the reference from the rtl_433_mqtt_hass.py and a output of what the same level of output gives me in Mqtt explorer.

"tamper": {
    "device_type": "binary_sensor",
    "object_suffix": "tamper",
    "config": {
        "device_class": "safety",
        "force_update": "true",
        "payload_on": "1",
        "payload_off": "0"
    }
},

id = 2681681
closed = 0
event = 1
tamper = 0
battery_ok = 1
xactivity = 1
xtamper1 = 0
xtamper2 = 0
exception = 0
esn = 28eb51
status = 161
status_hex = a1
mic = CRC

@gdt gdt added question Not a bug, but a question. (Belongs in discussions or mailinglist) feedback request for more information; may be closed id 30d if not received labels Jun 3, 2024
@gdt
Copy link
Collaborator

gdt commented Jun 3, 2024

You should feel free to modify the script, experiment until you get something sensible and submit a pull request. Or maybe you did and it just remains to have a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feedback request for more information; may be closed id 30d if not received question Not a bug, but a question. (Belongs in discussions or mailinglist)
Projects
None yet
Development

No branches or pull requests

2 participants