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

Home Assistant YAML configuration for sensors #22

Open
peteeee opened this issue May 13, 2022 · 0 comments
Open

Home Assistant YAML configuration for sensors #22

peteeee opened this issue May 13, 2022 · 0 comments

Comments

@peteeee
Copy link

peteeee commented May 13, 2022

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"]}}

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