Skip to content

Home Assistant YAML configuration for sensors #22

@peteeee

Description

@peteeee

Thank you Stephen for a great script and add on to Home Assistant.

It's been a year or so since I have configured the RPi script and it has been working fine.

I have the POE RPi mounted in the attic here in the midwest.

I see the data on MQTT explorer.

A week or so ago tried to configure HA config yaml for the sensors and for whatever reason I cannot properly configure the sensors.

Can you please post an example of your yaml configuration of the sensors used?

This is an example of what I have tried and it is not working.

sensor:

  • platform: mqtt
    state_topic: "homeassistant/sensor/lightningdetector/energy/config"
    name: "lightningdetector_energy"
    value_template: "{{ value_json.energy }}"

This is what I see on MQTT explorer.

{"name": "Lightningdetector Energy",
"uniq_id": "AS3935-b827ebd2c051_energy",
"stat_t": "/detect",
"val_tpl": "{{ value_json.energy }}",
"
": "homeassistant/nodes/sensor/lightningdetector",
"pl_avail": "Online",
"pl_not_avail": "Offline",
"avty_t": "~/status",
"dev": {"identifiers": ["AS3935-b827ebd2c051"]}}

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