The logic is currently defined as… std::string filter = MyConfig.GetParamValue("notify", subtype); if (!filter.empty() && filter.find(m_caller) == string::npos) return false; So you need to define the config param to be non-empty, but without containing "ovmsv2". The parameter is also named after the notification subtype. See the Notify…() calls for the subtypes currently in use. So to disable all notifications for charge start, state and stop events, do: config set notify charge.started - config set notify charge.stopped - config set notify charge.done - config set notify heating.started - …that should cover all of these notifications. I think it would be good to extend the config logic, to allow excluding single channel tags. For example, "*,-ovmsv2" could mean "all but ovmsv2". I'll do that after office. Regards, Michael Am 31.08.20 um 12:25 schrieb Chris van der Meijden:
The vehicle.charge notifications are default on.
They are not shown when you check with
config list notify
I can add with
config set notify vehicle.charge ovmsv2
and then list again.
I also can remove with
config rm notify vehicle.charge
Is there a way known to remove the default vehicle.charge notifications?
Thanx
Chris
Am Montag, den 31.08.2020, 16:11 +0800 schrieb Mark Webb-Johnson:
From what I can see, the filtering is by subtype, on caller.
In the case of ovms_server_v2, I see:
MyOvmsServerV2Reader = MyNotify.RegisterReader("ovmsv2", COMMAND_RESULT_NORMAL, std::bind(OvmsServerV2ReaderCallback, _1, _2), true, std::bind(OvmsServerV2ReaderFilterCallback, _1, _2));
Which seems to enable filtering, and uses ‘ovmsv2’ as the caller.
Then we have:
bool OvmsNotifyCallbackEntry::Accepts(OvmsNotifyType* type, const char* subtype, size_t size) { // Check size if (size > m_verbosity) return false; // Check filter by config: if (m_configfiltered) { std::string filter = MyConfig.GetParamValue("notify", subtype); if (!filter.empty() && filter.find(m_caller) == string::npos) return false; } // Check filter by callback: if (m_filtercallback) { if (m_filtercallback(type, subtype) == false) return false; } return true; }
So I’m guessing ‘config set notify vehicle.charge ovmsv2’? Or is that filter out, so needs to list the notifications that it will accept? First time I’ve noticed this, and can’t even remember us having this facility.
Regards, Mark.
On 30 Aug 2020, at 8:43 PM, Chris van der Meijden <chris@arachnon.de <mailto:chris@arachnon.de>> wrote: I just finished the implementation of the "charging detection" for the komfort-can VW e-Up. Works like charm :-) (Msg ID 0x61C, d2. No Ampere and Volt yet).
Because I have email notifications activated I now receive mails when I start or end charging. For me it is enough to see the charging in the app and I would like to configure the notifications to not sent me messages on vehicle.charge.start, vehicle.charge.state and vehicle.charge.stop
I found this thread from 2018: http://lists.openvehicles.com/pipermail/ovmsdev/2018-May/004980.html
and I found the "Notification filtering" and "Event filtering" under Config -> Notifications, but I did not see a way to disable an specific notification. Or just do not understand how. Am I overlooking something?
Thanx
Chris
_______________________________________________ OvmsDev mailing list OvmsDev@lists.openvehicles.com <mailto:OvmsDev@lists.openvehicles.com> http://lists.openvehicles.com/mailman/listinfo/ovmsdev
_______________________________________________ OvmsDev mailing list OvmsDev@lists.openvehicles.com <mailto:OvmsDev@lists.openvehicles.com> http://lists.openvehicles.com/mailman/listinfo/ovmsdev
_______________________________________________ OvmsDev mailing list OvmsDev@lists.openvehicles.com http://lists.openvehicles.com/mailman/listinfo/ovmsdev
-- Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal Fon 02333 / 833 5735 * Handy 0176 / 206 989 26