diff --git a/docs/use/actuators.md b/docs/use/actuators.md index b7c09b2..8ebe518 100644 --- a/docs/use/actuators.md +++ b/docs/use/actuators.md @@ -137,10 +137,12 @@ Optionally it can contain the following property: The middle button on physical Somfy RTS Remote controls is called "My". ::: +The frequency key is optional, if not set the gateway will use the default frequency defined by MQTTtoRF command at runtime or `RF_FREQUENCY` at buildtime. + Send PROG command with remote 0: -`mosquitto_pub -t home/OpenMQTTGateway_Somfy/commands/MQTTtoSomfy -m '{"remote":0,"command":"Prog"}'` +`mosquitto_pub -t home/OpenMQTTGateway_Somfy/commands/MQTTtoSomfy -m '{"remote":0,"command":"Prog","frequency":433.92}'` Send Up command with remote 1: -`mosquitto_pub -t home/OpenMQTTGateway_Somfy/commands/MQTTtoSomfy -m '{"remote":1,"command":"Up"}'` +`mosquitto_pub -t home/OpenMQTTGateway_Somfy/commands/MQTTtoSomfy -m '{"remote":1,"command":"Up","frequency":433.92}'` diff --git a/main/config_Somfy.h b/main/config_Somfy.h index a8eda8e..dc397af 100644 --- a/main/config_Somfy.h +++ b/main/config_Somfy.h @@ -39,7 +39,4 @@ const uint32_t somfyRemotes[SOMFY_REMOTE_NUM] = {0x5184c8}; /*-------------DEFINE YOUR MQTT PARAMETERS BELOW----------------*/ #define subjectMQTTtoSomfy "/commands/MQTTtoSomfy" -/*-------------------INTERNAL DEFINITIONS----------------------*/ -#define RF_FREQUENCY_SOMFY 433.42 - #endif