You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I programed a device with two switches: one is a typical GPIO switch, the other is a virtual (platform) switch. esphome log shows the following:
[19:52:55][C][gpio.output:010]: GPIO Binary Output:
[19:52:55][C][gpio.output:011]: Pin: GPIO5 (Mode: OUTPUT, INVERTED)
[19:52:55][C][switch.gpio:048]: GPIO Switch 'gpio switch'
[19:52:55][C][switch.gpio:049]: Pin: GPIO12 (Mode: OUTPUT)
[19:52:55][C][switch.gpio:071]: Restore Mode: Restore (Defaults to OFF)
[19:52:55][C][template.switch:058]: Template Switch 'virtual switch'
[19:52:55][C][template.switch:059]: Restore State: NO
[19:52:55][C][template.switch:060]: Optimistic: NO
esphome-ts found the GPIO switch and is able to control it as expected. However, esphome-ts didn't "see" the virtual switch. Is this normal?
The text was updated successfully, but these errors were encountered:
This roughly shows you what you can do to get the raw data that it receives. You can then upload this file here and I can maybe see somethign. Depending on how tech savvy you are, you can also try to parse this data then again yourself. You probably interested in what data you are getting for https://github.com/lucavb/esphome-ts/blob/master/src/api/requestResponseMatching.ts#L18 . But bottom line should be something like this const res = ListEntitiesSwitchResponse.decode(Uint8Array.of([/* your bytes */])); if you check out the code for esphome-ts and put the bytes you get with the homebridge-esphome-ts code in there.
I programed a device with two switches: one is a typical GPIO switch, the other is a virtual (platform) switch. esphome log shows the following:
[19:52:55][C][gpio.output:010]: GPIO Binary Output:
[19:52:55][C][gpio.output:011]: Pin: GPIO5 (Mode: OUTPUT, INVERTED)
[19:52:55][C][switch.gpio:048]: GPIO Switch 'gpio switch'
[19:52:55][C][switch.gpio:049]: Pin: GPIO12 (Mode: OUTPUT)
[19:52:55][C][switch.gpio:071]: Restore Mode: Restore (Defaults to OFF)
[19:52:55][C][template.switch:058]: Template Switch 'virtual switch'
[19:52:55][C][template.switch:059]: Restore State: NO
[19:52:55][C][template.switch:060]: Optimistic: NO
esphome-ts found the GPIO switch and is able to control it as expected. However, esphome-ts didn't "see" the virtual switch. Is this normal?
The text was updated successfully, but these errors were encountered: