Search found 345 matches

by FlyingDomotic
Sunday 16 March 2025 14:14
Forum: Python
Topic: Python Plugin: MqttMapper
Replies: 324
Views: 33507

Re: Python Plugin: MqttMapper

For type 243, sub-type 6 is percent, so value should be in range 0-100. Sub-type 7 (fan) should be better.
by FlyingDomotic
Thursday 13 March 2025 13:53
Forum: Python
Topic: Python Plugin: MqttMapper
Replies: 324
Views: 33507

Re: Python Plugin: MqttMapper

Happy to heard that! However, syntax is not the right one (so "EnergyMeterMode": "1" is ignored and may be missing in device). This don't make plugin to crash, but is just ignored. Right syntax is: "MQTTsignal": { "topic": "homeassistant/easee/power", "type": "243", "subtype": "29", "switchtype": "0 ...
by FlyingDomotic
Thursday 13 March 2025 12:53
Forum: Python
Topic: Python Plugin: MqttMapper
Replies: 324
Views: 33507

Re: Python Plugin: MqttMapper

Thanks for that! I'm still thinking that publishing this kind of data in homeassistant sub-topics will lead to problems at some time, but do as you wish. In all cases, this as no effects on MqttMapper... Concerning payload, float value seems to be the right one, with a decimal point (and not a comma ...
by FlyingDomotic
Wednesday 12 March 2025 21:03
Forum: Python
Topic: Python Plugin: MqttMapper
Replies: 324
Views: 33507

Re: Python Plugin: MqttMapper

I really need to get the payload you inject into MqttMapper, as I more blond than less..

What I suspect is an illegal content (maybe a float with a "," instead of a ".").
by FlyingDomotic
Wednesday 12 March 2025 11:01
Forum: Python
Topic: Python Plugin: MqttMapper
Replies: 324
Views: 33507

Re: Python Plugin: MqttMapper

Setting switchType = 1 means "counter is a gas meter", probably not what you wanted. FYI, here are switchtypes for meter : enum _eMeterType { MTYPE_ENERGY = 0, //0 MTYPE_GAS, //1 MTYPE_WATER, //2 MTYPE_COUNTER, //3 MTYPE_ENERGY_GENERATED, //4 MTYPE_TIME, //5 MTYPE_END }; To set "Calculated" mode ...
by FlyingDomotic
Wednesday 12 March 2025 10:19
Forum: Python
Topic: Python Plugin: MqttMapper
Replies: 324
Views: 33507

Re: Python Plugin: MqttMapper

Could you try with : "MQTTsignal": { "topic": "homeassistant/easee/power", "type": "243", "subtype": "29", "switchtype": "0", "mapping": {"item": "~*;~0","multiplier": 1000} Item syntax `~*` means payload value and `;~0` means `;0`. MqttMapper device will be then loaded with the read value ...
by FlyingDomotic
Tuesday 11 March 2025 21:37
Forum: Python
Topic: Python Plugin: MqttMapper
Replies: 324
Views: 33507

Re: Python Plugin: MqttMapper

I'm a bit lost... Would it be possible to post here content of MqttMapper.json file? Concerning topics, I'm still thinking that putting running values into a homeassistant sub-topic is a non sense. An I still would like to see what's inside "eas" topic and its sub-topics , as stable values can ...
by FlyingDomotic
Tuesday 11 March 2025 17:53
Forum: Python
Topic: Python Plugin: MqttMapper
Replies: 324
Views: 33507

Re: Python Plugin: MqttMapper

This happens when you try to set value using some script. In this case, Domoticz ask MqttMapper to update external value, but you don't give /set parameters (which indeed is normal in your case, as we don't normally set a counter). Do you have any script trying to modify "MQQTTsignal" device? FMI ...
by FlyingDomotic
Tuesday 11 March 2025 17:20
Forum: Python
Topic: Python Plugin: MqttMapper
Replies: 324
Views: 33507

Re: Python Plugin: MqttMapper

Depending on counter type you have chosen, you may have 2 displays : Widget could be daily usage (you have to wait a bit to see it incrementing), and total (located on text line, just under daily value). Total should be equal to value you see in the log, daily is computed from (total - first value ...
by FlyingDomotic
Tuesday 11 March 2025 15:57
Forum: Python
Topic: Python Plugin: MqttMapper
Replies: 324
Views: 33507

Re: Python Plugin: MqttMapper

I'm something lost... Does the payload contain {"value": 1.52300000190735 or just 1.52300000190735 ? Reading error message, I vote for the second... In this case, try with "MQTTsignal": { "topic": "eas/easee/power", "type": "243", "subtype": "29", "switchtype": "0", "mapping": {"item ...
by FlyingDomotic
Tuesday 11 March 2025 11:34
Forum: Python
Topic: Python Plugin: MqttMapper
Replies: 324
Views: 33507

Re: Python Plugin: MqttMapper

Let's try with:

Code: Select all

"MQTTsignal": {
"topic": "eas/easee/power",
"type": "243", "subtype": "29", "switchtype": "0",
"mapping": {"item": "value","multiplier": 1000}
}
by FlyingDomotic
Tuesday 11 March 2025 10:27
Forum: Python
Topic: Python Plugin: MqttMapper
Replies: 324
Views: 33507

Re: Python Plugin: MqttMapper

Are you sure that you have twice the same "value" item with different content?
by FlyingDomotic
Tuesday 11 March 2025 9:41
Forum: Python
Topic: Python Plugin: MqttMapper
Replies: 324
Views: 33507

Re: Python Plugin: MqttMapper

Would it be possible to get "eas/easee/power" full content? Concerning the error, it indicates that this kind of device (kWh counter) needs a value, while sent data only contents "" (meaning that value was not found or empty). With "eas/easee/power" content, I'll help finding the right item.
by FlyingDomotic
Monday 10 March 2025 17:15
Forum: Suggestions
Topic: Dynamicly change dummy kWh counter icon state
Replies: 2
Views: 1089

Re: Dynamicly change dummy kWh counter icon state

It's possible to dynamically set any icon through a dzVents script : return { on = {devices = "my Device Name"}, execute = function(dz, item) local icons = { [0] = 140, -- Off [10] = 137,-- Auto [20] = 138-- Manual } print('Info: '..item.name..', level '..tostring(item.level)..', icon '..tostring ...
by FlyingDomotic
Monday 10 March 2025 17:03
Forum: Python
Topic: Python Plugin: MqttMapper
Replies: 324
Views: 33507

Re: Python Plugin: MqttMapper

Very strange... Looks like a configuration error, where homeassistant topic was given instead of "real" one (like "eas" or perhaps none)

Giving key name (easee), would it be possible to have a look at "eas" root topic (the one with 4 topics and 134 messages) ?
by FlyingDomotic
Sunday 09 March 2025 23:56
Forum: Python
Topic: Python Plugin: MqttMapper
Replies: 324
Views: 33507

Re: Python Plugin: MqttMapper

Could you post here a cut&paste or a screen copy of topic content?
by FlyingDomotic
Sunday 09 March 2025 10:42
Forum: Python
Topic: Python Plugin: MqttMapper
Replies: 324
Views: 33507

Re: Python Plugin: MqttMapper

Does anyone know how to get two digits (eg 5.2 kwh or better 5200 watt) from: "MQTTsignal": { "topic": "homeassistant/easee/power", "type": "243", "subtype": "29", "switchtype": "0", "mapping": {"item": "values/current","multiplier": 1000} So I need the output in watts, I have 0 at the moment ...
by FlyingDomotic
Sunday 02 March 2025 23:54
Forum: Python
Topic: python hardware plugin - one instance per device ?!?
Replies: 4
Views: 343

Re: python hardware plugin - one instance per device ?!?

Anyway, even if this is not the best solution, it's always possible for a plugin to read/store data into a json file in plugin's folder.
by FlyingDomotic
Tuesday 18 February 2025 9:49
Forum: Other questions and discussions
Topic: Error in the logs when sending SMS
Replies: 18
Views: 2396

Re: Error in the logs when sending SMS

Effectively, very strange... I was thinking about and error reported by HTTP, for example when closing URL, but this seems not to be the case...
by FlyingDomotic
Monday 17 February 2025 0:29
Forum: Other questions and discussions
Topic: Error in the logs when sending SMS
Replies: 18
Views: 2396

Re: Error in the logs when sending SMS

I mean, does the page return an error (non 200 status) when opened in a browser?