Acquire Sensor values using MQTT

Hi !!
I am trying to acquire temperature values through MQTT but I’m Frequently getting an error

2020-03-31 17:40:00.084 [ERROR] [ntime.internal.engine.ExecuteRuleJob] - Error during the execution of rule 'Set random room temperatures': The name 'Temperature' cannot be resolved to an item or type; line 96, column 5, length 11

My items file

Switch DemoSwitch "Demo Switch" <lighting> ["Switchable"] {channel="mqtt:topic:0d34088e:ESP32"} 
Number Humidity "humidity [%.1f °C]" <temperature> {channel="mqtt:topic:f98e8d11:Humidity"}

My sitemap

sitemap led label="Main Menu"
	Frame {
		Switch item=DemoSwitch
		Text item=Humidity

Please do help me
Thanks in advance

It’s telling you there is something going wrong in one of your rules.
That would be a good place to start looking.

I haven’t created any rules file. I just created Items file and checked

I expect you’ve got a demo rules file, which will obviously go wrong if you don’t have the demo Items to match etc. Just delete that.

2020-04-08 16:28:37.346 [vent.ItemStateChangedEvent] - mqtt_topic_0b04e814_humidity changed from 75.00 to 77.00

2020-04-08 16:28:39.347 [vent.ItemStateChangedEvent] - mqtt_topic_0b04e814_humidity changed from 77.00 to 82.00

2020-04-08 16:28:41.350 [vent.ItemStateChangedEvent] - mqtt_topic_0b04e814_humidity changed from 82.00 to 80.00

2020-04-08 16:28:43.350 [vent.ItemStateChangedEvent] - mqtt_topic_0b04e814_humidity changed from 80.00 to 77.00

2020-04-08 16:28:47.351 [vent.ItemStateChangedEvent] - mqtt_topic_0b04e814_humidity changed from 77.00 to 75.00

The values are getting updated

But its not visible in the dashboard

In your site map use

Text item=Humidity label="Humidity [%s]"

You have an Item named mqtt_topic_0b04e814_humidity
That Item gets an update.
That looks like the sort of auto-generated Item that you get when using Simple Mode.
If you are creating your own Items, you probably want to turn simple mode off.

As your Item named Humidity does not appear in your events log, it is not getting updated and so nothing shows in your UI

I tried turning off the simple mode still I’m facing the same problem

Well, yes. There’s not much more to say.
The Item that is getting updated is not the same Item that you are viewing in your UI.
That won’t change, unless you change.something.

Perhaps you could look in PaperUI, and see what channel the auto-generated Item links to. Then you could link your non-working Item to the same channel. Then delete the auto Item.

How to delete the auto generated item?

Perhaps you have to turn off Simple Mode, I don’t know.

Note that you cannot delete Items that were created from xxx.items files in PaperUI. Maybe those are file created Items.

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.