Very very weird. I removed that part twice already. Must have happened when i re checked out against your binary helpers


Von Samsung Mobile gesendet



-------- Ursprüngliche Nachricht --------
Von: CurlyMoo <notifications@github.com>
Datum:
An: pilight/pilight <pilight@noreply.github.com>
Cc: Matthias Raithel <Matthias.Raithel@sysgrade.de>
Betreff: Re: [pilight] initial checkin over DEV for elro_ad along with some ul changes (#92)



In libs/protocols/elro_ad.c:

> +     //toggle all or just one unit
> +     if(groupEnabled == 1) {
> +         json_append_member(elro_ad->message, "group", json_mkstring("enabled"));
> +     } else {
> +         json_append_member(elro_ad->message, "group", json_mkstring("disabled"));
> +     }
> +     //aka channel
> +     json_append_member(elro_ad->message, "unitcode", json_mknumber(unitcode));
> +     //aka command
> +     if(state == 1) {
> +             json_append_member(elro_ad->message, "state", json_mkstring("on"));
> +     }
> +     else if(state == 2) {
> +             json_append_member(elro_ad->message, "state", json_mkstring("off"));
> +     } else {
> +             json_append_member(elro_ad->message, "state", json_mkstring("UNKOWN"));


The same comment as in the previous commit

-
Reply to this email directly or view it on GitHub<https://github.com/pilight/pilight/pull/92/files#r11106278>.