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

Additional sensors not updating #2

Open
brandond opened this issue Jul 11, 2019 · 2 comments
Open

Additional sensors not updating #2

brandond opened this issue Jul 11, 2019 · 2 comments

Comments

@brandond
Copy link
Owner

At some point around the big refactor that merged the C++ and Python code, additional sensors (voltage, wifi signal) stopped updating. I'm guessing that the node is shutting down before the loops for these get a chance to run.

@beardypig
Copy link

I found that setting update_interval back to 60s worked for me.

@patrik-malina
Copy link

This is mine code, and sensors working. Also convert battery to %

sensor:

  • platform: wifi_signal
    name: "PIR WiFi Signal"
    update_interval: 300s
    expire_after:
    filters: []

  • platform: adc
    update_interval: 300s
    expire_after:
    pin: VCC
    id: "VCC"
    internal: true
    filters: []

  • platform: template
    name: "PIR Battery Level"
    unit_of_measurement: '%'
    icon: "mdi:battery"
    device_class: battery
    update_interval: 30s
    accuracy_decimals: 0
    filters:

    • filter_out: nan
      lambda: |-
      return ((id(VCC).state /3.30) * 100.00);

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

3 participants