Skip to content

Commit

Permalink
[SOMFY] Remove unnecessary macro (#1822)
Browse files Browse the repository at this point in the history
  • Loading branch information
1technophile authored Dec 4, 2023
1 parent 7f9f042 commit 25af43b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 4 additions & 2 deletions docs/use/actuators.md
Original file line number Diff line number Diff line change
Expand Up @@ -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}'`
3 changes: 0 additions & 3 deletions main/config_Somfy.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 25af43b

Please sign in to comment.