Fixed Blynk power button and settings

This commit is contained in:
cschwinne 2018-10-08 17:36:22 +02:00
parent 34ddf104a9
commit a122c17340
3 changed files with 9 additions and 8 deletions

View File

@ -45,7 +45,7 @@
//version code in format yymmddb (b = daily build) //version code in format yymmddb (b = daily build)
#define VERSION 1810064 #define VERSION 1810081
char versionString[] = "0.8.0"; char versionString[] = "0.8.0";

View File

@ -241,6 +241,7 @@ void getSettingsJS(byte subPage) //get values for settings form in javascript
sappend('c',"AL",alexaEnabled); sappend('c',"AL",alexaEnabled);
sappends('s',"AI",alexaInvocationName); sappends('s',"AI",alexaInvocationName);
sappend('c',"SA",notifyAlexa); sappend('c',"SA",notifyAlexa);
sappends('s',"BK",(char*)((blynkEnabled)?"Hidden":""));
sappends('s',"MS",mqttServer); sappends('s',"MS",mqttServer);
sappends('s',"MD",mqttDeviceTopic); sappends('s',"MD",mqttDeviceTopic);
sappends('s',"MG",mqttGroupTopic); sappends('s',"MG",mqttGroupTopic);

View File

@ -23,7 +23,7 @@ void updateBlynk()
if (onlyAP) return; if (onlyAP) return;
Blynk.virtualWrite(V0, bri); Blynk.virtualWrite(V0, bri);
//we need a RGB -> HSB convert here //we need a RGB -> HSB convert here
Blynk.virtualWrite(V3,bri); Blynk.virtualWrite(V3, bri? 1:0);
Blynk.virtualWrite(V4, effectCurrent); Blynk.virtualWrite(V4, effectCurrent);
Blynk.virtualWrite(V5, effectSpeed); Blynk.virtualWrite(V5, effectSpeed);
Blynk.virtualWrite(V6, effectIntensity); Blynk.virtualWrite(V6, effectIntensity);