<commit_before>##################################################
## Customize
##################################################
homeassistant:
  customize:  
    sensor.chilli_plant_moisture:  
      friendly_name: "Chilli"
    sensor.herbs_moisture:
      friendly_name: "<NAME>"

##################################################
## Components/Sensors
##################################################
plant:
  chilli_plant:
    sensors:
      moisture: sensor.chilli_plant_moisture
      battery: sensor.chilli_plant_battery
      temperature: sensor.chilli_plant_temperature
      conductivity: sensor.chilli_plant_conductivity
      brightness: sensor.chilli_plant_light
    min_moisture: 20
    max_moisture: 65
    min_battery: 17
    min_conductivity: 150
    min_temperature: 10
  herbs:
    sensors:
      moisture: sensor.herbs_moisture
      battery: sensor.herbs_battery
      temperature: sensor.herbs_temperature
      conductivity: sensor.herbs_conductivity
      brightness: sensor.herbs_light
    min_moisture: 15
    max_moisture: 60
    min_battery: 17
    min_conductivity: 350
    min_temperature: 8

sensor:
  - platform: mqtt
    name: chilli_plant_moisture
    state_topic: "homeassistant/sensor/chilli/state"
    value_template: '{{ value_json.moisture | int }}'
    unit_of_measurement: '%'
  - platform: mqtt
    name: chilli_plant_battery
    state_topic: "homeassistant/sensor/chilli/state"
    value_template: '{{ value_json.battery | int }}'
    unit_of_measurement: '%'
  - platform: mqtt
    name: chilli_plant_temperature
    state_topic: "homeassistant/sensor/chilli/state"
    value_template: '{{ value_json.temperature | float }}'
    unit_of_measurement: '°C'
  - platform: mqtt
    name: chilli_plant_conductivity
    state_topic: "homeassistant/sensor/chilli/state"
    value_template: '{{ value_json.conductivity | int }}'
    unit_of_measurement: 'µS/cm'
  - platform: mqtt
    name: chilli_plant_light
    state_topic: "homeassistant/sensor/chilli/state"
    value_template: '{{ value_json.light | int }}'
    unit_of_measurement: 'Lux'

  - platform: mqtt
    name: herbs_moisture
    state_topic: "homeassistant/sensor/herbs/state"
    value_template: '{{ value_json.moisture | int }}'
    unit_of_measurement: '%'
  - platform: mqtt
    name: herbs_battery
    state_topic: "homeassistant/sensor/herbs/state"
    value_template: '{{ value_json.battery | int }}'
    unit_of_measurement: '%'
  - platform: mqtt
    name: herbs_temperature
    state_topic: "homeassistant/sensor/herbs/state"
    value_template: '{{ value_json.temperature | float }}'
    unit_of_measurement: '°C'
  - platform: mqtt
    name: herbs_conductivity
    state_topic: "homeassistant/sensor/herbs/state"
    value_template: '{{ value_json.conductivity | int }}'
    unit_of_measurement: 'µS/cm'
  - platform: mqtt
    name: herbs_light
    state_topic: "homeassistant/sensor/herbs/state"
    value_template: '{{ value_json.light | int }}'
    unit_of_measurement: 'Lux'

##################################################
## Automation
##################################################
automation:
# Notify when plants need watering
  - alias: water plants
    trigger:
      - platform: numeric_state
        entity_id: sensor.chilli_plant_moisture
        below: 20
      - platform: numeric_state
        entity_id: sensor.herbs_moisture
        below: 15
    action:
      - service: notify.martin
        data_template:
          title: "Plant Sensor"
          message: > 
            {{ trigger.entity_id }} level {{ trigger.to_state.state }} % - Time to water


##################################################
## Recorder/History
##################################################
recorder:
  include:
    entities:
      - sensor.chilli_plant_moisture
      - sensor.chilli_plant_conductivity
      - sensor.herbs_moisture
      - sensor.herbs_conductivity

history:
  include:
    entities:
      - sensor.chilli_plant_moisture
      - sensor.chilli_plant_conductivity
      - sensor.herbs_moisture
      - sensor.herbs_conductivity<commit_msg>Move plant sensor to Orchid<commit_after>##################################################
## Customize
##################################################
homeassistant:
  customize:  
    sensor.orchid_plant_moisture:  
      friendly_name: "Orchid"
    sensor.herbs_moisture:
      friendly_name: "Garden Herbs"

##################################################
## Components/Sensors
##################################################
plant:
  orchid_plant:
    sensors:
      moisture: sensor.orchid_plant_moisture
      battery: sensor.orchid_plant_battery
      temperature: sensor.orchid_plant_temperature
      conductivity: sensor.orchid_plant_conductivity
      brightness: sensor.orchid_plant_light
    min_moisture: 20
    max_moisture: 65
    min_battery: 17
    min_conductivity: 150
    min_temperature: 10
  herbs:
    sensors:
      moisture: sensor.herbs_moisture
      battery: sensor.herbs_battery
      temperature: sensor.herbs_temperature
      conductivity: sensor.herbs_conductivity
      brightness: sensor.herbs_light
    min_moisture: 15
    max_moisture: 60
    min_battery: 17
    min_conductivity: 350
    min_temperature: 8

sensor:
  - platform: mqtt
    name: orchid_plant_moisture
    state_topic: "homeassistant/sensor/orchid/state"
    value_template: '{{ value_json.moisture | int }}'
    unit_of_measurement: '%'
  - platform: mqtt
    name: orchid_plant_battery
    state_topic: "homeassistant/sensor/orchid/state"
    value_template: '{{ value_json.battery | int }}'
    unit_of_measurement: '%'
  - platform: mqtt
    name: orchid_plant_temperature
    state_topic: "homeassistant/sensor/orchid/state"
    value_template: '{{ value_json.temperature | float }}'
    unit_of_measurement: '°C'
  - platform: mqtt
    name: orchid_plant_conductivity
    state_topic: "homeassistant/sensor/orchid/state"
    value_template: '{{ value_json.conductivity | int }}'
    unit_of_measurement: 'µS/cm'
  - platform: mqtt
    name: orchid_plant_light
    state_topic: "homeassistant/sensor/orchid/state"
    value_template: '{{ value_json.light | int }}'
    unit_of_measurement: 'Lux'

  - platform: mqtt
    name: herbs_moisture
    state_topic: "homeassistant/sensor/herbs/state"
    value_template: '{{ value_json.moisture | int }}'
    unit_of_measurement: '%'
  - platform: mqtt
    name: herbs_battery
    state_topic: "homeassistant/sensor/herbs/state"
    value_template: '{{ value_json.battery | int }}'
    unit_of_measurement: '%'
  - platform: mqtt
    name: herbs_temperature
    state_topic: "homeassistant/sensor/herbs/state"
    value_template: '{{ value_json.temperature | float }}'
    unit_of_measurement: '°C'
  - platform: mqtt
    name: herbs_conductivity
    state_topic: "homeassistant/sensor/herbs/state"
    value_template: '{{ value_json.conductivity | int }}'
    unit_of_measurement: 'µS/cm'
  - platform: mqtt
    name: herbs_light
    state_topic: "homeassistant/sensor/herbs/state"
    value_template: '{{ value_json.light | int }}'
    unit_of_measurement: 'Lux'

##################################################
## Automation
##################################################
automation:
# Notify when plants need watering
  - alias: water plants
    trigger:
      - platform: numeric_state
        entity_id: sensor.orchid_plant_moisture
        below: 20
      - platform: numeric_state
        entity_id: sensor.herbs_moisture
        below: 15
    action:
      - service: notify.martin
        data_template:
          title: "Plant Sensor"
          message: > 
            {{ trigger.entity_id }} level {{ trigger.to_state.state }} % - Time to water


##################################################
## Recorder/History
##################################################
recorder:
  include:
    entities:
      - sensor.orchid_plant_moisture
      - sensor.orchid_plant_conductivity
      - sensor.herbs_moisture
      - sensor.herbs_conductivity

history:
  include:
    entities:
      - sensor.orchid_plant_moisture
      - sensor.orchid_plant_conductivity
      - sensor.herbs_moisture
      - sensor.herbs_conductivity
{'fraction_non_alphanumeric': 0.180752320468979, 'fraction_numerical': 0.006106497313141182, 'mean_word_length': 3.700918484500574, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7444416', 'n_tokens_mistral': 2672, 'n_tokens_neox': 2560, 'n_words': 434}