<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Change valuename send to Controller]]></title><description><![CDATA[<p dir="auto">Hey everybody,</p>
<p dir="auto">I built a soil moisture sensors with the YL-39 and YL-69. I'm using FHEM as Controller. The name of the value from sensors is present as "level". I would like to rename it to "moisture level".<br />
Can someone explain how I can change the valuename ?</p>
<pre><code>/*
 * The MySensors Arduino library handles the wireless radio link and protocol
 * between your home built sensors/actuators and HA controller of choice.
 * The sensors forms a self healing radio network with optional repeaters. Each
 * repeater and gateway builds a routing tables in EEPROM which keeps track of the
 * network topology allowing messages to be routed to nodes.
 *
 * Created by Henrik Ekblad &lt;henrik.ekblad@mysensors.org&gt;
 * Copyright (C) 2013-2015 Sensnology AB
 * Full contributor list: https://github.com/mysensors/Arduino/graphs/contributors
 *
 * Documentation: http://www.mysensors.org
 * Support Forum: http://forum.mysensors.org
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * version 2 as published by the Free Software Foundation.
 */

 // Enable debug prints to serial monitor
#define MY_DEBUG

// Enable and select radio type attached
#define MY_RADIO_NRF24
//#define MY_RADIO_RFM69

#include &lt;MySensors.h&gt;
#define CHILD_ID 0

MyMessage msg(CHILD_ID, V_LEVEL);
unsigned long SLEEP_TIME = 10000; // Sleep time between reads (in milliseconds)

int lastSoilValue;

// YL-39 + YL-69 humidity sensor
byte humidity_sensor_pin = A1;
byte humidity_sensor_vcc = 6;

void presentation()
{
  sendSketchInfo("Soil Moisture Sensor", "1.0");
  present(CHILD_ID, S_MOISTURE);
}

void setup() {
  // Init the humidity sensor board
  pinMode(humidity_sensor_vcc, OUTPUT);
  digitalWrite(humidity_sensor_vcc, LOW);
}
int read_humidity_sensor() {
  digitalWrite(humidity_sensor_vcc, HIGH);
  delay(500);
  int value = analogRead(humidity_sensor_pin);
  digitalWrite(humidity_sensor_vcc, LOW);
  return 1023 - value;
  }

void loop() { 
  int soilValue = read_humidity_sensor();
  Serial.print("Soil Moisture Level (0-1023): ");
  Serial.println(soilValue);
  
  //send back the values
  if (soilValue != lastSoilValue) {
  send(msg.set(soilValue, 0));
  lastSoilValue = soilValue;
  }
  
  // delay until next measurement (msec)
  sleep(SLEEP_TIME);
}
</code></pre>
]]></description><link>https://forum.mysensors.org/topic/7062/change-valuename-send-to-controller</link><generator>RSS for Node</generator><lastBuildDate>Sun, 08 Nov 2026 08:07:01 GMT</lastBuildDate><atom:link href="https://forum.mysensors.org/topic/7062.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 25 Jun 2017 20:39:37 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Change valuename send to Controller on Mon, 26 Jun 2017 08:34:45 GMT]]></title><description><![CDATA[<p dir="auto">Well, mysensors is kind of a transport of information that is then presented to the user by the controller, so it is more a user interface business to present the data the way you like :)</p>
]]></description><link>https://forum.mysensors.org/post/69868</link><guid isPermaLink="true">https://forum.mysensors.org/post/69868</guid><dc:creator><![CDATA[gohan]]></dc:creator><pubDate>Mon, 26 Jun 2017 08:34:45 GMT</pubDate></item><item><title><![CDATA[Reply to Change valuename send to Controller on Mon, 26 Jun 2017 08:09:59 GMT]]></title><description><![CDATA[<p dir="auto">Hi gohan.<br />
Oh, I thought it was a mysensors thing. That there's anywhere a declaration for the value name.<br />
I'm new in house automation and still have a lot to learn.<br />
I will ask in FHEM Forum. Thank you.</p>
]]></description><link>https://forum.mysensors.org/post/69864</link><guid isPermaLink="true">https://forum.mysensors.org/post/69864</guid><dc:creator><![CDATA[Wiesel]]></dc:creator><pubDate>Mon, 26 Jun 2017 08:09:59 GMT</pubDate></item><item><title><![CDATA[Reply to Change valuename send to Controller on Mon, 26 Jun 2017 05:48:05 GMT]]></title><description><![CDATA[<p dir="auto">I think it is more related to the controller than mysensors. Have you tried asking in their forum?</p>
]]></description><link>https://forum.mysensors.org/post/69849</link><guid isPermaLink="true">https://forum.mysensors.org/post/69849</guid><dc:creator><![CDATA[gohan]]></dc:creator><pubDate>Mon, 26 Jun 2017 05:48:05 GMT</pubDate></item></channel></rss>