8000 GitHub - maaad/RadSens1v2: ESPHome custom component sensor for radiation detector module RadSens
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Feb 21, 2025. It is now read-only.

maaad/RadSens1v2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Important

Migrate to external component pls. E.g. https://github.com/krbaker/esphome-radsens

Description

ESPHome custom component sensor for Climateguard RadSens 1v2, 1v7

Deployment

First of all get the code:

git clone https://github.com/maaad/RadSens1v2 /usr/share/hassio/homeassistant/esphome/RadSens1v2

Add to device config for climateguard/RadSens

esphome:
  ...
 libraries:
   - Wire
   - "climateguard/ClimateGuard RadSens"
 includes:
   - RadSens1v2/_CG_RadSens.h

 i2c:

...

sensor:
  - platform: custom
    lambda: |-
      auto rad_sens = new MyRadSens();
      App.register_component(rad_sens);
      return {rad_sens->IntensityDynamic_Sensor,rad_sens->IntensityStatic_Sensor, rad_sens->CurrentCPM_Sensor, rad_sens->MaxCPM_Sensor,rad_sens->Sensivity_Senso
746E
r};
    sensors:
      - name: "Dynamic intensity"
        id: dynamic_intensity
        accuracy_decimals: 1
        unit_of_measurement: μR/h
        state_class: measurement
      - name: "Static intensity"
        accuracy_decimals: 1
        unit_of_measurement: μR/h
        state_class: measurement
      - name: "Current CPM"
        accuracy_decimals: 1
        unit_of_measurement: CPM
        state_class: measurement
      - name: "Max CPM"
        accuracy_decimals: 1
        unit_of_measurement: CPM
        state_class: measurement
      - name: "Device Sensivity"
        id: sensivity
        state_class: measurement
        entity_category: diagnostic

Services

HA service call to set device sensivity:

service: esphome.radsens_set_sensivity 
data:
  sensivity: "105"

Reset Max CPM Counter

service: esphome.radsens_reset_cpm
data: {}

Known issues

RadSens 1v5

1v5 boards workaround

References

Official RadSens library by ClimateGuard

ESPHome Documentation

About

ESPHome custom component sensor for radiation detector module RadSens

Topics

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •  

Languages

0